
    :root{
      --primary:#0f4c81;
      --primary-dark:#0b3558;
      --secondary:#1c6ea4;
      --accent:#e8f1f8;
      --text:#243444;
      --muted:#66778a;
      --white:#ffffff;
      --light:#f5f8fb;
      --border:#dce5ee;
      --success:#1e8e3e;
      --shadow:0 12px 30px rgba(15, 76, 129, 0.12);
      --radius:16px;
      --container:1180px;
    }

    *{
      margin:0;
      padding:0;
      box-sizing:border-box;
    }

    html{
      scroll-behavior:smooth;
    }

    body{
      font-family: "Segoe UI", Roboto, Arial, sans-serif;
      color:var(--text);
      background:#fff;
      line-height:1.6;
    }

    img{
      max-width:100%;
      display:block;
    }

    a{
      text-decoration:none;
      color:inherit;
    }

    ul{
      list-style:none;
    }

    .container{
      width:min(92%, var(--container));
      margin:0 auto;
    }

    .section{
      padding:80px 0;
    }

    .section-title{
      text-align:center;
      margin-bottom:14px;
      color:var(--primary-dark);
      font-size:2.2rem;
      font-weight:700;
    }

    .section-subtitle{
      text-align:center;
      max-width:760px;
      margin:0 auto 50px;
      color:var(--muted);
      font-size:1rem;
    }

    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:10px;
      background:var(--primary);
      color:#fff;
      padding:14px 24px;
      border:none;
      border-radius:999px;
      font-weight:600;
      cursor:pointer;
      transition:0.3s ease;
      box-shadow:var(--shadow);
    }

    .btn:hover{
      background:var(--primary-dark);
      transform:translateY(-2px);
    }

    .btn-outline{
      background:transparent;
      color:var(--primary);
      border:2px solid var(--primary);
      box-shadow:none;
    }

    .btn-outline:hover{
      background:var(--primary);
      color:#fff;
    }

    /* Top Bar */
    .top-bar{
      background:var(--primary-dark);
      color:#d9e8f5;
      font-size:0.88rem;
      padding:8px 0;
    }

    .top-bar .container{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:16px;
      flex-wrap:wrap;
    }

    .top-left,
    .top-right{
      display:flex;
      align-items:center;
      gap:18px;
    }

    .top-right a:hover,
    .top-left a:hover{
      color:#fff;
    }

    /* Header / Nav */
    header{
      position:sticky;
      top:0;
      z-index:1000;
      background:rgba(255,255,255,0.96);
      backdrop-filter:blur(10px);
      border-bottom:1px solid rgba(220, 229, 238, 0.9);
    }

    .navbar{
      min-height:78px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
    }

    .brand{
      display:flex;
      align-items:center;
      gap:12px;
      font-weight:700;
      color:var(--primary-dark);
      min-width:220px;
    }

    .brand-logo{
      width:48px;
      height:48px;
      border-radius:12px;
      background:linear-gradient(135deg, var(--primary), var(--secondary));
      display:grid;
      place-items:center;
      color:#fff;
      font-weight:800;
      box-shadow:var(--shadow);
    }

    .brand-text{
      line-height:1.2;
    }

    .brand-text small{
      display:block;
      font-weight:500;
      color:var(--muted);
      font-size:0.78rem;
    }

    .nav-menu{
      display:flex;
      align-items:center;
      gap:20px;
      flex:1;
      justify-content:center;
    }

    .nav-menu a{
      color:var(--text);
      font-weight:600;
      font-size:0.95rem;
      transition:0.3s ease;
      white-space:nowrap;
    }

    .nav-menu a:hover{
      color:var(--primary);
    }

    .lang-switch{
      display:flex;
      align-items:center;
      gap:8px;
    }

    .lang-switch button{
      border:1px solid var(--border);
      background:#fff;
      color:var(--primary-dark);
      padding:8px 12px;
      border-radius:999px;
      font-weight:600;
      cursor:pointer;
      transition:0.3s ease;
    }

    .lang-switch button.active,
    .lang-switch button:hover{
      background:var(--primary);
      color:#fff;
      border-color:var(--primary);
    }

    .menu-toggle{
      display:none;
      background:none;
      border:none;
      font-size:1.7rem;
      cursor:pointer;
      color:var(--primary-dark);
    }

    /* Hero Slider */
    .hero{
      position:relative;
      overflow:hidden;
      background:#edf4fa;
    }

    .hero-slider{
      position:relative;
      min-height:78vh;
    }

    .slide{
      position:absolute;
      inset:0;
      opacity:0;
      transform:scale(1.02);
      transition:opacity 0.8s ease, transform 1.2s ease;
      background-size:cover;
      background-position:center;
      display:flex;
      align-items:center;
    }

    .slide.active{
      opacity:1;
      transform:scale(1);
      z-index:1;
    }

    .slide::before{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(90deg, rgba(8, 29, 48, 0.82) 0%, rgba(8, 29, 48, 0.65) 40%, rgba(8, 29, 48, 0.35) 100%);
    }

    .hero-content{
      position:relative;
      z-index:2;
      color:#fff;
      max-width:700px;
      padding:70px 0;
    }

    .hero-badge{
      display:inline-block;
      padding:8px 14px;
      border-radius:999px;
      background:rgba(255,255,255,0.14);
      border:1px solid rgba(255,255,255,0.2);
      margin-bottom:18px;
      font-size:0.9rem;
      letter-spacing:0.2px;
    }

    .hero h1{
      font-size:clamp(2.3rem, 5vw, 4.5rem);
      line-height:1.1;
      margin-bottom:18px;
      font-weight:800;
    }

    .hero p{
      font-size:1.08rem;
      max-width:620px;
      color:#e8eff6;
      margin-bottom:28px;
    }

    .hero-actions{
      display:flex;
      gap:14px;
      flex-wrap:wrap;
    }

    .hero .btn-outline{
      border-color:#fff;
      color:#fff;
    }

    .hero .btn-outline:hover{
      background:#fff;
      color:var(--primary-dark);
    }

    .slider-controls{
      position:absolute;
      bottom:30px;
      left:50%;
      transform:translateX(-50%);
      z-index:5;
      display:flex;
      gap:10px;
    }

    .dot{
      width:12px;
      height:12px;
      border-radius:50%;
      border:none;
      background:rgba(255,255,255,0.45);
      cursor:pointer;
      transition:0.3s ease;
    }

    .dot.active{
      background:#fff;
      transform:scale(1.15);
    }

    /* Cards / Grids */
    .grid{
      display:grid;
      gap:24px;
    }

    .courses-grid{
      grid-template-columns:repeat(4, 1fr);
    }

    .course-card,
    .benefit-card,
    .contact-card{
      background:#fff;
      border:1px solid var(--border);
      border-radius:var(--radius);
      padding:28px;
      box-shadow:0 8px 20px rgba(15, 76, 129, 0.06);
      transition:0.3s ease;
    }

    .course-card:hover,
    .benefit-card:hover,
    .contact-card:hover{
      transform:translateY(-6px);
      box-shadow:var(--shadow);
    }

    .card-icon{
      width:54px;
      height:54px;
      border-radius:14px;
      display:grid;
      place-items:center;
      background:var(--accent);
      color:var(--primary);
      font-size:1.5rem;
      margin-bottom:18px;
      font-weight:700;
    }

    .course-card h3,
    .benefit-card h3{
      margin-bottom:12px;
      color:var(--primary-dark);
      font-size:1.18rem;
    }

    .course-card p,
    .benefit-card p{
      color:var(--muted);
      font-size:0.97rem;
    }

    /* Split sections */
    .split{
      display:grid;
      grid-template-columns:1.1fr 1fr;
      gap:42px;
      align-items:center;
    }

    .image-box{
      border-radius:24px;
      overflow:hidden;
      box-shadow:var(--shadow);
      min-height:420px;
    }

    .image-box img{
      width:100%;
      height:100%;
      object-fit:cover;
    }

    .content-box h2{
      color:var(--primary-dark);
      font-size:2rem;
      margin-bottom:18px;
    }

    .content-box p{
      color:var(--muted);
      margin-bottom:16px;
    }

    .about-points{
      display:grid;
      gap:16px;
      margin-top:22px;
    }

    .about-point{
      padding:18px 20px;
      background:var(--light);
      border-left:4px solid var(--primary);
      border-radius:12px;
    }

    .about-point strong{
      display:block;
      color:var(--primary-dark);
      margin-bottom:6px;
    }

    /* Benefits */
    .benefits{
      background:linear-gradient(180deg, #f8fbfe 0%, #eef5fb 100%);
    }

    .benefits-grid{
      grid-template-columns:repeat(4, 1fr);
    }

    /* Verification */
    .verification-wrap{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:28px;
      align-items:start;
    }

    .verification-card{
      background:#fff;
      border:1px solid var(--border);
      border-radius:20px;
      box-shadow:var(--shadow);
      padding:28px;
    }

    .verify-form{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
      margin:20px 0 24px;
    }

    .verify-form input{
      flex:1;
      min-width:220px;
      padding:14px 16px;
      border:1px solid var(--border);
      border-radius:12px;
      outline:none;
      font-size:1rem;
    }

    .verify-form input:focus,
    .contact-form input:focus,
    .contact-form textarea:focus,
    .chat-body input:focus{
      border-color:var(--primary);
      box-shadow:0 0 0 3px rgba(15,76,129,0.1);
    }

    .result-box{
      background:var(--light);
      border:1px solid var(--border);
      border-radius:16px;
      padding:22px;
    }

    .result-box h4{
      color:var(--primary-dark);
      margin-bottom:14px;
    }

    .result-row{
      display:flex;
      justify-content:space-between;
      gap:16px;
      padding:10px 0;
      border-bottom:1px solid #e5edf5;
      flex-wrap:wrap;
    }

    .result-row:last-child{
      border-bottom:none;
    }

    .status-valid{
      color:var(--success);
      font-weight:700;
    }

    /* Platform / Partners */
    .platform-card,
    .partner-card{
      background:#fff;
      border:1px solid var(--border);
      border-radius:20px;
      padding:30px;
      box-shadow:var(--shadow);
    }

    /* Contact */
    .contact{
      background:var(--light);
    }

    .contact-grid{
      display:grid;
      grid-template-columns:0.95fr 1.05fr;
      gap:28px;
      align-items:start;
    }

    .contact-info{
      display:grid;
      gap:18px;
    }

    .contact-card h3{
      color:var(--primary-dark);
      margin-bottom:8px;
    }

    .contact-card p{
      color:var(--muted);
    }

    .contact-form{
      background:#fff;
      border:1px solid var(--border);
      border-radius:20px;
      padding:30px;
      box-shadow:var(--shadow);
    }

    .form-group{
      margin-bottom:16px;
    }

    .contact-form label{
      display:block;
      margin-bottom:8px;
      font-weight:600;
      color:var(--primary-dark);
    }

    .contact-form input,
    .contact-form textarea{
      width:100%;
      border:1px solid var(--border);
      border-radius:12px;
      padding:14px 16px;
      font-size:1rem;
      outline:none;
      resize:vertical;
    }

    .contact-form textarea{
      min-height:140px;
    }

    /* Footer */
    footer{
      background:var(--primary-dark);
      color:#d6e2ed;
      padding:50px 0 20px;
    }

    .footer-grid{
      display:grid;
      grid-template-columns:2fr 1fr 1fr;
      gap:30px;
      margin-bottom:26px;
    }

    .footer-brand h3,
    .footer-links h4{
      color:#fff;
      margin-bottom:14px;
    }

    .footer-links a{
      display:block;
      margin-bottom:10px;
      color:#d6e2ed;
    }

    .footer-links a:hover{
      color:#fff;
    }

    .copyright{
      border-top:1px solid rgba(255,255,255,0.12);
      padding-top:18px;
      text-align:center;
      font-size:0.95rem;
      color:#bdd0df;
    }

    /* Floating Chat */
    .chat-toggle{
      position:fixed;
      right:22px;
      bottom:22px;
      width:62px;
      height:62px;
      border:none;
      border-radius:50%;
      background:linear-gradient(135deg, var(--primary), var(--secondary));
      color:#fff;
      font-size:1.5rem;
      cursor:pointer;
      box-shadow:0 18px 30px rgba(15,76,129,0.26);
      z-index:2000;
    }

    .chat-box{
      position:fixed;
      right:22px;
      bottom:95px;
      width:340px;
      max-width:calc(100vw - 30px);
      background:#fff;
      border-radius:18px;
      overflow:hidden;
      border:1px solid var(--border);
      box-shadow:0 20px 40px rgba(12, 40, 68, 0.18);
      z-index:1999;
      display:none;
    }

    .chat-box.open{
      display:block;
    }

    .chat-header{
      background:var(--primary);
      color:#fff;
      padding:16px 18px;
      display:flex;
      justify-content:space-between;
      align-items:center;
    }

    .chat-header h4{
      font-size:1rem;
    }

    .chat-close{
      background:none;
      border:none;
      color:#fff;
      font-size:1.2rem;
      cursor:pointer;
    }

    .chat-body{
      padding:16px;
      background:#f8fbfe;
    }

    .chat-message{
      padding:12px 14px;
      border-radius:14px;
      margin-bottom:12px;
      font-size:0.95rem;
      max-width:85%;
    }

    .chat-message.bot{
      background:#fff;
      border:1px solid var(--border);
      color:var(--text);
    }

    .chat-message.user{
      background:#dbeefe;
      margin-left:auto;
      color:var(--primary-dark);
    }

    .chat-input-row{
      display:flex;
      gap:10px;
      margin-top:8px;
    }

    .chat-body input{
      flex:1;
      padding:12px 14px;
      border:1px solid var(--border);
      border-radius:999px;
      outline:none;
    }

    .chat-body button{
      border:none;
      background:var(--primary);
      color:#fff;
      border-radius:999px;
      padding:0 16px;
      cursor:pointer;
    }

    /* Utilities */
    .bg-light{
      background:var(--light);
    }

    .sr-only{
      position:absolute;
      width:1px;
      height:1px;
      padding:0;
      margin:-1px;
      overflow:hidden;
      clip:rect(0, 0, 0, 0);
      white-space:nowrap;
      border:0;
    }

    /* Responsive */
    @media (max-width: 1100px){
      .nav-menu{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:#fff;
        border-bottom:1px solid var(--border);
        padding:18px 20px;
        flex-direction:column;
        align-items:flex-start;
        display:none;
      }

      .nav-menu.show{
        display:flex;
      }

      .menu-toggle{
        display:block;
      }

      .navbar{
        position:relative;
      }

      .courses-grid,
      .benefits-grid{
        grid-template-columns:repeat(2, 1fr);
      }

      .split,
      .verification-wrap,
      .contact-grid{
        grid-template-columns:1fr;
      }

      .footer-grid{
        grid-template-columns:1fr 1fr;
      }
    }

    @media (max-width: 700px){
      .section{
        padding:64px 0;
      }

      .section-title{
        font-size:1.8rem;
      }

      .courses-grid,
      .benefits-grid,
      .footer-grid{
        grid-template-columns:1fr;
      }

      .hero-slider{
        min-height:72vh;
      }

      .hero h1{
        font-size:2.3rem;
      }

      .top-bar .container{
        flex-direction:column;
        align-items:flex-start;
      }

      .brand{
        min-width:auto;
      }

      .navbar{
        min-height:72px;
      }

      .chat-box{
        right:12px;
        bottom:85px;
      }

      .chat-toggle{
        right:12px;
        bottom:12px;
      }
    }
	/* boton idioma */
	.lang-switch select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  
	}
	
	
