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

    :root {
      --coral: #e3592c;
      --navy: #1e2c4f;
      --coral-light: #f07a55;
      --coral-dark: #c44820;
      --navy-light: #2a3d6b;
      --navy-dark: #141e37;
      --cream: #faf8f5;
      --white: #ffffff;
      --gray: #8a8f9e;
      --gray-light: #f2f1ef;
      --font-display: 'Cormorant Garamond', serif;
      --font-body: 'DM Sans', sans-serif;
      --transition: cubic-bezier(0.4, 0, 0.2, 1);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font-body);
      background: var(--cream);
      color: var(--navy);
      overflow-x: hidden;
    }

    /* ── SCROLLBAR ── */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--cream); }
    ::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 3px; }

    /* ── CURSOR DOT ── */
    .cursor {
      width: 8px; height: 8px;
      background: var(--coral);
      border-radius: 50%;
      position: fixed; top: 0; left: 0;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%,-50%);
      transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    }
    .cursor-ring {
      width: 36px; height: 36px;
      border: 1.5px solid var(--coral);
      border-radius: 50%;
      position: fixed; top: 0; left: 0;
      pointer-events: none;
      z-index: 9998;
      transform: translate(-50%,-50%);
      transition: all 0.15s ease;
      opacity: 0.6;
    }

    /* ── HEADER ── */
    header {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      padding: 0 5%;
      display: flex; align-items: center; justify-content: space-between;
      height: 89px;
      transition: background 0.5s var(--transition), box-shadow 0.5s var(--transition), height 0.4s var(--transition);
    }
    header.scrolled {
      background: rgba(30, 44, 79, 0.97);
      backdrop-filter: blur(20px);
      box-shadow: 0 4px 40px rgba(0,0,0,0.2);
      height: 98px;
    }


    .logo {
    display: flex;
    align-items: center;
    }

    .logo img {
    height:60px;       
    width: auto;
    padding: 0;
    object-fit: contain;
    transition: opacity 0.3s;
    filter: brightness(0) invert(1);
    }

    .logo:hover img {
    opacity: 0.85;
    }

    /*header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
    }*/

    nav { display: flex; align-items: center; gap: 2.5rem; }
    nav a {
      text-decoration: none;
      color: rgba(255,255,255,0.75);
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      position: relative;
      transition: color 0.3s;
    }
    nav a::after {
      content: '';
      position: absolute; bottom: -4px; left: 0; right: 0;
      height: 1px; background: var(--coral);
      transform: scaleX(0); transform-origin: right;
      transition: transform 0.35s var(--transition);
    }
    nav a:hover { color: white; }
    nav a:hover::after { transform: scaleX(1); transform-origin: left; }

    .btn-turno-header {
      background: var(--coral);
      color: white;
      border: none;
      padding: 11px 24px;
      border-radius: 6px;
      font-family: var(--font-body);
      font-size: 0.82rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    }
    .btn-turno-header:hover {
      background: var(--coral-dark);
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(227,89,44,0.4);
    }

    /* hamburger */
    .hamburger {
      display: none;
      flex-direction: column; gap: 5px;
      cursor: pointer; padding: 4px;
    }
    .hamburger span {
      display: block; width: 26px; height: 2px;
      background: white; border-radius: 2px;
      transition: all 0.35s var(--transition);
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 0;                    /* ← Cambiar de 68px a 0 */
      left: 0;
      right: 0;
      bottom: 0;                 /* ← AGREGAR esto para que ocupe toda la altura */
      background: rgba(20, 30, 55, 0.98);
      backdrop-filter: blur(20px);
      z-index: 99;
      flex-direction: column;
      justify-content: center;    /* ← Centrar verticalmente */
      align-items: center;        /* ← Centrar horizontalmente */
      padding: 2rem 5%;
      gap: 1.5rem;
      opacity: 0;                /* ← Cambiar de transform a opacity */
      pointer-events: none;      /* ← Para que no sea clickeable cuando está oculto */
      transition: opacity 0.4s var(--transition);
    }

    .mobile-menu.open {
      opacity: 1;                /* ← Cambiar de transform a opacity */
      pointer-events: all;       /* ← Para que sea clickeable cuando está abierto */
    }    
    
    .mobile-menu a {
      text-decoration: none;
      color: rgba(255,255,255,0.85);
      font-size: 1.1rem;         /* ← Un poco más grande */
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.8rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      width: 100%;
      max-width: 280px;
      text-align: center;
      transition: color 0.3s;
    }

    .mobile-menu a:hover {
      color: white;
    }

    /* AGREGAR - Estilo especial para "Volver al inicio" */
    .mobile-menu a.btn-inicio {
      color: var(--coral-light);
      font-weight: 600;
      border-bottom: 2px solid var(--coral);
      margin-bottom: 0.5rem;
    }

    .mobile-menu a.btn-inicio:hover {
      color: var(--coral);
    }

    /* AGREGAR - Estilo para el botón de turno en móvil */
    .mobile-menu .btn-turno-mobile {
      background: var(--coral);
      color: white;
      border: none;
      padding: 14px 32px;
      border-radius: 8px;
      font-family: var(--font-body);
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.3s, transform 0.2s;
      width: 100%;
      max-width: 280px;
      margin-top: 0.5rem;
    }

    .mobile-menu .btn-turno-mobile:hover {
      background: var(--coral-dark);
      transform: scale(1.02);
    }

    /*-- Turnos Modal --*/
    .telefono-turnos{
        font-size:1.35rem;
        font-weight:700;
        letter-spacing:.03em;
        color:#fff;
        line-height:1.2;
    }

    .telefono-turnos .mobile-break{
        display:none;
    }

    @media (max-width:600px){

        .telefono-turnos .mobile-break{
            display:block;
        }

    }

    /* ── HERO / SLIDER ── */
    .hero {
      position: relative;
      width: 100%; height: 100vh;
      min-height: 600px;
      overflow: hidden;
    }

    .slides { position: relative; width: 100%; height: 100%; }

    .slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
    }

    .slide.active {
      opacity: 1;
      pointer-events: auto;
    }

    .slide-bg {
      position: absolute; inset: 0;
      background-size: cover;
      background-position: center;
      transform: scale(1.05);
      transition: transform 8s linear;
    }
    .slide.active .slide-bg { transform: scale(1); }

    /* slide backgrounds with gradients */
    .slide-1 .slide-bg {
      background: url('../img/imagen-slide1_small.jpg') center/cover no-repeat;
    }
    .slide-2 .slide-bg {
      background: url('../img/imagen-slide2_new.jpg') center/cover no-repeat;
    }
    .slide-3 .slide-bg {
      background: url('../img/imagen-slide3_small.jpg') center/cover no-repeat;
    }

    /* decorative shapes per slide */
    .slide-deco {
      position: absolute; inset: 0;
      pointer-events: none;
    }
    .deco-circle {
      position: absolute;
      border-radius: 50%;
      opacity: 0.07;
    }

    .slide-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(105deg, rgba(14,22,44,0.92) 0%, rgba(14,22,44,0.6) 55%, rgba(14,22,44,0.2) 100%);
    }

    .slide-content {
      position: absolute; inset: 0;
      display: flex; align-items: center;
      padding: 0 10% 0 8%;
    }

    .slide-text { max-width: 640px; }

    .slide-eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--coral-light);
      margin-bottom: 1.5rem;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s 0.3s var(--transition), transform 0.8s 0.3s var(--transition);
    }
    .slide-eyebrow::before {
      content: '';
      display: inline-block;
      width: 32px; height: 1px;
      background: var(--coral);
    }
    .slide.active .slide-eyebrow { opacity: 1; transform: translateY(0); }

    .slide-title {
      font-family: var(--font-display);
      font-size: clamp(2.6rem, 5.5vw, 4.8rem);
      font-weight: 300;
      color: white;
      line-height: 1.1;
      margin-bottom: 1.5rem;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.9s 0.5s var(--transition), transform 0.9s 0.5s var(--transition);
    }
    .slide-title em {
      font-style: italic;
      color: var(--coral-light);
    }
    .slide.active .slide-title { opacity: 1; transform: translateY(0); }

    .slide-desc {
      font-size: 1rem;
      color: rgba(255,255,255,0.65);
      line-height: 1.7;
      max-width: 480px;
      margin-bottom: 2.5rem;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s 0.7s var(--transition), transform 0.8s 0.7s var(--transition);
    }
    .slide.active .slide-desc { opacity: 1; transform: translateY(0); }

    .slide-actions {
      display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s 0.9s var(--transition), transform 0.8s 0.9s var(--transition);
    }
    .slide.active .slide-actions { opacity: 1; transform: translateY(0); }

    .btn-primary {
      display: inline-flex; align-items: center; gap: 10px;
      background: var(--coral);
      color: white;
      padding: 16px 36px;
      border-radius: 6px;
      font-family: var(--font-body);
      font-size: 0.88rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      text-decoration: none;
      border: none; cursor: pointer;
      transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
      box-shadow: 0 4px 20px rgba(227,89,44,0.35);
    }
    .btn-primary:hover {
      background: var(--coral-dark);
      transform: translateY(-2px);
      box-shadow: 0 10px 36px rgba(227,89,44,0.5);
    }
    .btn-primary svg { transition: transform 0.3s; }
    .btn-primary:hover svg { transform: translateX(4px); }

    .btn-ghost {
      display: inline-flex; align-items: center; gap: 8px;
      color: rgba(255,255,255,0.8);
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-decoration: none;
      padding: 14px 0;
      border-bottom: 1px solid rgba(255,255,255,0.3);
      transition: color 0.3s, border-color 0.3s;
    }
    .btn-ghost:hover { color: white; border-color: white; }

    /* Slider controls */
    .slider-controls {
      position: absolute; bottom: 48px; left: 8%;
      display: flex; align-items: center; gap: 12px;
      z-index: 10;
    }
    .slider-dot {
      width: 28px; height: 2px;
      background: rgba(255,255,255,0.3);
      cursor: pointer;
      transition: background 0.3s, width 0.4s var(--transition);
      border-radius: 1px;
    }
    .slider-dot.active {
      background: var(--coral);
      width: 48px;
    }

    .slider-arrows {
      position: absolute; right: 5%; bottom: 40px;
      display: flex; gap: 10px; z-index: 10;
    }
    .arrow-btn {
      width: 48px; height: 48px;
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 50%;
      background: transparent;
      color: white;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.3s, border-color 0.3s, transform 0.2s;
    }
    .arrow-btn:hover {
      background: var(--coral);
      border-color: var(--coral);
      transform: scale(1.08);
    }

    /* Stats bar */
    .hero-stats {
      position: absolute; bottom: 0; left: 0; right: 0;
      background: rgba(255,255,255,0.06);
      backdrop-filter: blur(20px);
      border-top: 1px solid rgba(255,255,255,0.1);
      display: grid; grid-template-columns: repeat(4, 1fr);
      z-index: 10;
    }
    .stat-item {
      padding: 22px 5%;
      display: flex; align-items: center; gap: 16px;
      border-right: 1px solid rgba(255,255,255,0.1);
      transition: background 0.3s;
    }
    .stat-item:last-child { border-right: none; }
    .stat-item:hover { background: rgba(255,255,255,0.05); }
    .stat-icon {
      width: 42px; height: 42px; flex-shrink: 0;
      background: rgba(227,89,44,0.18);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
    }
    .stat-icon svg { width: 20px; height: 20px; color: var(--coral); }
    .stat-number {
      font-family: var(--font-display);
      font-size: 1.7rem;
      font-weight: 600;
      color: white;
      line-height: 1;
    }
    .stat-label {
      font-size: 0.72rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-top: 3px;
    }

    /* ── INTRO ── */
    .section-intro {
      padding: 120px 8%;
      background: var(--cream);
    }
    .intro-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }

    .tag-line {
      display: inline-flex; align-items: center; gap: 10px;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--coral);
      margin-bottom: 1.5rem;
    }
    .tag-line::before {
      content: '';
      display: inline-block;
      width: 28px; height: 1px;
      background: var(--coral);
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3.2rem);
      font-weight: 300;
      line-height: 1.15;
      color: var(--navy);
      margin-bottom: 1.5rem;
    }
    .section-title strong {
      font-weight: 600;
      color: var(--navy);
    }
    .section-title em {
      font-style: italic;
      color: var(--coral);
    }

    .intro-text p {
      font-size: 1rem;
      line-height: 1.75;
      color: #5a6070;
      margin-bottom: 1.2rem;
    }
    .intro-text p:last-child { margin-bottom: 0; }

    .intro-visual {
      position: relative;
    }
    .intro-card-main {
      background: var(--navy);
      border-radius: 16px;
      overflow: hidden;
      aspect-ratio: 4/5;
      position: relative;
      box-shadow: 0 40px 80px rgba(30,44,79,0.25);
      background: url('../img/futuro.jpg') center/cover no-repeat;
    }
    .intro-card-main::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(160deg, rgba(227,89,44,0.15) 0%, rgba(30,44,79,0.9) 60%);
    }
    .card-pattern {
      background: linear-gradient(
        180deg,
        rgba(30, 44, 79, 0.15) 0%,
        rgba(30, 44, 79, 0.5) 50%,
        rgba(30, 44, 79, 0.92) 100%
      );
    }
    .card-content-inner {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 36px;
    }
    .card-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--coral);
      color: white; padding: 8px 16px;
      border-radius: 100px;
      font-size: 0.75rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      margin-bottom: 1rem;
    }
    .card-badge::before {
      content: ''; width: 6px; height: 6px;
      background: rgba(255,255,255,0.7);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    .gallery-preview-btn{
        margin-top:26px;
        display:flex;
        align-items:center;
        gap:18px;

        width:100%;
        padding:18px 20px;

        text-decoration:none;
        color:white;

        background:rgba(255,255,255,.08);
        border:1px solid rgba(255,255,255,.14);
        border-radius:18px;

        backdrop-filter:blur(14px);

        transition:.35s ease;
        position:relative;
        overflow:hidden;
    }

    .gallery-preview-btn::before{
        content:"";
        position:absolute;
        inset:0;
        background:linear-gradient(
            120deg,
            transparent 0%,
            rgba(255,255,255,.08) 50%,
            transparent 100%
        );
        transform:translateX(-120%);
        transition:1s;
    }

    .gallery-preview-btn:hover::before{
        transform:translateX(120%);
    }

    .gallery-preview-btn:hover{
        transform:translateY(-4px);
        border-color:rgba(229,90,42,.55);
        background:rgba(255,255,255,.12);
        box-shadow:
            0 18px 45px rgba(0,0,0,.25),
            0 0 0 1px rgba(229,90,42,.12);
    }

    .gallery-btn-icon{
        width:58px;
        height:58px;
        border-radius:16px;

        flex-shrink:0;

        display:flex;
        align-items:center;
        justify-content:center;

        background:linear-gradient(
            135deg,
            rgba(229,90,42,.22),
            rgba(229,90,42,.08)
        );

        border:1px solid rgba(229,90,42,.28);

        color:var(--coral);

        transition:.35s;
    }

    .gallery-preview-btn:hover .gallery-btn-icon{
        transform:rotate(-5deg) scale(1.05);
        background:linear-gradient(
            135deg,
            rgba(229,90,42,.35),
            rgba(229,90,42,.15)
        );
    }

    .gallery-btn-content{
        flex:1;
    }

    .gallery-btn-label{
        display:block;

        font-size:.72rem;
        text-transform:uppercase;
        letter-spacing:.16em;

        color:rgba(255,255,255,.58);

        margin-bottom:6px;
    }

    .gallery-btn-title{
        display:block;

        font-size:1.03rem;
        font-weight:600;
        line-height:1.35;

        color:white;
    }

    .gallery-btn-arrow{
        width:42px;
        height:42px;

        border-radius:50%;

        display:flex;
        align-items:center;
        justify-content:center;

        background:rgba(255,255,255,.08);

        transition:.35s;
    }

    .gallery-preview-btn:hover .gallery-btn-arrow{
        transform:translateX(6px);
        background:var(--coral);
        color:white;
    }

    @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
    .card-title-inner {
      font-family: var(--font-display);
      font-size: 1.8rem; font-weight: 300; color: white;
      line-height: 1.2;
    }
    .card-title-inner em { font-style: italic; color: var(--coral-light); }

    .float-card {
      position: absolute; top: 36px; right: -28px;
      background: white;
      border-radius: 14px;
      padding: 20px 24px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.15);
      min-width: 180px;
      animation: floatY 5s ease-in-out infinite;
    }
    @keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
    .float-number {
      font-family: var(--font-display);
      font-size: 2.4rem; font-weight: 600;
      color: var(--navy); line-height: 1;
    }
    .float-label {
      font-size: 0.75rem; color: var(--gray);
      text-transform: uppercase; letter-spacing: 0.1em;
      margin-top: 4px;
    }
    .float-bar {
      height: 3px; background: var(--gray-light);
      border-radius: 2px; margin-top: 12px; overflow: hidden;
    }
    .float-bar-fill {
      height: 100%; background: var(--coral);
      border-radius: 2px; width: 87%;
    }

    /* ── AJUSTES RESPONSIVOS PARA LA SECCIÓN INTRO ── */
    @media (max-width: 991px) {
      .section-intro {
        padding: 60px 5%;
      }

      .intro-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 40px;
      }
    }

    @media (max-width: 576px) {
      /* Contenedor principal de la tarjeta en móviles */
      .intro-card-main {
        aspect-ratio: auto; /* Permite que el alto se adapte al contenido */
        min-height: 480px;
      }

      .card-content-inner {
        padding: 24px 18px; /* Reducimos el padding para dar espacio al badge */
      }

      .card-title-inner {
        font-size: 1.35rem; /* Ajuste del título para que no ocupe tanto alto */
        line-height: 1.3;
      }

      /* RECOLOCACIÓN DE LA TARJETA FLOTANTE EN MÓVILES */
      .float-card {
        position: relative; /* Deja de flotar sobre el contenido en móviles */
        top: 0;
        right: 0;
        margin: 16px auto 0 auto; /* Se posiciona debajo de la imagen limpia */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }

      /* PREVENIR DEFORMACIÓN DE LA FLECHA EN EL BOTÓN */
      .gallery-btn-arrow {
        width: 42px;
        height: 42px;
        flex-shrink: 0; /* Evita que el flexbox aplaste el círculo */
      }

      .gallery-preview-btn {
        padding: 14px 16px;
        gap: 12px;
      }

      .gallery-btn-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
      }

      .gallery-btn-title {
        font-size: 0.92rem;
      }
    }

    /* ── GALERÍA RESPONSIVA EN MÓVILES ── */
    @media (max-width: 768px) {
      .gallery-container {
        width: 100%;
        padding: 0 10px;
        position: relative;
      }

      /* Flechas flotantes sobre la imagen en lugar de a los lados */
      .gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
      }

      .gallery-nav.prev {
        left: 15px;
      }

      .gallery-nav.next {
        right: 15px;
      }

      /* Miniaturas centradas y scrolleables */
      .gallery-thumbs {
          display: flex;
          justify-content: flex-start;
          align-items: center;
          gap: 10px;
          
          width: 100%;
          max-width: 100%;
          
          overflow-x: auto;
          overflow-y: hidden;
          -webkit-overflow-scrolling: touch;
          
          padding: 12px 16px;
          box-sizing: border-box;
          
          mask-image: none;
          -webkit-mask-image: none;
        }

        .gallery-thumbs img,
          .gallery-thumb {
            width: 60px;
            height: 60px;
            flex-shrink: 0;
            border-radius: 8px;
            object-fit: cover;
          }

      .gallery-close {
        top: 15px;
        right: 15px;
        z-index: 20;
      }
    }

    /* ── SERVICIOS ── */
    .section-services {
      padding: 100px 8%;
      background: white;
    }
    .section-header {
      text-align: center;
      max-width: 620px;
      margin: 0 auto 70px;
    }
    .section-header p {
      color: #6a7080;
      line-height: 1.7;
      margin-top: 1rem;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    .service-card {
      background: var(--cream);
      border-radius: 16px;
      padding: 36px 32px;
      position: relative;
      overflow: hidden;
      border: 1px solid transparent;
      transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
      cursor: default;
    }
    .service-card::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--coral), var(--coral-light));
      transform: scaleX(0); transform-origin: left;
      transition: transform 0.45s var(--transition);
    }
    .service-card:hover {
      border-color: rgba(227,89,44,0.12);
      box-shadow: 0 20px 60px rgba(30,44,79,0.1);
      transform: translateY(-4px);
    }
    .service-card:hover::before { transform: scaleX(1); }

    .service-icon {
      width: 56px; height: 56px;
      background: rgba(227,89,44,0.1);
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 1.5rem;
      transition: background 0.3s;
    }
    .service-card:hover .service-icon { background: rgba(227,89,44,0.18); }
    .service-icon svg { width: 26px; height: 26px; color: var(--coral); }

    .service-name {
      font-family: var(--font-display);
      font-size: 1.35rem; font-weight: 600;
      color: var(--navy); margin-bottom: 0.75rem;
    }
    .service-desc {
      font-size: 0.9rem; line-height: 1.65; color: #6a7080;
    }
    .service-link {
      display: inline-flex; align-items: center; gap: 6px;
      margin-top: 1.2rem;
      font-size: 0.8rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--coral); text-decoration: none;
      transition: gap 0.3s;
    }
    .service-link:hover { gap: 10px; }

    .lab-item{
        display:flex;
        align-items:center;
        gap:10px;
        padding:14px;
        border-radius:10px;
        background:white;
        font-size:.9rem;
        color:var(--navy);
        font-weight:500;
    }

    .lab-item::before{
        content:"";
        width:8px;
        height:8px;
        border-radius:50%;
        background:var(--coral);
        flex-shrink:0;
    }

    @media(max-width:640px){

        .lab-item{
            font-size:.85rem;
        }

        #modalLaboratorioOverlay .modal div[style*="grid-template-columns"]{
            grid-template-columns:1fr !important;
        }

    }

    /* ── SECCION OBRAS SOCIALES ── */
    .section-obras-sociales {
      padding: 90px 8%;
      background: var(--cream);
    }

    .obras-container {
      max-width: 1250px;
      margin: 0 auto;
      position: relative;
    }

    .obras-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      margin: 0 auto;
      max-width: 800px;
    }

    .obra-item {
      background: white;
      border-radius: 14px;
      border: 1px solid var(--border);
      padding: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 90px;
      width: 180px;
      transition: box-shadow 0.3s, transform 0.3s;
      opacity: 0;
      animation: fadeInItem 0.4s ease forwards;
    }

    .obra-item:nth-child(1) { animation-delay: 0.05s; }
    .obra-item:nth-child(2) { animation-delay: 0.10s; }
    .obra-item:nth-child(3) { animation-delay: 0.15s; }
    .obra-item:nth-child(4) { animation-delay: 0.20s; }

    @keyframes fadeInItem {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .obra-item:hover {
      box-shadow: 0 12px 32px rgba(30,44,79,0.08);
      transform: translateY(-3px);
    }

    .obra-item img {
      max-width: 100%;
      max-height: 50px;
      object-fit: contain;
      filter: grayscale(100%);
      opacity: 0.7;
      transition: filter 0.3s, opacity 0.3s;
    }

    .obra-item:hover img {
      filter: grayscale(0%);
      opacity: 1;
    }

    .obra-item.text-only {
      font-family: var(--font-body);
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--navy);
      text-align: center;
    }

    /* ── BOTÓN VER MÁS ── */
    .obras-actions {
      display: flex;
      justify-content: center;
      margin-top: 40px;
    }

    .btn-ver-mas {
      background: var(--navy);
      color: white;
      border: none;
      padding: 16px 48px;
      border-radius: 8px;
      font-family: var(--font-body);
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      transition: all 0.3s ease;
      box-shadow: 0 4px 16px rgba(30,44,79,0.15);
      text-transform: uppercase;
      position: relative;
      overflow: hidden;
    }

    .btn-ver-mas::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    }

    .btn-ver-mas:hover::after {
      width: 300px;
      height: 300px;
      top: -100px;
      left: -100px;
    }

    .btn-ver-mas:hover {
      background: #1a2a4a;
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(30,44,79,0.3);
    }

    .btn-ver-mas:active {
      transform: scale(0.97);
      box-shadow: 0 2px 8px rgba(30,44,79,0.15);
    }

    .btn-ver-mas .btn-icon {
      display: inline-block;
      transition: transform 0.4s ease;
    }

    /* ── RESPONSIVE ── */

    /* Tablet: 4 items (2 filas de 2) */
    @media (max-width: 1024px) {
      .obras-grid {
        max-width: 500px;
      }
    }

    /* Mobile: 4 items (2 filas de 2) */
    @media (max-width: 768px) {
      .obras-grid {
        max-width: 420px;
        gap: 15px;
      }
      
      .obra-item {
        width: 160px;
        min-height: 80px;
        padding: 15px;
      }
      
      .btn-ver-mas {
        padding: 14px 32px;
        font-size: 0.85rem;
      }
    }

    /* Mobile pequeño: 4 items (2 filas de 2) */
    @media (max-width: 480px) {
      .obra-item {
        width: 130px;
        min-height: 70px;
        padding: 12px;
      }
      
      .obras-grid {
        max-width: 320px;
        gap: 10px;
      }
      
      .btn-ver-mas {
        padding: 12px 24px;
        font-size: 0.8rem;
      }
    }

    /* ── ESTILOS PARA MODAL DE OBRAS SOCIALES ── */
    .modal-obras .modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 36px;
      height: 36px;
      background: var(--gray-light);
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s;
    }

    .modal-obras .modal-close:hover {
      background: #e0deda;
    }

    .modal-obras .modal-close svg {
      width: 16px;
      height: 16px;
      color: var(--navy);
    }

    /* ── ESTILOS PARA ITEMS DEL MODAL ── */
    .obra-modal-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 18px;
      background: white;
      border-radius: 10px;
      margin-bottom: 6px;
      border: 1px solid #f0f2f5;
      transition: background 0.2s, border-color 0.2s, transform 0.2s;
      cursor: default;
    }

    .obra-modal-item:hover {
      background: #f8fafc;
      border-color: rgba(227, 89, 44, 0.15);
      transform: translateX(4px);
    }

    .obra-modal-number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      height: 32px;
      background: #f0f2f5;
      border-radius: 8px;
      font-size: 0.75rem;
      font-weight: 700;
      color: #8a8f9e;
      flex-shrink: 0;
      transition: background 0.2s, color 0.2s;
    }

    .obra-modal-item:hover .obra-modal-number {
      background: rgba(227, 89, 44, 0.1);
      color: var(--coral);
    }

    .obra-modal-name {
      font-size: 0.92rem;
      color: var(--navy);
      font-weight: 500;
      line-height: 1.4;
    }

    /* Scroll personalizado para la lista del modal */
    #listaObrasSociales::-webkit-scrollbar {
      width: 6px;
    }

    #listaObrasSociales::-webkit-scrollbar-track {
      background: transparent;
    }

    #listaObrasSociales::-webkit-scrollbar-thumb {
      background: #d6dce8;
      border-radius: 8px;
    }

    #listaObrasSociales::-webkit-scrollbar-thumb:hover {
      background: #bfc8d8;
    }

    /* Responsive para el modal de obras */
    @media (max-width: 640px) {
      .modal-obras {
        padding: 32px 20px !important;
        width: 95% !important;
      }
      
      .modal-obras .modal-title {
        font-size: 1.4rem !important;
      }
      
      #listaObrasSociales {
        max-height: 320px !important;
      }
      
      .obra-modal-item {
        padding: 10px 14px !important;
      }
      
      .obra-modal-number {
        min-width: 28px;
        height: 28px;
        font-size: 0.7rem;
      }
      
      .obra-modal-name {
        font-size: 0.85rem !important;
      }
    }

    /* ── TURNO BANNER ── */
    .section-turno {
      padding: 100px 8%;
      background: var(--navy);
      position: relative;
      overflow: hidden;
    }

    .turno-parallax-img {
      position: absolute;
      top: -30%;
      left: 0; right: 0;
      height: 160%;
      background: url('../img/fond_turnos_lavalle.png') center/cover no-repeat;
      will-change: transform;
      z-index: 0;
    }

    .turno-parallax-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        105deg,
        rgba(30, 44, 79, 0.92) 0%,
        rgba(30, 44, 79, 0.80) 50%,
        rgba(227, 89, 44, 0.55) 100%
      );
      z-index: 1;
    }

    /* todos los hijos directos deben estar por encima del overlay */
    .turno-bg-deco,
    .turno-inner {
      position: relative;
      z-index: 2;
    }

    .turno-bg-deco {
      position: absolute; inset: 0; pointer-events: none;
    }
    .turno-bg-deco::before {
      content: '';
      position: absolute; top: -200px; right: -200px;
      width: 600px; height: 600px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(227,89,44,0.15) 0%, transparent 70%);
    }
    .turno-bg-deco::after {
      content: '';
      position: absolute; bottom: -150px; left: -100px;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    }

    .turno-inner {
      display: grid; grid-template-columns: 1fr auto;
      gap: 60px; align-items: center;
      position: relative; z-index: 1;
    }
    .turno-content .tag-line { color: var(--coral-light); }
    .turno-content .tag-line::before { background: var(--coral-light); }
    .turno-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 300; color: white; line-height: 1.15;
      margin-bottom: 1rem;
    }
    .turno-title em { font-style: italic; color: var(--coral-light); }
    .turno-desc {
      font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.7;
      max-width: 480px;
    }

    .turno-cta {
      display: flex; flex-direction: column; align-items: center; gap: 16px;
    }
    .btn-cta-large {
      display: inline-flex; align-items: center; gap: 14px;
      background: var(--coral);
      color: white;
      padding: 20px 44px;
      border-radius: 8px;
      font-family: var(--font-body);
      font-size: 1rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      text-decoration: none; border: none; cursor: pointer;
      white-space: nowrap;
      transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
      box-shadow: 0 8px 32px rgba(227,89,44,0.4);
    }
    .btn-cta-large:hover {
      background: var(--coral-dark);
      transform: translateY(-3px);
      box-shadow: 0 16px 48px rgba(227,89,44,0.55);
    }
    .btn-cta-large svg { transition: transform 0.3s; }
    .btn-cta-large:hover svg { transform: translateX(4px); }
    .cta-note {
      font-size: 0.76rem; color: rgba(255,255,255,0.4);
      letter-spacing: 0.06em;
    }

    /* turno form modal */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 200;
      background: rgba(10,15,30,0.8);
      backdrop-filter: blur(8px);
      display: flex; align-items: center; justify-content: center;
      padding: 20px;
      opacity: 0; pointer-events: none;
      transition: opacity 0.4s var(--transition);
    }
    .modal-overlay.open { opacity: 1; pointer-events: all; }

    .modal {
      background: white;
      border-radius: 20px;

      width: min(92vw, 760px);
      max-height: 90vh;
      overflow-y: auto;

      padding: 48px 44px;
      position: relative;

      transform: translateY(30px) scale(0.97);
      transition: transform 0.45s var(--transition);

      box-shadow: 0 40px 100px rgba(0,0,0,.30);
    }

    .modal-overlay.open .modal {
      transform: translateY(0) scale(1);
    }

    .modal-close {
      position: absolute; top: 20px; right: 20px;
      width: 36px; height: 36px;
      background: var(--gray-light); border: none; border-radius: 50%;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.3s;
    }
    .modal-close:hover { background: #e0deda; }
    .modal-close svg { width: 16px; height: 16px; color: var(--navy); }

    .modal-tag { color: var(--coral); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
    .modal-title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--navy); margin-bottom: 1.8rem; }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--navy); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
    .form-group input, .form-group select {
      width: 100%; padding: 12px 16px;
      border: 1.5px solid #e0deda;
      border-radius: 8px;
      font-family: var(--font-body); font-size: 0.9rem;
      color: var(--navy); background: white;
      transition: border-color 0.3s, box-shadow 0.3s;
      outline: none; -webkit-appearance: none;
    }
    .form-group input:focus, .form-group select:focus {
      border-color: var(--coral);
      box-shadow: 0 0 0 3px rgba(227,89,44,0.12);
    }
    .btn-submit {
      width: 100%; padding: 16px;
      background: var(--coral); color: white; border: none;
      border-radius: 8px; font-family: var(--font-body);
      font-size: 0.9rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      cursor: pointer; margin-top: 8px;
      transition: background 0.3s, box-shadow 0.3s;
    }
    .btn-submit:hover {
      background: var(--coral-dark);
      box-shadow: 0 8px 24px rgba(227,89,44,0.35);
    }
    .modal-success {
      text-align: center; padding: 20px 0;
      display: none;
    }
    .success-icon {
      width: 64px; height: 64px;
      background: rgba(227,89,44,0.1);
      border-radius: 50%;
      margin: 0 auto 1.5rem;
      display: flex; align-items: center; justify-content: center;
    }
    .modal-success h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin-bottom: 0.5rem; }
    .modal-success p { color: var(--gray); line-height: 1.6; }

    .modal-actions{
        display:flex;
        gap:18px;
        margin-top:20px;
    }

    .modal-card{
        flex:1;
    }

    /* Scroll elegante */

    .modal::-webkit-scrollbar{
        width:8px;
    }

    .modal::-webkit-scrollbar-track{
        background:transparent;
    }

    .modal::-webkit-scrollbar-thumb{
        background:#d6dce8;
        border-radius:10px;
    }

    .modal::-webkit-scrollbar-thumb:hover{
        background:#bfc8d8;
    }


    /* Responsive */

    @media (max-width: 768px){

        .modal{
            width:95%;
            padding:32px 24px;
            border-radius:18px;
        }

        .modal-actions{
            flex-direction:column;
        }

    }

    /* ── GUIA DE INTERNACION ── */
    .section-internacion {
      padding: 90px 8%;
      background: white;
    }

    .accordion {
      max-width: 800px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .accordion-item {
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
    }

    .accordion-header {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      background: var(--cream);
      border: none;
      cursor: pointer;
      font-family: var(--font-body);
      font-size: 1rem;
      font-weight: 600;
      color: var(--navy);
      text-align: left;
      transition: background 0.3s;
    }

    .accordion-header:hover {
      background: #f0ede8;
    }

    .accordion-icon {
      flex-shrink: 0;
      transition: transform 0.3s ease;
      color: var(--coral);
    }

    .accordion-item.open .accordion-icon {
      transform: rotate(180deg);
    }

    .accordion-body {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, padding 0.35s ease;
      padding: 0 24px;
      color: #5a6070;
      font-size: 0.92rem;
      line-height: 1.7;
    }

    .accordion-item.open .accordion-body {
      max-height: 1000px;
      padding: 20px 24px 24px;
    }

    .accordion-body ol {
      padding-left: 20px;
    }

    .accordion-body p {
      margin-bottom: 10px;
    }
    .accordion-body p:last-child {
      margin-bottom: 0;
    }

    /* ── PROFESIONALES ── */
    .section-team {
      padding: 100px 8%;
      background: var(--cream);
    }
    .team-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      margin-top: 60px;
    }
    .team-card {
      background: white; border-radius: 16px;
      overflow: hidden;
      transition: box-shadow 0.4s, transform 0.4s;
    }
    .team-card:hover {
      box-shadow: 0 24px 60px rgba(30,44,79,0.12);
      transform: translateY(-6px);
    }
    .team-photo {
      height: 200px;
      overflow: hidden;
      position: relative;
    }

    .team-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      transition: transform 0.5s ease;
    }

    .team-card:hover .team-photo img {
      transform: scale(1.05);
    }
    .team-avatar {
      width: 80px; height: 80px;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
      display: flex; align-items: center; justify-content: center;
    }
    .team-avatar svg { width: 42px; height: 42px; color: rgba(255,255,255,0.7); }
    .team-info { 
      padding: 18px 14px; 
    }
    .team-specialty {
      font-size: 0.7rem; font-weight: 600;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--coral); margin-bottom: 6px;
    }
    .team-name {
      font-family: var(--font-display);
      font-size: 1.05rem; /* Ajuste sutil de tamaño para encajar perfecto */
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 4px;
    }
    .team-title { font-size: 0.82rem; color: var(--gray); }

    .btn-team {
      display: inline-block;
      background: #0056a7;
      color: #fff;
      padding: 12px 32px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 1rem;
      text-decoration: none;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 86, 167, 0.3);
    }

    .btn-team:hover {
      background: #003d7a;
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 86, 167, 0.4);
    }

    /* ── FOOTER ── */
    footer {
      background: var(--navy-dark);
      padding: 70px 8% 30px;
    }
    .footer-grid {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
      gap: 60px; margin-bottom: 50px;
    }

    .logo-footer {
      display: flex; align-items: center; gap: 12px;
      text-decoration: none;
    }
    .logo-footer-icon {
      width: 42px; height: 42px;
      background: var(--coral);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      flex-shrink: 0;
    }

    .logo-footer-icon::before, 
    .logo-footer-icon::after {
      content: '';
      position: absolute;
      background: white;
      border-radius: 2px;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .logo-footer-icon::before { 
      width: 20px; 
      height: 3px; 
    }

    .logo-footer-icon::after { 
      width: 3px; 
      height: 20px; 
    }

    .logo-footer-text {
      display: flex; flex-direction: column;
    }

    .logo-footer-name {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 600;
      color: white;
      line-height: 1;
      letter-spacing: 0.03em;
    }

    .logo-footer-sub {
      font-size: 0.65rem;
      color: var(--coral-light);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-weight: 500;
    }

    .footer-brand .logo-footer-name { font-size: 1.6rem; color: var(--coral); }

    .footer-desc {
      font-size: 0.88rem; color: rgba(255,255,255,0.45);
      line-height: 1.7; margin: 1.2rem 0 1.5rem;
    }
    .footer-social { display: flex; gap: 10px; }
    .social-btn {
      width: 38px; height: 38px;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.5);
      cursor: pointer; transition: all 0.3s;
    }
    .social-btn:hover {
      background: var(--coral); border-color: var(--coral); color: white;
    }
    a.social-btn {
      text-decoration: none;
      color: rgba(255,255,255,0.5);
    }
    .footer-col h4 {
      font-size: 0.72rem; font-weight: 600;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: rgba(255,255,255,0.4); margin-bottom: 1.2rem;
    }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .footer-col ul li a {
      font-size: 0.88rem; color: rgba(255,255,255,0.55);
      text-decoration: none; transition: color 0.3s;
    }
    .footer-col ul li a:hover { color: white; }
    .contact-item {
      display: flex; align-items: flex-start; gap: 10px;
      margin-bottom: 12px;
    }
    .contact-item svg { color: var(--coral); flex-shrink: 0; margin-top: 2px; }
    .contact-item span { font-size: 0.86rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.08);
      padding-top: 24px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
    .footer-copy a[href*="wayra.dev"] {
      color: white;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    /* Hover effect */
    .footer-copy a[href*="wayra.dev"]:hover {
      color: var(--coral, #e3592c);
      text-decoration: none;
      border-bottom: 1px solid var(--coral, #e3592c);
      padding-bottom: 2px;
    }
    .footer-legal { display: flex; gap: 24px; }
    .footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.3s; }
    .footer-legal a:hover { color: rgba(255,255,255,0.6); }

    /* -- WHATSAPP -- */
    .whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 500;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.3s var(--transition), box-shadow 0.3s;
  }

  .whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.6);
  }

  /* anillo pulsante */
  .whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: wpPulse 2.5s ease-out infinite;
    z-index: -1;
  }
  @keyframes wpPulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.5); opacity: 0;   }
    100% { transform: scale(1.5); opacity: 0;   }
  }

  /* tooltip */
  .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--navy);
    color: white;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s, transform 0.3s;
  }

  /* flechita del tooltip */
  .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: var(--navy);
  }

  .whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
  }

  @media (max-width: 640px) {
    .whatsapp-float {
      bottom: 20px;
      right: 20px;
      width: 52px;
      height: 52px;
    }
  }

    /* ── ANIMATIONS ── */
    .reveal {
      opacity: 0; transform: translateY(28px);
      transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }

    /* ── RESPONSIVE ── */
    @media (max-width: 1100px) {
      .services-grid { grid-template-columns: repeat(2, 1fr); }
      .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    }
    @media (max-width: 900px) {
      nav, .btn-turno-header { display: none; }
      .hamburger { display: flex; }
      .mobile-menu { display: flex; }
      .intro-grid { grid-template-columns: 1fr; gap: 50px; }
      .float-card { right: -10px; }
      .turno-inner { grid-template-columns: 1fr; gap: 40px; }
      .hero-stats { grid-template-columns: repeat(2, 1fr); }
      .stat-item:nth-child(2) { border-right: none; }
      
      #ubicacion {
        padding: 70px 5% !important;
      }

      #ubicacion > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        align-items: start !important; /* ← CAMBIA esto, en lugar de 'center' */
      }

      /* el mapa debajo del texto y ancho completo */
      #ubicacion > div > div:last-child {
        height: 380px;
        width: 100% !important; /* ← asegura ancho completo */
        border-radius: 16px;
      }
    }
    @media (max-width: 640px) {
      .hero-stats { display: none; }
      .services-grid { grid-template-columns: 1fr; }
      .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 por fila en tablets */
      }
      .footer-grid { grid-template-columns: 1fr; gap: 30px; }
      .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
      .form-row { grid-template-columns: 1fr; }
      .modal { padding: 36px 24px; }
      .slider-arrows { display: none; }

        #ubicacion {
          padding: 70px 5% !important;
        }

        #ubicacion > div {
          gap: 32px !important;
          align-items: start;
        }

        /* cards de info más compactas */
        #ubicacion .reveal[style*="display:flex"] {
          padding: 16px !important;
          gap: 12px !important;
        }

        /* mapa más bajo en móvil para no ocupar toda la pantalla */
        #ubicacion > div > div:last-child {
          height: 300px;
          border-radius: 14px;
          /* sombra más suave en móvil */
          box-shadow: 0 12px 36px rgba(30,44,79,0.14) !important;
          height: 280px; /* altura más proporcionada */
          width: 100%;
          border-radius: 14px;
        }

        /* badge sobre el mapa */
        #ubicacion > div > div:last-child > div {
          padding: 9px 12px !important;
          border-radius: 8px !important;
        }
        #ubicacion > div > div:last-child > div span {
          font-size: 0.75rem !important;
        }

        /* botón ver en google maps ocupa todo el ancho */
        #ubicacion a[href*="maps"] {
          width: 100%;
          justify-content: center;
        }
    }
    @media (max-width: 480px) {
      .team-grid {
        grid-template-columns: 1fr;
      }
      .slide-content { padding: 0 6% 0 6%; }
    }


    /* ── PÁGINA INTERIOR — HERO ── */
