
    /* ─── RESET & BASE ─────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 50px}
    body {
      font-family: 'Inter', sans-serif;
      color: #2a2a2a;
      background: #fff;
      line-height: 1.6;
    }
    img { max-width: 100%; display: block; }
    a { text-decoration: none; color: inherit; }

    /* ─── VARIABLES ────────────────────────────────────── */
    :root {
      --primary:   #6d4dd6;
      --primary-light: #f3f0ff;
      --primary-dark: #5a3fb8;
      --text:      #2f3670;
      --muted:     #666;
      --light:     #f8f8f8;
      --white:     #ffffff;
      --radius:    8px;
      --shadow:    0 2px 12px rgba(109,77,214,.08);
    }

    /* ─── NAVBAR ───────────────────────────────────────── */
    .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 5%;
      height: auto;
      /* background: var(--white); */
      border-bottom: 1px solid #eee;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      background-color: rgba(255, 255, 255, 0.95);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);


    }
    
    .navbar-brand {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-shrink: 0;
    }
    
    .navbar-logo {
      height: 52px;
      width: auto;
    }

    /* ─── NAVBAR MENU ──────────────────────────────────── */
    .navbar-menu {
      display: flex;
      align-items: center;
      gap: 0;
      /* flex: 1; */
      margin-left: auto;
      margin-right: 2rem;
    }

    .navbar-menu a {
      padding: 0.8rem 1.2rem;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text);
      transition: color 0.25s;
      white-space: nowrap;
    }

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

    .navbar-menu a.active {
      color: var(--primary);
      border-bottom: 2px solid var(--primary);
      padding-bottom: 0.6rem;
    }

    /* ─── HAMBURGER MENU ───────────────────────────────── */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 0.35rem;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    .hamburger span {
      width: 24px;
      height: 2.5px;
      background: var(--text);
      border-radius: 2px;
      transition: all 0.3s;
    }

    .hamburger.open span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.open span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }

    /* ─── MOBILE MENU ──────────────────────────────────── */
    .mobile-menu {
      display: none;
      position: fixed;
      top: 80px;
      left: 0;
      right: 0;
      background: var(--white);
      border-bottom: 1px solid #eee;
      flex-direction: column;
      gap: 0;
      z-index: 99;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

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

    .mobile-menu a {
      padding: 1rem 5%;
      font-size: 0.95rem;
      font-weight: 500;
      color: var(--text);
      border-bottom: 1px solid #f0f0f0;
      transition: background 0.2s;
    }

    .mobile-menu a:hover {
      background: var(--primary-light);
      color: var(--primary);
    }

    /* ─── NAVBAR CTA ───────────────────────────────────── */
    .navbar-cta {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      background: var(--primary);
      color: var(--white);
      font-size: .9rem;
      font-weight: 600;
      padding: .6rem 1.4rem;
      border-radius: 50px;
      transition: background .25s;
      border: none;
      cursor: pointer;
      flex-shrink: 0;
    }
    .navbar-cta:hover { background: var(--primary-dark); }

    /* ─── HERO ─────────────────────────────────────────── */
    /* .hero {
      position: relative;
      display: flex;
      align-items: center;
      padding: 120px 5% 80px;
      overflow: hidden;
      margin-top: 0;
      padding-top: 29vh; 
    } */


     /* .hero {
      min-height: 100vh;
      position: relative;
      display: flex;
      align-items: center;
      padding: 120px 5% 80px;
      overflow: hidden;
      margin-top: -80px;
      padding-top: 260px !important;
    }  */

    .hero {
      min-height: 90vh;
      position: relative;
      display: flex;
      align-items: center;
      padding: 194px 5% 120px;
      overflow: hidden;
      /* margin-top: 50px; */
    }
    

    .hero-bg {
      position: absolute;
      inset: 0;
      background: url('../images/hero-bg2.jpg') center/cover no-repeat;
      filter: brightness(.6);
    }
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(109,77,214,.7) 0%, rgba(109,77,214,.7) 100%);
    }
    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 680px;
      /* padding-top: 10vh; */
      /* padding-bottom: 10vh; */
    }




    .hero h1 {
      /* font-size: clamp(4rem, 4vw, 3.2rem); */
      font-size: clamp(3.2rem, 6vw, 4.2rem);



      color: var(--white);
      line-height: 1.2;
      margin-bottom: 1.2rem;
      font-weight: 700;
    }
    .hero p {
      font-size: 1.05rem;
      color: rgba(255,255,255,.9);
      margin-bottom: .8rem;
      max-width: 760px;
    }
    .hero-actions {
      margin-top: 2rem;
      display: flex;
      flex-wrap: wrap;
      gap: .8rem;
    }

    /* ─── BUTTONS ──────────────────────────────────────── */
    /* .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      background: var(--primary);
      color: var(--white);
      font-weight: 600;
      font-size: .95rem;
      padding: .75rem 1.8rem;
      border-radius: 50px;
      transition: background .25s, transform .2s;
      cursor: pointer;
      border: none;
    } */