.lang-switch select {
  appearance: none;          /* Quita estilo nativo */
  -webkit-appearance: none;  /* Safari/Chrome */
  -moz-appearance: none;     /* Firefox */

  border: none;
  outline: none;
  background: transparent;

  font-size: 14px;
  
  cursor: pointer;
  padding-right: 20px; /* espacio para la flecha */
}
.lang-switch {
  position: relative;
  display: inline-block;
}

.lang-switch::after {
  content: "▾";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #333;
}

/* Testimonials */
.testimonials-block {
  margin-top: 4rem;
  text-align: center;
}

.testimonials-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #222;
}

.testimonial-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.testimonial-track-container {
  width: 100%;
  max-width: 700px;
  overflow: hidden;
}

.testimonial-track {
  position: relative;
}

.testimonial-slide {
  display: none;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: opacity 0.4s ease;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1rem;
  border: 4px solid #f0f0f0;
}

.testimonial-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #222;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
}

.carousel-btn {
  background: #ffffff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 1.4rem;
  color: #333;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #222;
  color: #fff;
}

.carousel-dots {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.dot {
  width: 12px;
  height: 12px;
  background: #cfcfcf;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: #222;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .testimonial-carousel {
    gap: 0.5rem;
  }

  .testimonial-slide {
    padding: 2rem 1.2rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/*página de parnerts*/
#ap-partners,
#ap-partners * {
  box-sizing: border-box;
}

#ap-partners {
  padding: 72px 20px;
  background: #f4f7fb;
  color: #16324f;
}