/* usado en profesionales y residencia */
.page-hero {
  padding: 160px 8% 80px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content:''; position:absolute; top:-200px; right:-150px;
  width:600px; height:600px; border-radius:50%;
  background: radial-gradient(circle, rgba(227,89,44,0.12) 0%, transparent 70%);
}
.page-hero::after {
  content:''; position:absolute; bottom:-100px; left:10%;
  width:400px; height:400px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}
.page-hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--coral-light); margin-bottom: 1.2rem;
}
.page-hero-eyebrow::before {
  content:''; display:inline-block; width:32px; height:1px; background:var(--coral);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; color: white; line-height: 1.1;
}
.page-hero h1 em { font-style:italic; color:var(--coral-light); }
.page-hero h1 strong { font-weight: 600; }
.page-hero-desc {
  max-width: 500px;
  font-size: 0.95rem; color: rgba(255,255,255,0.55); line-height: 1.7;
}

/* nav active state — compartido */
nav a.active { color: white; }
nav a.active::after { transform: scaleX(1); }

/* ── SECCIÓN GENÉRICA — compartida entre páginas interiores ── */
.section { padding: 100px 8%; }
.section.bg-white { background: white; }
.section.bg-cream { background: var(--cream); }
.section.bg-navy  { background: var(--navy); }

