:root {
      --navy: #0b2845;
      --green: #7cb130;
      --cream: #f4efe8;
      --cream-2: #fbf7f0;
      --ink: #0b2845;
      --muted: #59615f;
      --line: rgba(11, 40, 69, 0.14);
      --white: #ffffff;
      --gold: #c89c4c;
      --red: #b84630;
      --radius: 22px;
      --shadow: 0 18px 46px rgba(11, 40, 69, 0.12);
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--cream);
      color: var(--ink);
      font-family: "Poppins", system-ui, sans-serif;
      line-height: 1.55;
      overflow-x: hidden;
    }

    img {
      display: block;
      width: 100%;
      object-fit: cover;
    }

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

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    .container {
      width: min(1360px, calc(100% - 32px));
      margin-inline: auto;
    }

    .skip-link {
      position: absolute;
      left: 16px;
      top: -60px;
      z-index: 20;
      background: var(--navy);
      color: var(--white);
      padding: 10px 14px;
      border-radius: 10px;
      transition: top 0.2s ease;
    }

    .skip-link:focus {
      top: 16px;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 10;
      background: rgba(244, 239, 232, 0.88);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--line);
    }

    .navbar {
      position: relative;
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: max-content;
    }

    .brand-logo {
      height: 67px;
      width: auto;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--navy);
      font-size: 0.92rem;
      font-weight: 700;
    }

    nav a {
      padding: 10px 12px;
      border-radius: 999px;
    }

    nav a:hover,
    nav a:focus-visible {
      background: rgba(124, 177, 48, 0.1);
      outline: none;
    }

    .nav-cta {
      background: var(--white);
      color: var(--navy);
      border: 2px solid var(--gold);
      padding: 10px 22px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .03em;
    }

    /* Switch de idioma ES/EN */
    .lang-switch {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 3px;
      margin-left: 4px;
    }
    .lang-switch a {
      padding: 8px 14px;
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      font-weight: 800;
      font-size: 0.84rem;
      line-height: 1;
      color: var(--navy);
    }
    .lang-switch a.active {
      background: var(--green);
      color: var(--navy);
    }
    .lang-switch a:not(.active):hover { background: rgba(124,177,48,0.12); }

    .header-lang {
      display: none;
      margin-left: auto;
    }

    /* Botón hamburguesa — oculto en escritorio, visible en móvil (estándar 48x48px Regla 15) */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 48px;
      height: 48px;
      min-width: 48px;
      min-height: 48px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--white);
      cursor: pointer;
    }

    .nav-toggle span {
      display: block;
      height: 2px;
      width: 100%;
      border-radius: 2px;
      background: var(--navy);
      transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
      padding: 28px 0 34px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
    }

    .hero-main {
      min-height: 648px;
      position: relative;
      overflow: hidden;
      border-radius: var(--radius);
      background: var(--navy);
      box-shadow: var(--shadow);
    }

    .hero-main img {
      height: 100%;
      object-position: center top;
    }

    .hero-main::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0) 75%
      );
    }

    .hero-copy {
      position: absolute;
      inset: auto 0 0;
      z-index: 1;
      padding: clamp(24px, 4vw, 56px);
      color: var(--white);
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 20px;
    }

    .badge {
      width: max-content;
      max-width: 100%;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(244, 239, 232, 0.14);
      color: var(--cream);
      border: 1px solid rgba(244, 239, 232, 0.2);
      font-size: 0.82rem;
      font-weight: 800;
    }

    .badge.green {
      background: var(--green);
      border-color: transparent;
    }

    h1,
    h2,
    h3 {
      font-family: "Poppins", system-ui, sans-serif;
      text-wrap: balance;
      letter-spacing: -0.02em;
    }

    h1 {
      max-width: 22ch;
      font-size: clamp(1.6rem, 3vw, 2.25rem);
      line-height: 1.2;
      margin-bottom: 20px;
    }

    .hero-copy p,
    .hero-copy .hero-desc-short,
    .hero-copy .hero-desc-long {
      max-width: 68ch;
      color: rgba(255, 255, 255, 0.88);
      font-size: clamp(0.92rem, 1.2vw, 1.05rem);
      line-height: 1.75;
    }

    /* By default: show long, hide short */
    .hero-desc-short { display: none; }
    .hero-desc-long  { display: block; }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 28px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 13px 22px;
      border: 0;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 800;
      box-sizing: border-box;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    }

    .btn-group {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .btn-group .btn {
      flex: 1 1 180px;
      min-width: 0;
      text-align: center;
      justify-content: center;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

    .calc-cta-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 36px rgba(124, 177, 48, 0.55);
    }

    .btn-primary {
      background: var(--green);
      color: var(--navy);
    }

    .btn-secondary {
      background: var(--cream);
      color: var(--navy);
    }

    .btn-outline {
      background: transparent;
      color: var(--navy);
      border: 1px solid var(--line);
    }

    .route-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
      margin-bottom: 42px;
    }

    .route-card {
      position: relative;
      min-height: 349px;
      overflow: hidden;
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .route-card img {
      height: 310px;
    }

    .route-body {
      padding: 22px;
    }

    .route-kicker {
      color: var(--green);
      font-size: 0.82rem;
      font-weight: 900;
      margin-bottom: 8px;
    }

    .route-card h2 {
      color: var(--navy);
      font-size: clamp(1.1rem, 1.5vw, 1.5rem);
      line-height: 1.2;
      margin-bottom: 10px;
    }

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

    .market-widget {
      margin: 0 auto 42px;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    section {
      padding: clamp(56px, 8vw, 108px) 0;
    }

    .section-head {
      max-width: 900px;
      margin-bottom: 34px;
    }

    .section-head h2 {
      color: var(--navy);
      font-size: clamp(2rem, 4vw, 3.4rem);
      line-height: 1.1;
      margin-bottom: 16px;
    }

    .section-head h2 span {
      color: var(--green);
    }

    .section-head p {
      max-width: 72ch;
      color: var(--muted);
      font-size: 0.97rem;
      text-wrap: pretty;
    }

    .split {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 22px;
    }

    .panel {
      background: var(--white);
      border-radius: var(--radius);
      padding: clamp(22px, 3vw, 34px);
      box-shadow: var(--shadow);
    }

    .panel.dark {
      background: var(--navy);
      color: var(--white);
    }

    .panel.green {
      background: var(--green);
      color: var(--white);
    }

    .panel h3 {
      font-size: clamp(1rem, 1.4vw, 1.3rem);
      line-height: 1.25;
      margin-bottom: 12px;
    }

    .panel p,
    .panel li {
      color: var(--muted);
      text-wrap: pretty;
    }

    .panel.dark p,
    .panel.dark li,
    .panel.green p,
    .panel.green li {
      color: rgba(255, 255, 255, 0.84);
    }

    #sobre-carlos {
      padding: clamp(48px, 7vw, 80px) 0;
    }

    #sobre-carlos .split {
      gap: 48px;
    }

    .video-feature {
      display: grid;
      gap: 28px;
    }

    .video-frame {
      position: relative;
      height: 648px;
      overflow: hidden;
      border-radius: var(--radius);
      background:
        linear-gradient(135deg, rgba(11, 40, 69, 0.92), rgba(124, 177, 48, 0.72)),
        url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?q=80&w=1600&auto=format&fit=crop") center / cover;
      box-shadow: var(--shadow);
    }

    .video-frame video {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      background: var(--navy);
    }

    .video-notes {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .video-note {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 12px;
      padding: 16px;
      border-radius: 18px;
      background: rgba(11, 40, 69, 0.05);
    }

    .video-note strong {
      color: var(--navy);
    }

    .video-note p {
      margin-top: 4px;
      color: var(--muted);
    }

    .list {
      display: grid;
      gap: 12px;
      list-style: none;
      margin-top: 20px;
    }

    .list li {
      display: grid;
      grid-template-columns: 28px 1fr;
      gap: 10px;
      align-items: start;
    }

    .check {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(124, 177, 48, 0.12);
      color: var(--green);
      font-weight: 900;
    }

    .dark .check,
    .green .check {
      background: rgba(255, 255, 255, 0.16);
      color: var(--cream);
    }

    .article-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
    }

    .article {
      overflow: hidden;
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .article img {
      width: 100%;
      aspect-ratio: 3 / 4;
      height: auto;
      object-fit: cover;
      background: var(--white);
    }

    .article-content {
      padding: 22px;
    }

    .meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 0.86rem;
      font-weight: 800;
      margin-bottom: 12px;
    }

    .category {
      color: var(--green);
    }

    .article h3 {
      color: var(--navy);
      font-size: clamp(1rem, 1.4vw, 1.35rem);
      line-height: 1.3;
      margin-bottom: 12px;
    }

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

    .review-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
    }

    .review-card {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: clamp(22px, 3vw, 30px);
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .review-stars {
      color: var(--gold);
      font-size: 1.15rem;
      letter-spacing: 3px;
    }

    .review-quote {
      flex-grow: 1;
      color: var(--ink);
    }

    .review-author {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .review-avatar {
      width: 48px;
      height: 48px;
      flex-shrink: 0;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--navy);
      color: var(--white);
      font-weight: 800;
    }

    .review-author strong {
      display: block;
      color: var(--navy);
    }

    .review-author span {
      color: var(--muted);
      font-size: 0.86rem;
    }

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

    .form-card {
      background: var(--white);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: clamp(22px, 3vw, 34px);
    }

    .form-card h3 {
      color: var(--navy);
      font-size: clamp(1.2rem, 2vw, 1.75rem);
      line-height: 1.2;
      margin-bottom: 10px;
    }

    fieldset {
      border: 0;
      min-inline-size: 0;
    }

    .quiz-card {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    @media (min-width: 1025px) {
      .quiz-card {
        height: 800px;
        overflow-y: auto;
      }
    }

    .quiz-card button[type="submit"] {
      margin-top: 24px;
    }

    .quiz-progress {
      display: grid;
      gap: 8px;
      margin: 22px 0;
    }

    .quiz-progress-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 0.86rem;
      font-weight: 900;
    }

    .quiz-track {
      height: 10px;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(11, 40, 69, 0.1);
    }

    .quiz-fill {
      width: 0%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--green), var(--navy));
      transition: width 0.35s ease;
    }

    .quiz-step {
      display: none;
      animation: stepIn 0.28s ease both;
    }

    .quiz-step.active {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      justify-content: flex-start;
      padding-top: 12px;
    }

    @keyframes stepIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .quiz-question {
      margin: 6px 0 8px;
      color: var(--navy);
      font-family: "Poppins", system-ui, sans-serif;
      font-size: clamp(1.05rem, 1.6vw, 1.35rem);
      line-height: 1.3;
      text-wrap: balance;
    }

    .quiz-hint {
      margin-bottom: 12px;
      color: var(--muted);
      font-weight: 500;
      font-size: 0.88rem;
      line-height: 1.5;
    }

    .quiz-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 14px;
    }

    .quiz-back {
      background: transparent;
      color: var(--navy);
      border: 1px solid var(--line);
    }

    .field {
      display: grid;
      gap: 6px;
      margin-top: 14px;
    }

    label {
      color: var(--navy);
      font-weight: 900;
      font-size: 0.94rem;
    }

    input,
    select,
    textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--cream-2);
      color: var(--ink);
      padding: 13px 14px;
      outline: none;
    }

    textarea {
      min-height: 120px;
      resize: vertical;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 4px rgba(124, 177, 48, 0.13);
    }

    .choice-group {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
      margin-bottom: auto;
    }

    .choice {
      position: relative;
    }

    .choice input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .choice span {
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--cream-2);
      color: var(--navy);
      font-weight: 700;
      font-size: 0.92rem;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .choice span:hover {
      transform: translateY(-2px);
      border-color: rgba(124, 177, 48, 0.45);
    }

    .choice input:checked+span {
      background: var(--green);
      color: var(--navy);
      border-color: var(--green);
    }

    .form-message {
      min-height: 28px;
      margin-top: 14px;
      color: var(--green);
      font-weight: 900;
    }

    .contact-card {
      max-width: 920px;
      margin-inline: auto;
    }

    .contact-fields {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 18px;
    }

    .contact-fields .field {
      margin-top: 0;
    }

    .contact-fields .full {
      grid-column: 1 / -1;
    }

    .contact-card button[type="submit"] {
      margin-top: 18px;
    }

    @media (max-width: 640px) {
      .contact-fields {
        grid-template-columns: 1fr;
      }
    }

    .bubble {
      width: fit-content;
      max-width: 84%;
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.12);
      color: rgba(255, 255, 255, 0.88);
      font-size: 14px;
    }

    .bubble.user {
      align-self: flex-end;
      background: var(--cream);
      color: var(--navy);
    }

    .chat-widget {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 50;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 14px;
    }

    .chat-bubble-toggle {
      position: relative;
      width: 64px;
      height: 64px;
      border: 0;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--green);
      color: var(--white);
      cursor: pointer;
      box-shadow: var(--shadow);
      transition: transform 0.2s ease;
    }

    .chat-badge-pulse {
      position: absolute;
      top: 2px;
      right: 2px;
      width: 13px;
      height: 13px;
      background-color: #1877F2;
      border: 2px solid #ffffff;
      border-radius: 50%;
      z-index: 5;
      pointer-events: none;
      animation: chatPulse 1.8s infinite ease-in-out;
    }

    .chat-bubble-toggle[aria-expanded="true"] .chat-badge-pulse {
      display: none;
    }

    @keyframes chatPulse {
      0% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.8);
      }
      70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 10px rgba(24, 119, 242, 0);
      }
      100% {
        transform: scale(0.85);
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0);
      }
    }

    .chat-bubble-toggle:hover {
      transform: translateY(-2px);
    }

    .chat-bubble-toggle svg {
      width: 28px;
      height: 28px;
    }

    .chat-bubble-panel {
      width: min(360px, calc(100vw - 44px));
      max-height: min(520px, calc(100vh - 116px));
      display: grid;
      grid-template-rows: auto 1fr auto;
      overflow: hidden;
      border-radius: var(--radius);
      background: #F8FAFC; /* Fondo claro solicitado */
      color: #1E293B;      /* Texto oscuro */
      box-shadow: var(--shadow);
      border: 3px solid #CBD5E1; /* Borde grisáceo sutil */
    }

    .chat-bubble-panel[hidden] {
      display: none;
    }

    .chat-bubble-head {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: var(--navy); /* Fondo azul marino corporativo */
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      color: #FFFFFF;
    }

    /* Foto/Avatar Circular */
    .chat-avatar {
      width: 54px; /* Foto un poquito más grande */
      height: 54px;
      position: relative;
    }

    .avatar-img-container {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      overflow: hidden;
      border: 0; /* Sin el círculo azul de la foto */
      box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .avatar-img-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Indicador verde de 'En línea' en la esquina del avatar */
    .chat-avatar .status-indicator {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 13px;
      height: 13px;
      background-color: #22C55E; /* Verde brillante */
      border: 2px solid var(--navy); /* Integrado al fondo de la cabecera */
      border-radius: 50%;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .chat-avatar-svg {
      width: 24px;
      height: 24px;
      fill: currentColor;
    }

    .chat-head-info {
      flex: 1;
      min-width: 0;
    }

    .chat-head-info strong {
      display: block;
      font-size: 0.95rem; /* Tamaño optimizado para encajar en una fila */
      color: #FFFFFF;     /* Texto blanco */
      font-weight: 500;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Formato en cursiva, gris y delgado para la etiqueta del asistente */
    .chat-head-info strong .assistant-label {
      font-style: italic;
      font-weight: 300;
      color: rgba(255, 255, 255, 0.75);
      font-size: 0.88rem;
    }

    .chat-head-info span {
      display: block;
      font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.7); /* Letras de En línea en blanco sutil */
    }

    .chat-bubble-close {
      border: 0;
      background: transparent;
      color: rgba(255, 255, 255, 0.8);
      font-size: 1.5rem;
      line-height: 1;
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border-radius: 50%;
      transition: background-color 0.2s ease, color 0.2s ease;
    }

    .chat-bubble-close:hover {
      color: #FFFFFF;
      background-color: rgba(255, 255, 255, 0.12);
    }

    .chat-bubble-log {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px;
      overflow-y: auto;
      background: #F8FAFC;
    }

    /* Burbujas del Agente (Fondo blanco, texto oscuro) */
    .chat-bubble-log .bubble.agent {
      align-self: flex-start;
      background: #FFFFFF;
      color: #1E293B;
      border-radius: 2px 12px 12px 12px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
      border: 1px solid #E2E8F0;
    }

    /* Burbujas del Usuario (Fondo verde, texto blanco) */
    .chat-bubble-log .bubble.user {
      align-self: flex-end;
      background: var(--green);
      color: #FFFFFF;
      border-radius: 12px 12px 2px 12px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .chat-link {
      color: #2563EB; /* Azul clickeable en burbujas */
      text-decoration: underline;
      font-weight: 700;
      cursor: pointer;
      word-break: break-word;
    }

    .chat-link:hover {
      color: #fff;
      background: #2563EB;
      text-decoration: none;
      padding: 1px 4px;
      border-radius: 4px;
    }

    .chat-bubble-form {
      display: flex;
      gap: 8px;
      padding: 12px;
      background: #FFFFFF;
      border-top: 1px solid #E2E8F0;
      align-items: center;
      margin: 0;
    }

    .chat-bubble-form input {
      flex: 1;
      min-width: 0;
      border: 1px solid #E2E8F0;
      border-radius: 24px;
      padding: 10px 16px;
      font-family: inherit;
      font-size: 0.92rem;
      outline: none;
      background: #F8FAFC;
      transition: border-color 0.2s ease, background-color 0.2s ease;
      color: #1E293B;
    }

    .chat-bubble-form input:focus {
      border-color: #2563EB;
      background: #FFFFFF;
    }

    .chat-bubble-form button {
      border: 0;
      background: var(--green);
      color: #FFFFFF;
      border-radius: 24px;
      padding: 10px 18px;
      font-family: inherit;
      font-weight: 500;
      font-size: 0.92rem;
      cursor: pointer;
      transition: background-color 0.2s ease, transform 0.1s ease;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Indicador de escritura estilo WhatsApp */
    .typing-indicator {
      display: flex;
      align-items: center;
      gap: 4px;
      height: 16px;
      padding: 2px 4px;
    }

    .typing-indicator span {
      width: 8px;
      height: 8px;
      background-color: #64748B; /* Color muted */
      border-radius: 50%;
      display: inline-block;
      animation: typing-bounce 1.4s infinite ease-in-out both;
    }

    .typing-indicator span:nth-child(1) {
      animation-delay: -0.32s;
    }

    .typing-indicator span:nth-child(2) {
      animation-delay: -0.16s;
    }

    @keyframes typing-bounce {
      0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.4;
      } 
      40% { 
        transform: scale(1.1);
        opacity: 1;
      }
    }

    .faq-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    details {
      background: var(--white);
      border-radius: 18px;
      padding: 18px 20px;
      box-shadow: 0 8px 22px rgba(11, 40, 69, 0.08);
    }

    summary {
      cursor: pointer;
      color: var(--navy);
      font-weight: 900;
    }

    /* AEO: h3 inside summary for long-tail keyword indexing */
    summary h3 {
      display: inline;
      font-size: inherit;
      font-weight: inherit;
      color: inherit;
      margin: 0;
      letter-spacing: inherit;
    }

    details p {
      margin-top: 10px;
      color: var(--muted);
    }

    .footer {
      padding: 54px 0;
      background: var(--navy);
      color: var(--white);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr repeat(3, 1fr);
      gap: 28px;
    }

    .footer p,
    .footer a {
      color: rgba(255, 255, 255, 0.76);
    }

    .footer h3,
    .footer h4 {
      margin-bottom: 12px;
    }

    .footer a {
      display: block;
      margin-top: 8px;
    }

    .footer-social {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    .footer-social a {
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      margin-top: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      color: var(--white);
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .footer-social a:hover {
      background: var(--green);
      transform: translateY(-2px);
    }

    .footer-social svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    /* ── SECCIÓN RECLUTAS: slideshow (lado imagen) + modal ── */
    .recruit-grid {
      align-items: stretch;
    }

    .recruit-media {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      background: var(--navy);
    }

    .slideshow {
      position: absolute;
      inset: 0;
    }

    .slideshow .slide {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      transition: opacity 0.9s ease;
    }

    .slideshow .slide.active {
      opacity: 1;
    }

    .slideshow .slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Botón "Tu Plan de Carrera" dentro del cuestionario */
    .plan-cta {
      min-height: 40px;
      padding: 10px 18px;
      font-size: 0.9rem;
    }

    /* Modal "Tu Plan" */
    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(11, 40, 69, 0.55);
      backdrop-filter: blur(4px);
      animation: modalFade 0.2s ease both;
    }

    .modal-overlay[hidden] {
      display: none;
    }

    @keyframes modalFade {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-card {
      position: relative;
      width: min(560px, 100%);
      max-height: 88vh;
      overflow-y: auto;
      padding: clamp(28px, 4vw, 42px);
      border-radius: var(--radius);
      background: var(--green);
      color: var(--white);
      box-shadow: var(--shadow);
      animation: modalPop 0.25s ease both;
    }

    @keyframes modalPop {
      from { opacity: 0; transform: translateY(12px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .modal-card h3 {
      font-size: clamp(1.2rem, 2vw, 1.6rem);
      line-height: 1.25;
      margin-bottom: 12px;
      padding-right: 28px;
    }

    .modal-card p,
    .modal-card li {
      color: rgba(255, 255, 255, 0.9);
    }

    .modal-card li strong,
    .modal-card .hl {
      color: var(--navy);
    }

    .modal-card .list {
      margin-bottom: 24px;
    }

    .modal-card .check {
      background: rgba(255, 255, 255, 0.16);
      color: var(--cream);
    }

    .modal-wsp {
      width: 100%;
      background: var(--white);
      color: var(--navy);
    }

    .modal-close {
      position: absolute;
      top: 10px;
      right: 12px;
      width: 48px;
      height: 48px;
      min-width: 48px;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 0;
      background: transparent;
      color: var(--white);
      font-size: 2rem;
      line-height: 1;
      cursor: pointer;
      border-radius: 50%;
      transition: background-color 0.2s ease;
    }
    .modal-close:hover {
      background-color: rgba(255, 255, 255, 0.15);
    }

    @media (max-width: 1024px) {
      .recruit-media {
        min-height: 340px;
      }
    }

    /* ── Tarjeta de guía con fondo de oficina (blur) ── */
    .guide-panel {
      position: relative;
      overflow: hidden;
      background: transparent;
    }

    .guide-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background:
        linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.66)),
        url("oficina.webp") center / cover no-repeat;
      filter: blur(5px);
      transform: scale(1.08);
    }

    .guide-panel > * {
      position: relative;
      z-index: 1;
    }

    .guide-panel button[type="submit"] {
      margin-top: 20px;
    }

    /* ══════════════════════════════════════
       RESPONSIVE — TABLET  ≤1024px
    ══════════════════════════════════════ */
    @media (max-width: 1024px) {
      .split,
      .form-grid {
        grid-template-columns: 1fr;
      }

      .recruit-media {
        height: 320px;
        min-height: 320px;
      }

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

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

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

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

    /* ══════════════════════════════════════
       RESPONSIVE — TABLET  ≤768px
    ══════════════════════════════════════ */
    @media (max-width: 768px) {
      .navbar {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 12px 0;
      }

      .nav-toggle {
        display: flex;
      }

      .header-lang {
        display: inline-flex;
        margin-left: auto;
        margin-right: 6px;
      }

      nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: rgba(244, 239, 232, 0.98);
        backdrop-filter: blur(18px);
        border: 1px solid var(--line);
        border-radius: 0 0 18px 18px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
      }

      nav .lang-switch {
        display: none;
      }

      nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      nav a {
        padding: 13px 14px;
        font-size: 0.95rem;
        border-radius: 12px;
        white-space: normal;
      }

      nav .nav-cta {
        text-align: center;
        margin-top: 4px;
      }

      .hero {
        padding: 16px 0 22px;
      }

      /* Hero apilado en responsive: imagen completa arriba, texto debajo */
      .hero-main {
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: var(--navy);
      }

      .hero-main img {
        position: relative;
        height: 62vh;
        min-height: 420px;
        object-fit: cover;
        object-position: 70% top;
      }

      .hero-main::after {
        display: none;
      }

      .hero-copy {
        position: static;
        inset: auto;
        padding: 22px 18px 26px;
      }

      .video-frame {
        height: 420px;
      }

      section {
        padding: clamp(36px, 6vw, 72px) 0;
      }

      .section-head {
        margin-bottom: 24px;
      }

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

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

      .article-grid,
      .review-grid,
      .route-grid,
      .video-notes {
        grid-template-columns: 1fr;
      }
    }

    /* ══════════════════════════════════════
       RESPONSIVE — MOBILE  ≤480px
    ══════════════════════════════════════ */
    @media (max-width: 480px) {
      .container {
        width: calc(100% - 24px);
      }

      .video-frame {
        height: 300px;
      }

      .hero-copy {
        padding: 20px 16px 24px;
      }

      h1 {
        max-width: 18ch;
        font-size: clamp(1.35rem, 7vw, 1.65rem);
        line-height: 1.25;
        margin-bottom: 12px;
      }

      /* Swap: show short paragraph, hide long one */
      .hero-desc-short { display: block; }
      .hero-desc-long  { display: none; }

      .hero-copy .hero-desc-short {
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 0;
      }

      .badge-row {
        gap: 6px;
        margin-bottom: 14px;
        flex-wrap: wrap;
      }

      .badge {
        font-size: 0.76rem;
        padding: 6px 10px;
      }

      .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 18px;
      }

      .hero-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        font-size: 0.92rem;
      }

      .route-card {
        min-height: auto;
      }

      .choice-group {
        grid-template-columns: 1fr;
      }

      .panel {
        padding: 18px;
      }

      .form-card {
        padding: 20px;
      }

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

    .social-rail {
      position: fixed;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 40;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
    }

    .social-rail .icon-content {
      position: relative;
    }

    .social-rail .icon-content a {
      position: relative;
      overflow: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 50px;
      height: 50px;
      border-radius: 20%;
      color: var(--navy);
      background-color: #fff;
      box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease-in-out;
    }

    .social-rail .icon-content a:hover {
      color: #fff;
    }

    .social-rail .icon-content a svg {
      position: relative;
      z-index: 1;
      width: 26px;
      height: 26px;
      fill: currentColor;
    }

    .social-rail .icon-content a .filled {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 0;
      background-color: var(--navy);
      transition: all 0.3s ease-in-out;
    }

    .social-rail .icon-content a:hover .filled {
      height: 100%;
    }

    .social-rail .icon-content .tooltip {
      position: absolute;
      left: 56px;
      top: 50%;
      transform: translateY(-50%) translateX(-6px);
      background: var(--navy);
      color: #fff;
      padding: 6px 10px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: all 0.3s ease;
    }

    .social-rail .icon-content:hover .tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateY(-50%) translateX(0);
    }

    .social-rail .icon-content a[data-social="whatsapp"]:hover .filled,
    .social-rail .icon-content a[data-social="whatsapp"]:active .filled {
      background-color: #25D366;
    }

    .social-rail .icon-content a[data-social="facebook"]:hover .filled,
    .social-rail .icon-content a[data-social="facebook"]:active .filled {
      background-color: #1877F2;
    }

    .social-rail .icon-content a[data-social="instagram"]:hover .filled,
    .social-rail .icon-content a[data-social="instagram"]:active .filled {
      background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .mobile-glass-dock {
      display: none;
    }

    @media (max-width: 640px) {
      .social-rail {
        display: none !important;
      }

      .chat-widget > .chat-bubble-toggle {
        display: none !important;
      }

      .mobile-glass-dock {
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 999px;
        box-shadow: 0 12px 36px rgba(11, 40, 69, 0.18);
        max-width: calc(100vw - 32px);
      }

      .dock-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease;
        text-decoration: none;
        color: var(--navy);
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }

      .dock-btn svg {
        width: 24px;
        height: 24px;
      }

      .dock-btn.whatsapp {
        background: #25D366;
        color: #ffffff;
      }

      .dock-btn.facebook {
        background: #1877F2;
        color: #ffffff;
      }

      .dock-btn.instagram {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        color: #ffffff;
      }

      .dock-btn.chat {
        background: var(--green);
        color: var(--navy);
      }

      .dock-btn:active {
        transform: scale(0.92);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* Calculadora CTA Custom styles */
    .calculadora-cta-box {
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 24px;
      align-items: stretch;
      background: var(--navy) url('background_4.webp') no-repeat center center / cover;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      min-height: 440px;
    }

    .calculadora-cta-box::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background: linear-gradient(105deg, rgba(11, 40, 69, 0.96) 0%, rgba(11, 40, 69, 0.9) 45%, rgba(11, 40, 69, 0.3) 85%);
      pointer-events: none;
    }

    .calculadora-cta-image-col {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      height: 100%;
      position: relative;
      z-index: 1;
      padding: 0;
    }

    .calculadora-cta-image-col img {
      height: 100%;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      object-position: bottom right;
      display: block;
      margin-left: auto;
      transform: scaleX(-1);
    }

    .calc-cta-features {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 26px;
    }

    .calc-cta-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.84rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.92);
      background: rgba(255, 255, 255, 0.12);
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(4px);
    }

    @media (max-width: 980px) {
      .calculadora-cta-box {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
      }
      .calculadora-cta-box::before {
        background: linear-gradient(180deg, rgba(11, 40, 69, 0.98) 0%, rgba(11, 40, 69, 0.94) 55%, rgba(11, 40, 69, 0.45) 100%);
      }
      .calculadora-cta-image-col {
        justify-content: center;
        height: 380px;
      }
      .calculadora-cta-image-col img {
        height: 100%;
        max-height: 380px;
        margin: 0 auto;
        object-position: bottom center;
      }
    }