#ap-partners .ap-container {
  max-width: 1180px;
  margin: 0 auto;
}

#ap-partners .ap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 32px;
  align-items: start;
}

#ap-partners .ap-left,
#ap-partners .ap-right {
  min-width: 0;
}

#ap-partners .ap-badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 16px;
  background: #e8f0ff;
  color: #1b4db8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}

#ap-partners h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  color: #102a43;
}

#ap-partners h3 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.15;
  color: #102a43;
}

#ap-partners h4 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.2;
  color: #102a43;
}

#ap-partners p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.75;
  color: #334e68;
}

#ap-partners .ap-card {
  background: #ffffff;
  border: 1px solid #e3eaf3;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.06);
}

#ap-partners .ap-card-soft {
  margin-top: 26px;
}

#ap-partners .ap-image-wrap {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e3eaf3;
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.06);
  margin-bottom: 24px;
}

#ap-partners .ap-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

#ap-partners .ap-list {
  margin: 0;
  padding-left: 22px;
}

#ap-partners .ap-list li {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.65;
  color: #334e68;
}

#ap-partners .ap-list-ordered {
  padding-left: 24px;
}

#ap-partners .ap-price {
  margin-bottom: 16px;
}

#ap-partners .ap-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

#ap-partners .ap-form-box {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid #e3eaf3;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.06);
}

