:root {
      color-scheme: light;
      --navy: #102638;
      --navy-light: #203f58;
      --gold: #ad8950;
      --gold-light: #ecd3a5;
      --white: #ffffff;
      --ink: #102638;
      --muted: #596a78;
      --line: #d9e1e7;
      --green: #087b48;
      --green-pulse: #10b981;
      --serif: Georgia, 'Times New Roman', serif;
      --sans: 'Segoe UI', Arial, sans-serif;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { 
      margin: 0; 
      color: #1a2c3d; 
      background-color: #0b1a26; 
      font: 1rem/1.65 var(--sans); 
      position: relative;
    }
    a { color: inherit; text-underline-offset: .25em; }
    button { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    a:focus-visible, button:focus-visible { outline: 3px solid #007bba; outline-offset: 5px; }
    svg { flex-shrink: 0; }
    [hidden] { display: none !important; }

    /* CONTENEDOR FIJO DE VIDEO PARA SCRUBBING CON EL SCROLL */
    .bg-video-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: -3;
      overflow: hidden;
      pointer-events: none;
    }
    #scroll-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }
    .bg-video-overlay {
      position: fixed;
      inset: 0;
      z-index: -2;
      background: radial-gradient(circle at 50% 30%, rgba(7, 22, 34, 0.65) 0%, rgba(5, 14, 22, 0.85) 100%);
      pointer-events: none;
    }

    .wrap { width: min(1160px, calc(100% - 4rem)); margin-inline: auto; }
    .skip { position: absolute; left: 1rem; top: -6rem; z-index: 100; padding: .75rem 1rem; background: var(--white); }
    .skip:focus { top: 1rem; }
    
    .demo-banner { margin: 0; padding: .6rem 1.25rem; background: #07131d; color: #b7c7d4; text-align: center; font-size: .8125rem; border-bottom: 1px solid rgba(255,255,255,0.08); }

    /* Cabecera translúcida fija */
    .header { 
      border-bottom: 1px solid rgba(255, 255, 255, 0.12); 
      background: rgba(10, 25, 38, 0.82); 
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      position: relative;
      z-index: 20;
      color: var(--white);
    }
    .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 80px; padding-block: .6rem; }
    .brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
    .brand-mark { color: var(--gold-light); border: 1px solid var(--gold-light); border-radius: 50% 50% 3px 3px; width: 44px; height: 50px; display: grid; place-items: center; font: 1.8rem var(--serif); }
    .brand-name { display: block; font: 1.4rem/1.3 var(--serif); letter-spacing: -.02em; color: var(--white); }
    .brand-caption { display: block; color: #a4b9cb; font-size: .85rem; }
    nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.75rem; }
    nav a { padding-block: .6rem; font-size: .9375rem; text-decoration: none; color: #d9e5ef; }
    nav a:hover { color: var(--gold-light); }

    /* HERO OPTIMIZADO */
    .hero { position: relative; color: var(--white); padding-block: 2.8rem 3.5rem; }
    .hero-layout { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 4rem; min-height: auto; }
    .hero .lead { color: #e0e7ed; }
    .hero .button { color: var(--navy); background: var(--gold-light); border-color: var(--gold-light); }
    .hero .button:hover { background: #f6e2bf; border-color: #f6e2bf; }
    .hero .text-link { color: var(--white); }
    .hero .text-link:hover { color: var(--gold-light); }

    /* Badge de disponibilidad en tiempo real */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: .6rem;
      background: rgba(16, 38, 56, 0.7);
      border: 1px solid rgba(236, 211, 165, 0.3);
      padding: .4rem .9rem;
      border-radius: 30px;
      font-size: .8125rem;
      color: var(--gold-light);
      margin-bottom: 1.25rem;
      backdrop-filter: blur(10px);
    }
    .pulse-dot {
      width: 8px;
      height: 8px;
      background: var(--green-pulse);
      border-radius: 50%;
      box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
      70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
      100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }

    h1, h2, h3, p { margin-top: 0; }
    h1 { font: normal clamp(2.6rem, 4.5vw, 4.2rem)/1.1 var(--serif); letter-spacing: -.04em; margin-bottom: 1.25rem; max-width: 14ch; }
    h1 em { color: var(--gold-light); font-style: normal; }
    .lead { max-width: 40ch; font-size: 1.0625rem; margin-bottom: 1.8rem; line-height: 1.6; }
    
    .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; }
    .button { min-height: 50px; padding: .85rem 1.3rem; display: inline-flex; justify-content: center; align-items: center; gap: 1.1rem; background: var(--navy); border: 1px solid var(--navy); color: var(--white); text-decoration: none; border-radius: 3px; font-weight: 600; font-size: .9375rem; transition: background .18s, border-color .18s; cursor: pointer; }
    .button:hover { background: var(--navy-light); }
    .text-link { font-size: .9375rem; font-weight: 600; }

    /* Barra de Credenciales / Confianza en Hero */
    .hero-badges {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin-top: 2rem;
      padding-top: 1.8rem;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .badge-item strong { display: block; font-size: 1.2rem; font-family: var(--serif); color: var(--gold-light); }
    .badge-item span { font-size: .8rem; color: #b7c7d4; line-height: 1.3; display: block; }

    /* Tarjeta perfil en Hero */
    .profile-card { 
      background: rgba(16, 38, 56, 0.78); 
      color: var(--white); 
      padding: 2.2rem; 
      border: 1px solid rgba(255, 255, 255, 0.18); 
      border-top: 3px solid var(--gold-light); 
      border-radius: 8px; 
      backdrop-filter: blur(16px); 
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); 
      overflow-wrap: anywhere; 
    }
    .card-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); padding-bottom: 1.2rem; font-size: .8125rem; letter-spacing: .13em; text-transform: uppercase; }
    .card-heading span:last-child { color: var(--gold-light); font: 1.8rem var(--serif); }
    .profile-name { font: normal clamp(2rem, 3vw, 2.8rem)/1.15 var(--serif); margin: 1.6rem 0 .6rem; letter-spacing: -.025em; }
    .profile-area { margin-bottom: 1.6rem; color: #c8d5df; font-size: .95rem; }

    /* Puntos clave añadidos a la tarjeta */
    .card-highlights {
      list-style: none;
      padding: 0;
      margin: 0 0 1.8rem;
      border-top: 1px dashed rgba(255,255,255,0.15);
      padding-top: 1.2rem;
      display: flex;
      flex-direction: column;
      gap: .65rem;
      font-size: .85rem;
      color: #d8e3ec;
    }
    .card-highlights li { display: flex; align-items: center; gap: .6rem; }
    .card-highlights li::before { content: '✓'; color: var(--gold-light); font-weight: bold; }

    .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: .875rem; }
    .card-bottom a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
    .card-bottom a:hover { text-decoration: underline; }

    .section { padding-block: 5rem; }

    /* PANEL PERFIL PROFESIONAL */
    .profile-panel {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 8px;
      padding: 4rem 3.5rem;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }
    .profile-section { display: grid; grid-template-columns: 1fr 1.25fr; align-items: start; gap: 4rem; }
    
    .profile-visual { 
      position: relative; 
      margin: 0; 
      border-radius: 6px; 
      overflow: hidden; 
      aspect-ratio: 16 / 11; 
      background: var(--navy); 
      border: 1px solid var(--line); 
      box-shadow: 0 12px 30px rgba(16, 38, 56, 0.18);
    }
    .profile-visual .profile-photo { 
      width: 100%; 
      height: 100%; 
      display: block; 
      object-fit: cover; 
      object-position: center top; 
    }

    .profile-body { padding-top: 0; }
    h2 { font: normal clamp(2rem, 3.2vw, 2.8rem)/1.15 var(--serif); letter-spacing: -.025em; margin-bottom: 1rem; color: var(--navy); }
    .section-label { color: var(--gold); font-size: .8125rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 700; }
    .profile-description { color: #3b4d5e; font-size: 1.0625rem; line-height: 1.85; margin-bottom: 2rem; white-space: pre-line; }
    .detail { border-left: 2px solid var(--gold); padding-left: 1.1rem; }
    .detail dt { font-size: .875rem; color: var(--muted); }
    .detail dd { margin: .2rem 0 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
    .profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

    /* Sección Consulta */
    .consultation { 
      background: rgba(16, 38, 56, 0.84); 
      border-block: 1px solid rgba(255, 255, 255, 0.12); 
      color: var(--white);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }
    .consultation-inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 6rem; }
    .consultation h2 { color: var(--white); }
    .consultation-copy { color: #c4d3df; max-width: 40ch; margin-bottom: 0; font-size: 1.05rem; }
    .booking-card { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; padding: 2.5rem; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
    .booking-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
    .booking-top h3 { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--navy); }
    .duration { background: #eef3f6; color: var(--navy); padding: .3rem .75rem; border-radius: 30px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
    .price { font: normal clamp(2.2rem, 3.5vw, 3.1rem)/1.2 var(--serif); letter-spacing: -.04em; margin: 1.6rem 0 .65rem; color: var(--navy); overflow-wrap: anywhere; }
    .price-caption { margin-bottom: 1.6rem; color: var(--muted); font-size: .875rem; }
    .booking-card .button { width: 100%; background: var(--navy); border-color: var(--navy); color: var(--white); }
    .booking-card .button:hover { background: var(--navy-light); }
    .calendar-note { margin: .85rem 0 0; text-align: center; color: var(--muted); font-size: .875rem; }

    /* Sección Contacto */
    .contact-panel {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 8px;
      padding: 3.5rem;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }
    .contact { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
    .contact h2 { font-size: 2.2rem; }
    .contact p { color: var(--muted); margin-bottom: 0; }
    .button-outline { background: transparent; color: var(--navy); border-color: var(--navy); font-weight: 700; }
    .button-outline:hover { background: var(--navy); color: var(--white); }
    .contact-action { flex-shrink: 0; }
    .contact-action .small-note { text-align: center; font-size: .875rem; }
    .contact-email { margin-top: .65rem; overflow-wrap: anywhere; }

    /* Footer */
    footer { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 2.5rem 0 5rem; background: rgba(7, 18, 28, 0.96); color: #a9bac7; font-size: .875rem; }
    .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
    .footer-inner p { margin: 0; }
    .footer-inner a, .back-to-top-btn { 
      color: var(--gold-light); 
      text-decoration: none; 
      background: transparent;
      border: 0;
      cursor: pointer;
      font: inherit;
      padding: 0;
      display: inline-flex;
      align-items: center;
      gap: .3rem;
    }
    .footer-inner a:hover, .back-to-top-btn:hover { 
      text-decoration: underline; 
      color: #f6e2bf;
    }

    /* Flotantes */
    .whatsapp-float { position: fixed; bottom: max(1.5rem, env(safe-area-inset-bottom)); right: max(1.5rem, env(safe-area-inset-right)); width: 60px; height: 60px; display: grid; place-items: center; z-index: 25; background: var(--green); color: var(--white); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 5px 18px rgba(0,0,0,0.3); transition: background .18s, transform .18s; }
    .whatsapp-float:hover { background: #05643a; transform: scale(1.05); }
    .whatsapp-icon { width: 29px; height: 29px; fill: currentColor; }
    .notice { position: fixed; bottom: 6rem; right: 1.5rem; z-index: 26; width: min(340px, calc(100% - 3rem)); padding: 1.2rem; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px; background: var(--white); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
    .notice p { margin: 0 0 .65rem; color: var(--ink); }
    .notice button { background: transparent; border: 0; text-decoration: underline; text-underline-offset: .2em; color: var(--navy); min-height: 44px; padding: .4rem .5rem; cursor: pointer; }
    .svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }

    @media (max-width: 900px) {
      .header-inner { align-items: flex-start; flex-direction: column; gap: .8rem; padding-block: 1.25rem; }
      nav { width: 100%; justify-content: space-between; gap: .25rem 1rem; }
      .hero { padding-block: 2.5rem; }
      .hero-layout { gap: 2.5rem; grid-template-columns: 1fr; }
      .profile-panel { padding: 2.5rem 1.75rem; }
      .profile-section, .consultation-inner { gap: 2.5rem; }
      .hero-badges { grid-template-columns: 1fr; gap: .8rem; }
    }
    @media (max-width: 640px) {
      .wrap { width: calc(100% - 2rem); }
      .hero-layout, .profile-section, .consultation-inner, .profile-details { grid-template-columns: 1fr; }
      .hero { padding-block: 2rem; }
      h1 { max-width: 13ch; font-size: 2.3rem; }
      .section { padding-block: 3.5rem; }
      .contact-panel { padding: 2rem 1.5rem; }
      .contact { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
      .contact-action { width: 100%; }
      .contact-action .button { width: 100%; }
      .booking-card { padding: 1.5rem; }
    }