.btn-primary {
display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  transition: all .3s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(109,77,214,.3);
}


    .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
    .btn-outline {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      background: transparent;
      color: var(--white);
      font-weight: 600;
      font-size: .95rem;
      padding: .75rem 1.8rem;
      border-radius: 50px;
      border: 2px solid rgba(255,255,255,.6);
      transition: border-color .25s, background .25s;
      cursor: pointer;
    }
    .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

    /* ─── MODAL ────────────────────────────────────────── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(42,42,42,.6);
      z-index: 200;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .modal-overlay.open { display: flex; }
    .modal {
      background: var(--white);
      border-radius: var(--radius);
      padding: 2rem;
      max-width: 480px;
      width: 100%;
      position: relative;
      box-shadow: 0 10px 40px rgba(0,0,0,.2);
    }
    .modal h3 {
      font-size: 1.4rem;
      color: var(--text);
      margin-bottom: .5rem;
      font-weight: 700;
    }
    .modal p {
      color: var(--muted);
      font-size: .95rem;
      margin-bottom: 1.4rem;
    }
    .clinic-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
    .clinic-list li a {
      display: flex;
      align-items: center;
      gap: .8rem;
      padding: .9rem 1.1rem;
      border: 1.5px solid #ddd;
      border-radius: 8px;
      color: var(--text);
      font-weight: 600;
      font-size: .9rem;
      transition: border-color .2s, background .2s;
    }
    .clinic-list li a:hover { border-color: var(--primary); background: var(--primary-light); }
    .clinic-list li a .icon {
      width: 28px; height: 28px;
      /* background: var(--primary-light); */
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      color: var(--primary);
      font-size: 1rem;
    }
    .modal-close {
      position: absolute;
      top: 1rem; right: 1.2rem;
      background: none; border: none;
      font-size: 1.4rem;
      color: var(--muted);
      cursor: pointer;
      line-height: 1;
    }
    .modal-close:hover { color: var(--text); }

    /* ─── SECTIONS ─────────────────────────────────────── */
    section { padding: 80px 5%; }
    .section-title {
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      color: var(--text);
      line-height: 1.3;
      margin-bottom: 1rem;
      font-weight: 700;
    }
    .section-body {
      color: var(--muted);
      font-size: 1rem;
      max-width: 620px;
      line-height: 1.7;
    }

    /* ─── PROPUESTA DE VALOR ───────────────────────────── */
    .valor { background: var(--light); }
    .valor-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6rem;
      align-items: center;
      max-width: 1100px;
      margin: 0 auto;
    }
    .valor-img {
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    /* .valor-img img { width: 100%; height: 380px; object-fit: cover; } */
     .valor-img img { 
      width: 100%; 
      /* height: 380px;  */
      object-fit: contain; 
    }
    .valor-highlights {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
      margin-top: 1.6rem;
    }
    .highlight {
      display: flex;
      gap: 1rem;
      align-items: center;
    }
    .highlight-icon {
      width: 60px; height: 60px;
      background: var(--primary-light);
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      color: var(--primary);
      font-size: 1.2rem;
    }
    .highlight p {
      font-size: 1.05rem;
      line-height: 1.4;
      color: var(--text);
      font-weight: 500;
    }

    /* ─── PROBLEMAS FRECUENTES ─────────────────────────── */
    .problemas {
      background: var(--white);
    }
    .problemas-inner {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3.5rem;
      align-items: center;
    }
    .symptoms-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: .8rem;
      margin-top: 1.2rem;
    }
    .symptoms-list li {
      display: flex;
      align-items: center;
      gap: .9rem;
      padding: .8rem 1rem;
      background: var(--light);
      border-radius: 6px;
      font-size: 1.05rem;
      color: var(--text);
      font-weight: 500;
    }
    .symptoms-list li .icon {
     width: 62px;
      height: 62px;
      /* background: var(--primary-light); */
      background: white;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--primary);
      font-size: 1.8rem;
      padding: 12px;
    }

    /* ─── ÁREAS DE ATENCIÓN ────────────────────────────── */
    .areas { background: var(--light); }
    .areas-inner { max-width: 1100px; margin: 0 auto; }
    .areas-header { margin-bottom: 2.5rem; }
    .areas-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.4rem;
    }
    .area-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 1.8rem;
      border-top: 3px solid var(--primary);
      transition: transform .25s, box-shadow .25s;
    }
    .area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
    .area-icon {
      width: 88px; height: 88px;
      background: var(--primary-light);
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      color: var(--primary);
      font-size: 1.2rem;
      margin-bottom: 1rem;
      padding: 14px;
    }
    .area-card h3 {
      font-size: 1.05rem;
      color: var(--text);
      margin-bottom: .6rem;
      font-weight: 700;
    }
    .area-card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

    /* ─── CIRUGÍAS ─────────────────────────────────────── */
    .cirugia {
      background: var(--primary);
      color: var(--white);
      text-align: center;
    }
    .cirugia-inner {
      max-width: 800px;
      margin: 0 auto;
    }
    .cirugia .section-title { color: var(--white); }
    .cirugia p {
      color: rgba(255,255,255,.9);
      font-size: 1rem;
      max-width: 640px;
      margin: 0 auto 1.2rem;
    }

    /* ─── ENFOQUE MÉDICO ───────────────────────────────── */
    .enfoque { background: var(--white); }
    .enfoque-inner {
      max-width: 1100px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3.5rem;
      align-items: center;
    }
    .enfoque-quote {
      background: var(--primary-light);
      border-radius: var(--radius);
      padding: 2rem;
      border-left: 4px solid var(--primary);
    }
    .enfoque-quote blockquote {
      font-size: 1.1rem;
      color: var(--text);
      line-height: 1.6;
      font-style: italic;
    }
    .enfoque-quote .source {
      margin-top: 1rem;
      font-size: .85rem;
      color: var(--muted);
      font-style: normal;
    }

    /* ─── EQUIPO MÉDICO ────────────────────────────────── */
    .equipo { background: var(--light); }
    .equipo-inner { max-width: 1100px; margin: 0 auto; }
    .equipo-header { margin-bottom: 2.5rem; text-align: center;}
    .equipo-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2.8rem;
    }
    .doctor-card {
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 1px 8px rgba(0,0,0,.06);
      transition: transform .25s, box-shadow .25s;
    }
    .doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

    .doctor-avatar {
      width: 100%;
      height: 360px;
      background: linear-gradient(135deg, var(--primary-light) 0%, #e8dff8 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3.5rem;
      color: var(--primary);
    }

    .card-img-top {
        width: 100%;       /* Make image take the full width of the card */
        height: 360px;     /* Set a fixed height for all card images */
        object-fit: cover; /* Resizes the image to cover the entire container while maintaining aspect ratio, cropping parts if necessary */
      }

    .doctor-info { padding: 1.4rem; }
    .doctor-info .role {
      font-size: .75rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--primary);
      margin-bottom: .3rem;
    }
    .doctor-info h3 {
      font-size: 1rem;
      color: var(--text);
      margin-bottom: .4rem;
      font-weight: 700;
    }
    .doctor-info .degree {
      font-size: .8rem;
      color: var(--muted);
      margin-bottom: .6rem;
      line-height: 1.5;
    }
    .doctor-info .spec-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: .25rem;
    }
    .doctor-info .spec-list li {
      font-size: .8rem;
      color: var(--text);
      display: flex;
      align-items: flex-start;
      gap: .4rem;
    }
    .doctor-info .spec-list li::before {
      content: '▸';
      color: var(--primary);
      flex-shrink: 0;
    }
    .doctor-info .bio {
      font-size: .82rem;
      color: var(--muted);
      margin-top: .6rem;
      line-height: 1.5;
    }

    /* ─── SOBRE EL EQUIPO ──────────────────────────────── */
    .sobre {
      background: var(--primary);
      color: var(--white);
      text-align: center;
    }
    .sobre .section-title { color: var(--white); }
    .sobre p {
      color: rgba(255,255,255,.9);
      font-size: 1rem;
      max-width: 680px;
      margin: 0 auto 1rem;
    }

    /* ─── UBICACIONES ──────────────────────────────────── */
    .ubicaciones { background: var(--white); }
    .ubicaciones-inner { max-width: 1100px; margin: 0 auto; }
    .ubicaciones-header { margin-bottom: 2.5rem; text-align: center;}
    .ubicaciones-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.4rem;
    }
    .ubicacion-card {
      background: var(--light);
      border-radius: var(--radius);
      padding: 1.8rem;
      text-align: center;
      transition: transform .25s, box-shadow .25s;
    }
    .ubicacion-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
    .ubicacion-icon {
      width: 32px; height: 32px;
      /* background: var(--primary-light); */
      border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      color: var(--primary);
      font-size: 1.2rem;
      margin: 0 auto 1rem;
    }
    .ubicacion-card h3 {
      font-size: 1rem;
      color: var(--text);
      margin-bottom: 1rem;
      font-weight: 700;
    }
    .ubicacion-card .btn-agenda {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: var(--primary);
      color: var(--white);
      font-size: .85rem;
      font-weight: 600;
      padding: .6rem 1.4rem;
      border-radius: 50px;
      transition: background .25s;
      border: none;
      cursor: pointer;
    }
    .ubicacion-card .btn-agenda:hover { background: var(--primary-dark); }

    /* ─── CONTACTO ─────────────────────────────────────── */
    .contacto { background: var(--light); }
    .contacto-inner {
      max-width: 700px;
      margin: 0 auto;
      text-align: center;
    }
    .email-box {
      display: inline-flex;
      align-items: center;
      gap: .8rem;
      background: var(--white);
      border: 2px solid var(--primary);
      border-radius: 50px;
      padding: .9rem 2rem;
      margin: 1.4rem 0;
      font-size: 1rem;
      font-weight: 600;
      color: var(--primary);
      transition: background .25s;
    }
    .email-box:hover { background: var(--primary-light); }

    .img-email {
      display: inline;
      width:32px}

    /* ─── CTA FINAL ────────────────────────────────────── */
    .cta-final {
      background: var(--primary);
      color: var(--white);
      text-align: center;
      padding: 80px 5%;
    }
    .cta-final .section-title { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
    .cta-final p {
      color: rgba(255,255,255,.9);
      font-size: 1rem;
      max-width: 600px;
      margin: 0 auto 1rem;
    }
    .cta-final .hero-actions { justify-content: center; margin-top: 2rem; }

    /* ─── FOOTER ───────────────────────────────────────── */
    footer {
      background: #1a1a1a;
      color: rgba(255,255,255,.6);
      text-align: center;
      padding: 1.8rem 5%;
      font-size: 1rem;
    }
    footer a { color: var(--primary); }

    /* ─── RESPONSIVE ───────────────────────────────────── */
    @media (max-width: 1024px) {
      .navbar-menu {
        margin-left: 2rem;
      }
      .navbar-menu a {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
      }
    }

    @media (max-width: 768px) {

      .navbar {
        padding: 0.8rem 5%;
        height: 80px;
      }

      .navbar-logo {
        height: 40px;
      }

      .navbar-menu {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .navbar-cta {
        display: none;
      }

      .valor-grid,
      .problemas-inner,
      .enfoque-inner { 
        grid-template-columns: 1fr; 
        gap: 2.5rem; 
      }

      .areas-grid,
      .equipo-grid,
      .ubicaciones-grid { 
        grid-template-columns: 1fr 1fr; 
      }

      .valor-img { order: -1; }

      /* .hero { 
        text-align: center; 
        padding-top: 100px;
        margin-top: 80px;
      } */

      .hero { 
        text-align: center; 
        padding-top: 140px;
        margin-top: 0;
      }


      .hero-content { 
        margin: 0 auto; 
        padding-top: 6vh;
      }

      .hero-actions { justify-content: center; }

      section { padding: 60px 5%; }
    }

    @media (max-width: 600px) {
      .areas-grid,
      .equipo-grid,
      .ubicaciones-grid { 
        grid-template-columns: 1fr; 
      }

      .hero-actions { flex-direction: column; }
      .btn-primary, .btn-outline { width: 100%; justify-content: center; }

      .navbar-logo {
        height: 36px;
      }

      .mobile-menu a {
        padding: 0.9rem 5%;
      }

      .modal {
        padding: 1.5rem;
      }
    }