#ap-partners .ap-form-head {
  margin-bottom: 22px;
}

#ap-partners .ap-form-head h3 {
  margin-bottom: 10px;
}

#ap-partners #apForm {
  margin: 0;
}

#ap-partners .ap-progress {
  width: 100%;
  height: 10px;
  background: #e9eef5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}

#ap-partners .ap-progress-bar {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, #1b4db8, #2b6ff0);
  border-radius: 999px;
  transition: width .3s ease;
}

#ap-partners .ap-step {
  display: none;
}

#ap-partners .ap-step.active {
  display: block;
}

#ap-partners .ap-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#ap-partners .ap-field {
  display: flex;
  flex-direction: column;
}

#ap-partners .ap-field.ap-full {
  grid-column: 1 / -1;
}

#ap-partners .ap-field label {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #243b53;
}

#ap-partners #apForm input,
#ap-partners #apForm select,
#ap-partners #apForm textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #ccd6e0;
  border-radius: 14px;
  background: #ffffff;
  color: #102a43;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.45;
  outline: none;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#ap-partners #apForm textarea {
  resize: vertical;
  min-height: 130px;
}

#ap-partners #apForm input:focus,
#ap-partners #apForm select:focus,
#ap-partners #apForm textarea:focus {
  border-color: #2b6ff0;
  box-shadow: 0 0 0 4px rgba(43, 111, 240, 0.14);
}