.section-lead { font-size:1rem; color:#5a6070; line-height:1.75; max-width:640px; }
.section-lead.light { color: rgba(255,255,255,0.6); }

.tag-line.light { color: var(--coral-light); }
.tag-line.light::before { background: var(--coral-light); }
.section-title.light { color: white; }
.section-title.light em { color: var(--coral-light); }

/* ── BORDER ── */
:root {
  /* agregar esta variable que usan profesionales y residencia */
  --border: #e8e5e0;
}

/* ── RESPONSIVE COMPARTIDO páginas interiores ── */
@media (max-width: 900px) {
  nav a.active::after { transform: scaleX(1); }
  .page-hero { padding: 140px 6% 60px; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section { padding: 70px 6%; }
}
@media (max-width: 640px) {
  .section { padding: 60px 5%; }
}


/*-- Galeria de fotos - Modal --*/
/*=========================
GALERIA
==========================*/

/* Mejora para móviles - modal a pantalla completa */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 18, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  z-index: 99999;
}

.gallery-modal.open {
  opacity: 1;
  visibility: visible;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* Contenedor principal - ocupa todo el espacio */
.gallery-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 20px 20px;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.gallery-modal.open .gallery-container {
  transform: scale(1);
  opacity: 1;
}

/* Wrapper de imagen - centrado y responsive */
.gallery-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
}

/* Imagen principal - ocupa el espacio disponible */
.gallery-main-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: opacity 0.25s ease;
  animation: galleryKenburns 10s ease-in-out infinite alternate;
}