#ap-partners .ap-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

#ap-partners .ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  background: #1b4db8;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, opacity .2s ease;
}

#ap-partners .ap-btn:hover {
  background: #163f98;
  transform: translateY(-1px);
}

#ap-partners .ap-btn-secondary {
  background: #6b7c93;
}

#ap-partners .ap-btn-secondary:hover {
  background: #58687e;
}

#ap-partners #apSubmit {
  display: none;
}

@media (max-width: 992px) {
  #ap-partners .ap-grid,
  #ap-partners .ap-row {
    grid-template-columns: 1fr;
  }

  #ap-partners .ap-img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  #ap-partners {
    padding: 56px 16px;
  }

  #ap-partners .ap-form-box {
    padding: 22px;
  }

  #ap-partners .ap-form-grid {
    grid-template-columns: 1fr;
  }

  #ap-partners .ap-field.ap-full {
    grid-column: auto;
  }

  #ap-partners .ap-nav {
    flex-direction: column;
  }

  #ap-partners .ap-btn {
    width: 100%;
  }

  #ap-partners h2 {
    font-size: 34px;
  }

  #ap-partners h3 {
    font-size: 24px;
  }

  #ap-partners p,
  #ap-partners .ap-list li {
    font-size: 16px;
  }
}

/*PARA EL SUB MENU*/

/* ===== SUBMENÚ OFERTA ACADÉMICA ===== */

.nav-item.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: "▾";
  font-size: 0.75rem;
  color: #666;
  transition: transform 0.3s ease;
}

/* Submenú escritorio */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.28s ease;
  z-index: 999;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(45deg);
}

.dropdown-menu a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: #111827;
  font-weight: 500;
  transition: all 0.25s ease;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, #f3f7ff, #e8f0ff);
  color: #0d6efd;
  transform: translateX(4px);
}

/* Hover escritorio */
/* Hover cuando el dispositivo sí tiene mouse */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
  }

  .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Responsive: mismo breakpoint que tu menú hamburguesa */
@media (max-width: 1100px) {
  .nav-item.dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    margin-top: 0.5rem;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    padding: 0.35rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu::before {
    display: none;
  }
}

/*imagenes en los card*/
.card-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

#benefits_programas .card-icon{
  width: 100%;
  height: 160px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
}

#benefits_programas .card-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Solo en celular */
@media (max-width: 768px){
  #benefits_programas .card-icon{
    height: auto;
    overflow: hidden; /* 👈 clave */
  }

  #benefits .card-icon img{
    width: 100%;
    height: auto;
    object-fit: unset;
  }
}


/* CHAT ALTC - Desplazamiento vertical */

.chat-box.open {
    display: flex;
    flex-direction: column;
    height: 420px;
    max-height: calc(100vh - 115px);
}

.chat-box .chat-header {
    flex: 0 0 auto;
}

.chat-box .chat-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.chat-box #chatMessages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

.chat-box #chatMessages .chat-message {
    overflow-wrap: anywhere;
}

.chat-box .chat-input-row {
    flex: 0 0 auto;
}

.chat-box #chatMessages::-webkit-scrollbar {
    width: 7px;
}

.chat-box #chatMessages::-webkit-scrollbar-thumb {
    background: #9bb5ce;
    border-radius: 8px;
}

.chat-box #chatMessages::-webkit-scrollbar-track {
    background: #f1f5f9;
}


/* Botón flotante de WhatsApp */
.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.2s ease,
                background-color 0.2s ease;
}

.whatsapp-flotante svg {
    width: 33px;
    height: 33px;
}

.whatsapp-flotante:hover {
    background-color: #1ebe5d;
    color: #ffffff;
    transform: scale(1.08);
}

.whatsapp-flotante:focus-visible {
    outline: 3px solid #14532d;
    outline-offset: 4px;
}

/* Ajuste para celulares */
@media (max-width: 576px) {
    .whatsapp-flotante {
        bottom: 20px;
        left: 15px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-flotante svg {
        width: 30px;
        height: 30px;
    }
}


/* =========================================
   ALTC - CHAT RESPONSIVE PARA CELULARES
   ========================================= */

@media (max-width: 700px) {

    .chat-box {
        width: calc(100% - 24px);
        max-width: 420px;
        left: auto;
        right: 12px;
        bottom: 85px;
    }

    .chat-box .chat-body,
    .chat-box .chat-input-row {
        min-width: 0;
    }

    .chat-box .chat-input-row input {
        min-width: 0;
        width: 100%;
        flex: 1 1 0;
        font-size: 16px;
    }

    .chat-box .chat-input-row button {
        flex: 0 0 auto;
    }

    .chat-box #chatMessages {
        min-width: 0;
        overflow-x: hidden;
    }

}


/* Chat ALTC: evitar zoom automático en iPhone */
#chatInput {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}