.gallery-main-image.loading {
  opacity: 0;
}

/* Animaciones */
@keyframes galleryKenburns {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@keyframes gallerySlideRight {
  from { opacity: 0; transform: translateX(30px) scale(1.01); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes gallerySlideLeft {
  from { opacity: 0; transform: translateX(-30px) scale(1.01); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Botón cerrar */
.gallery-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.gallery-close:hover,
.gallery-close:active {
  background: var(--coral);
  transform: rotate(90deg);
  box-shadow: 0 0 0 6px rgba(227, 89, 44, 0.2);
}

/* Navegación - flechas superpuestas en la imagen */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.gallery-nav.prev {
  left: 16px;
}

.gallery-nav.next {
  right: 16px;
}

.gallery-nav:hover,
.gallery-nav:active {
  background: var(--coral);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 0 6px rgba(227, 89, 44, 0.2);
}

/* Contador de imágenes */
.gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50px;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  font-weight: 500;
}

/* Barra de progreso */
.gallery-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.gallery-progress-bar {
  height: 100%;
  background: var(--coral);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Leyenda / caption */
.gallery-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  margin: 0;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50px;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-caption.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MINIATURAS MEJORADAS ── */
.gallery-thumbs {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* CENTRADO EN ESCRITORIO */
  justify-content: center;
  /* EN MÓVIL SE CAMBIA A flex-start */
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

/* Cada miniatura */
.gallery-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  border: 2.5px solid transparent;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.95);
  will-change: transform, opacity;
  display: block;
  background: #1a1a2e;
}

.gallery-thumb:hover {
  opacity: 0.8;
  transform: scale(1);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--coral);
  transform: scale(1);
  box-shadow: 0 4px 16px rgba(227, 89, 44, 0.3);
}

/* ── RESPONSIVE MÓVIL ── */
@media (max-width: 768px) {
  .gallery-container {
    padding: 50px 10px 10px;
  }

  .gallery-image-wrapper {
    border-radius: 10px;
  }

  .gallery-main-image {
    max-height: 60vh;
    border-radius: 10px;
  }

  /* Flechas más pequeñas y sobre la imagen */
  .gallery-nav {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.55);
  }

  .gallery-nav svg {
    width: 17px;
    height: 17px;
  }

  .gallery-nav.prev {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }

  .gallery-close {
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
  }

  .gallery-close svg {
    width: 17px;
    height: 17px;
  }

  .gallery-counter {
    bottom: 12px;
    right: 12px;
    padding: 4px 12px;
    font-size: 0.8rem;
  }

  .gallery-caption {
    left: 12px;
    bottom: 12px;
    font-size: 0.9rem;
    padding: 6px 14px;
    max-width: 65%;
    white-space: nowrap;
  }

  /* ── MINIATURAS EN MÓVIL ── */
  .gallery-thumbs {
    padding: 12px 16px;
    gap: 10px;
    /* EN MÓVIL: alineación a la izquierda para scroll */
    justify-content: flex-start;
  }

  .gallery-thumb {
    width: 64px;
    height: 44px;
    border-radius: 6px;
    border-width: 2px;
    opacity: 0.5;
    transform: scale(0.92);
    flex-shrink: 0;
    min-width: 64px;
    min-height: 44px;
  }

  .gallery-thumb.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--coral);
  }
}

/* Móviles muy pequeños */
@media (max-width: 420px) {
  .gallery-container {
    padding: 40px 6px 6px;
  }

  .gallery-main-image {
    max-height: 52vh;
    border-radius: 8px;
  }

  .gallery-nav {
    width: 34px;
    height: 34px;
  }

  .gallery-nav svg {
    width: 14px;
    height: 14px;
  }

  .gallery-nav.prev {
    left: 6px;
  }

  .gallery-nav.next {
    right: 6px;
  }

  .gallery-close {
    right: 8px;
    top: 8px;
    width: 32px;
    height: 32px;
  }

  .gallery-close svg {
    width: 14px;
    height: 14px;
  }

  .gallery-thumbs {
    padding: 10px 12px;
    gap: 8px;
    justify-content: flex-start;
  }

  .gallery-thumb {
    width: 50px;
    height: 36px;
    border-radius: 5px;
    border-width: 2px;
    opacity: 0.5;
    min-width: 50px;
    min-height: 36px;
  }

  .gallery-thumb.active {
    opacity: 1;
    border-color: var(--coral);
  }

  .gallery-caption {
    font-size: 0.8rem;
    padding: 4px 12px;
    max-width: 60%;
    left: 8px;
    bottom: 8px;
  }

  .gallery-counter {
    font-size: 0.7rem;
    padding: 3px 10px;
    bottom: 8px;
    right: 8px;
  }

  .gallery-progress-track {
    height: 2px;
  }
}

/* Modo landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .gallery-container {
    padding: 30px 10px 10px;
  }

  .gallery-main-image {
    max-height: 50vh;
  }

  .gallery-thumbs {
    padding: 8px 16px;
    gap: 8px;
    justify-content: flex-start;
  }

  .gallery-thumb {
    width: 48px;
    height: 34px;
    min-width: 48px;
    min-height: 34px;
  }
  
  .gallery-close {
    width: 32px;
    height: 32px;
    right: 8px;
    top: 8px;
  }

  .gallery-nav {
    width: 32px;
    height: 32px;
  }

  .gallery-nav.prev {
    left: 6px;
  }

  .gallery-nav.next {
    right: 6px;
  }

  .gallery-caption {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}
