/* Emeksa Kinesiología y Salud — hoja de estilos compartida
   Colores institucionales: azul de marca #0000ff, azul marino #1A3154 */

:root{
  --ink:#101a33;
  --ink-soft:#4a5578;
  --brand:#1c2ee6;
  --brand-pure:#0000ff;
  --brand-deep:#0a1747;
  --paper:#ffffff;
  --mist:#eef1fb;
  --mist-deep:#e2e7f9;
  --teal:#0fb88a;
  --teal-ink:#04231a;
  --line:#d7ddf0;
  --line-soft:#e7eaf6;
  --radius:2px;
  --wrap:1180px;
  --focus:#0fb88a;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3{
  font-family:"Sora",system-ui,sans-serif; font-weight:600; margin:0;
  text-wrap:balance; color:var(--ink); letter-spacing:-0.01em;
}
p{margin:0;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{margin:0; padding:0;}
button{font-family:inherit;}
:focus-visible{outline:3px solid var(--focus); outline-offset:2px;}

.wrap{max-width:var(--wrap); margin:0 auto; padding:0 28px;}
.eyebrow{
  font-family:"Figtree",sans-serif; font-weight:700; font-size:12.5px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--brand);
}
section{position:relative;}
.band-mist{background:var(--mist);}
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--brand-deep); color:#fff;
  padding:12px 18px; z-index:1000; border-radius:var(--radius);
}
.skip-link:focus{left:12px; top:12px;}

/* ===== header ===== */
header{
  position:sticky; top:0; z-index:100; background:var(--paper);
  border-bottom:1px solid var(--line-soft);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 28px; gap:24px;}
.logo-mark{display:flex; align-items:center; gap:10px;}
.logo-mark img{height:38px; width:auto;}
nav.main-nav{display:flex; align-items:center; gap:2px;}
nav.main-nav > a, .nav-item > .nav-item-label{
  font-weight:600; font-size:14.5px; color:var(--ink); padding:10px 16px;
  border-radius:var(--radius); position:relative; cursor:pointer; display:inline-block;
  background:none; border:none;
}
nav.main-nav > a[aria-current="page"]{color:var(--brand);}
nav.main-nav > a:hover, .nav-item > .nav-item-label:hover{color:var(--brand);}
.nav-item{position:relative;}
.nav-item.has-drop > .nav-item-label{display:flex; align-items:center; gap:5px;}
.nav-item .chev{width:8px; height:8px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(45deg); margin-top:-3px;}
.dropdown{
  position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%);
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 18px 40px rgba(10,23,71,.14); min-width:250px; padding:8px;
  opacity:0; visibility:hidden; transition:opacity .15s ease;
  list-style:none;
}
.nav-item.has-drop:hover .dropdown,
.nav-item.has-drop:focus-within .dropdown,
.nav-item.open .dropdown{opacity:1; visibility:visible;}
.dropdown a{display:block; padding:10px 14px; font-size:14px; font-weight:500; border-radius:2px;}
.dropdown a:hover{background:var(--mist); color:var(--brand);}
.header-cta{
  display:flex; align-items:center; gap:10px; font-weight:700; font-size:14px;
  background:var(--brand-deep); color:#fff; padding:11px 20px; border-radius:var(--radius);
  white-space:nowrap;
}
.header-cta svg{width:16px; height:16px;}
.burger{
  display:none; width:44px; height:44px; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:var(--radius); background:none; cursor:pointer;
}

/* ===== mobile nav panel ===== */
.mobile-nav{
  display:none; position:fixed; inset:0; z-index:150; background:var(--paper);
  padding:20px 24px; overflow-y:auto;
}
.mobile-nav.open{display:block;}
.mobile-nav-top{display:flex; justify-content:space-between; align-items:center; margin-bottom:24px;}
.mobile-nav-close{width:44px; height:44px; border:1px solid var(--line); border-radius:var(--radius); background:none; cursor:pointer;}
.mobile-nav ul{list-style:none; display:grid; gap:2px;}
.mobile-nav a, .mobile-nav .m-item-label{
  display:flex; justify-content:space-between; align-items:center; padding:16px 4px; font-size:17px; font-weight:600;
  border-bottom:1px solid var(--line-soft); background:none; border-left:none; border-right:none; border-top:none; width:100%; text-align:left; cursor:pointer;
}
.mobile-sub{list-style:none; display:none; padding:0 0 8px 14px;}
.mobile-sub.open{display:grid; gap:2px;}
.mobile-sub a{font-size:15px; font-weight:500; padding:12px 4px; border-bottom:none; color:var(--ink-soft);}
.mobile-nav .btn{margin-top:20px; width:100%; justify-content:center;}

/* ===== hero (home) ===== */
.hero{position:relative; overflow:hidden; min-height:580px; display:flex; align-items:center;}
.hero-slides{position:absolute; inset:0; overflow:hidden;}
.hero-slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition:opacity 1.6s ease-in-out;
}
.hero-slide.active{opacity:.58;}
.hero-slides::after{
  content:""; position:absolute; inset:0;
  background:rgba(10,23,71,.56);
}
.hero-content{position:relative; z-index:2; padding:100px 0 84px;}
.hero-content .eyebrow{color:#8fe0c8; text-shadow:0 2px 10px rgba(0,0,0,.4);}
.hero h1{color:#fff; font-size:clamp(34px,4.6vw,56px); line-height:1.08; margin-top:14px; max-width:15ch; text-shadow:0 2px 16px rgba(0,0,0,.45);}
.hero-sub{color:#e4e8fb; font-size:18px; max-width:46ch; margin-top:20px; line-height:1.65; text-shadow:0 1px 10px rgba(0,0,0,.4);}
.hero-ctas{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap;}
.hero-trust{
  display:flex; gap:36px; margin-top:56px; flex-wrap:wrap; padding-top:32px;
  border-top:1px solid rgba(255,255,255,.18);
}
.trust-item{color:#e4e8fb; font-size:14px; font-weight:600; display:flex; align-items:center; gap:10px;}
.trust-item svg{width:19px; height:19px; color:var(--teal); flex:none;}
.hero-dots{position:absolute; bottom:14px; left:0; right:0; z-index:3; display:flex; justify-content:center; gap:2px;}
.hero-dots button{
  width:34px; height:44px; background:none; border:none; padding:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.hero-dots button::before{content:""; width:26px; height:3px; border-radius:2px; background:rgba(255,255,255,.32); display:block;}
.hero-dots button.active::before{background:var(--teal);}

/* ===== page banner (interior pages) ===== */
.page-banner{background:var(--brand-deep); padding:56px 0 46px;}
.page-banner .eyebrow{color:#8fe0c8;}
.page-banner h1{color:#fff; font-size:clamp(28px,3.6vw,40px); margin-top:10px;}
.breadcrumb{margin-top:14px; font-size:13.5px; color:#aab5ea; display:flex; gap:8px; align-items:center;}
.breadcrumb a{color:#c9d1f5;}
.breadcrumb a:hover{color:#fff;}

/* ===== buttons ===== */
.btn{
  display:inline-flex; align-items:center; gap:9px; font-weight:700; font-size:14.5px;
  padding:15px 26px; border-radius:var(--radius); border:1.5px solid transparent; cursor:pointer;
}
.btn svg{width:17px; height:17px; flex:none;}
.btn-teal{background:var(--teal); color:var(--teal-ink);}
.btn-teal:hover{background:#0da57b;}
.btn-ghost{border-color:rgba(255,255,255,.5); color:#fff;}
.btn-ghost:hover{background:rgba(255,255,255,.1);}
.btn-outline{border-color:var(--brand); color:var(--brand);}
.btn-outline:hover{background:var(--mist);}

/* ===== sections generic ===== */
.section{padding:88px 0;}
.section.section-sm{padding:64px 0;}
.section-head{max-width:640px; margin-bottom:52px;}
.section-head h2{font-size:clamp(26px,3vw,34px); margin-top:12px;}
.section-head p{color:var(--ink-soft); margin-top:14px; font-size:16.5px; line-height:1.7;}

/* ===== about split ===== */
.about-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; align-items:center;}
.about-photo{border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);}
.about-photo img{width:100%; height:520px; object-fit:cover;}
.about-copy p{color:var(--ink-soft); font-size:16.5px; line-height:1.75; margin-top:16px;}
.about-list{list-style:none; margin:28px 0 0; padding:0; display:grid; gap:14px;}
.about-list li{display:flex; gap:12px; font-size:15px; font-weight:600; color:var(--ink);}
.about-list li svg{width:19px; height:19px; color:var(--teal); flex:none; margin-top:1px;}

/* ===== services ===== */
.svc-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.svc-card{
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--paper);
  transition:border-color .15s ease, transform .15s ease;
}
.svc-card:hover{border-color:var(--brand); transform:translateY(-3px);}
.svc-photo{height:190px; overflow:hidden;}
.svc-photo img{width:100%; height:100%; object-fit:cover;}
.svc-body{padding:22px 22px 26px;}
.svc-body h3{font-size:17.5px;}
.svc-body p{color:var(--ink-soft); font-size:14.5px; margin-top:9px; line-height:1.65;}
.svc-body a.svc-link{display:inline-block; margin-top:14px; font-size:13.5px; font-weight:700; color:var(--brand);}

/* ===== servicios.html detail rows ===== */
.svc-detail{display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:center; padding:56px 0; border-bottom:1px solid var(--line-soft);}
.svc-detail:last-child{border-bottom:none;}
.svc-detail:nth-child(even) .svc-detail-photo{order:2;}
.svc-detail-photo{border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);}
.svc-detail-photo img{width:100%; height:340px; object-fit:cover;}
.svc-detail-copy .eyebrow{display:block; margin-bottom:10px;}
.svc-detail-copy h2{font-size:26px;}
.svc-detail-copy p{color:var(--ink-soft); font-size:16px; line-height:1.75; margin-top:14px;}

/* ===== coberturas ===== */
.cov-strip{
  display:flex; align-items:center; justify-content:space-between; gap:22px; flex-wrap:wrap;
  padding:34px 40px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
}
.cov-strip img{height:84px; width:auto; object-fit:contain;}
.cov-note{margin-top:18px; color:var(--ink-soft); font-size:14px; text-align:center;}
.cov-list{
  columns:3; column-gap:40px; margin-top:16px; list-style:none;
}
.cov-list li{
  break-inside:avoid; padding:11px 0; border-bottom:1px solid var(--line-soft);
  font-size:15px; font-weight:600; color:var(--ink);
}
.cov-cta{
  margin-top:44px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  background:var(--mist); border-radius:var(--radius); padding:28px 32px;
}
.cov-cta p{font-size:15.5px; font-weight:600; max-width:40ch;}

/* ===== testimonios ===== */
.stars{display:flex; gap:3px; margin-bottom:14px; color:var(--teal); font-size:15px; letter-spacing:1px;}
.rev-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.rev-card{border:1px solid var(--line); border-radius:var(--radius); padding:26px; background:var(--paper);}
.rev-card p{font-size:15px; color:var(--ink); line-height:1.7;}
.rev-name{margin-top:18px; font-size:13.5px; font-weight:700; color:var(--ink-soft);}
.rating-summary{
  display:flex; align-items:center; flex-wrap:wrap; gap:12px 16px; margin-bottom:36px; padding:20px 24px;
  background:var(--mist); border-radius:var(--radius); max-width:100%; box-sizing:border-box;
}
.rating-summary .btn{margin-left:auto;}
.rating-num{font-family:"Sora",sans-serif; font-size:24px; font-weight:700; color:var(--brand-deep); letter-spacing:2px;}
.rating-meta{font-size:13.5px; color:var(--ink-soft); font-weight:600;}

/* ===== gallery + lightbox ===== */
.gallery-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
.gallery-item{
  border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); cursor:zoom-in;
  background:none; padding:0; height:170px;
}
.gallery-item img{width:100%; height:100%; object-fit:cover; transition:transform .25s ease;}
.gallery-item:hover img{transform:scale(1.06);}
.lightbox{
  position:fixed; inset:0; z-index:300; background:rgba(8,12,32,.92);
  display:none; align-items:center; justify-content:center; padding:40px;
}
.lightbox.open{display:flex;}
.lightbox-inner{position:relative; max-width:min(92vw,900px); max-height:86vh;}
.lightbox-inner img{max-width:100%; max-height:86vh; border-radius:var(--radius); object-fit:contain; width:auto; height:auto; margin:0 auto;}
.lightbox-close{
  position:absolute; top:-52px; right:0; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:20px; line-height:1;
}
.lightbox-close:hover{background:rgba(255,255,255,.22);}
.lightbox-cap{color:#c9d1f5; font-size:13.5px; margin-top:10px; text-align:center;}

/* ===== social ===== */
.social-row{display:flex; gap:12px; margin-top:18px;}
.social-row a{
  width:44px; height:44px; border:1px solid var(--line); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--brand-deep);
}
.social-row a:hover{background:var(--brand-deep); color:#fff; border-color:var(--brand-deep);}
.social-row svg{width:19px; height:19px;}
footer .social-row a{color:#fff; border-color:rgba(255,255,255,.35);}
footer .social-row a:hover{background:#fff; color:var(--brand-deep); border-color:#fff;}

/* ===== contact ===== */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start;}
.contact-card{display:grid; gap:22px;}
.c-row{display:flex; gap:16px; align-items:flex-start;}
.c-row svg{width:20px; height:20px; color:var(--brand); flex:none; margin-top:2px;}
.c-row h3{font-size:14.5px; font-weight:700;}
.c-row p, .c-row a{color:var(--ink-soft); font-size:15px; margin-top:3px; display:block;}
.c-row a:hover{color:var(--brand);}
.map-frame{
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; height:100%; min-height:340px;
}
.map-frame iframe{width:100%; height:100%; min-height:340px; border:0; display:block;}

/* ===== contact form ===== */
.contact-form{display:grid; gap:16px; margin-top:8px;}
.form-row{display:grid; gap:8px;}
.form-row label{font-size:13.5px; font-weight:700; color:var(--ink);}
.form-row input, .form-row textarea{
  border:1.5px solid var(--line); border-radius:var(--radius); padding:13px 14px; font-size:15px;
  font-family:inherit; color:var(--ink); background:var(--paper);
}
.form-row input:focus, .form-row textarea:focus{border-color:var(--brand);}
.form-row textarea{min-height:130px; resize:vertical;}
.form-note{font-size:13px; color:var(--ink-soft);}
.form-success{
  display:none; margin-top:14px; padding:14px 16px; background:var(--mist); border-radius:var(--radius);
  font-size:14px; font-weight:600; color:var(--brand-deep);
}
.form-success.show{display:block;}

/* ===== final cta ===== */
.final-cta{
  background:var(--brand-deep); border-radius:var(--radius); padding:64px 56px;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.final-cta h2{color:#fff; font-size:28px; max-width:20ch;}
.final-cta p{color:#c9d1f5; margin-top:10px; font-size:15px;}

/* ===== footer ===== */
footer{background:var(--brand-deep); color:#c9d1f5; padding:64px 0 28px;}
.foot-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px;}
footer h3{color:#fff; font-size:14px; margin-bottom:16px;}
.foot-logo{height:30px; margin-bottom:14px; filter:brightness(0) invert(1);}
footer p{font-size:14px; color:#a9b2e0; line-height:1.7;}
footer ul{list-style:none; padding:0; margin:0; display:grid; gap:10px;}
footer a{font-size:14px; color:#c9d1f5;}
footer a:hover{color:#fff;}
.foot-bottom{
  margin-top:52px; padding-top:22px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; justify-content:space-between; font-size:13px; color:#8f9ad0; flex-wrap:wrap; gap:10px;
}
.foot-bottom a{color:#8f9ad0;}
.foot-bottom a:hover{color:#fff;}

/* ===== whatsapp float ===== */
.wa-float{
  position:fixed; bottom:24px; right:24px; z-index:200; width:58px; height:58px; border-radius:50%;
  background:#20c15a; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(0,0,0,.24);
}
.wa-float svg{width:28px; height:28px; color:#fff;}

@media (max-width:980px){
  nav.main-nav, .header-cta{display:none;}
  .burger{display:flex;}
  .hero{min-height:0;}
  .hero-content{padding:48px 0 40px;}
  .hero-sub{font-size:16px;}
  .hero-trust{margin-top:32px; padding-top:20px; gap:20px 28px;}
  .hero-dots{bottom:10px;}
  .about-grid, .contact-grid{grid-template-columns:1fr; gap:36px;}
  .about-photo img{height:320px;}
  .svc-grid{grid-template-columns:repeat(2,1fr);}
  .rev-grid{grid-template-columns:1fr;}
  .rating-summary{flex-direction:column; align-items:flex-start;}
  .rating-summary .btn{margin-left:0; width:100%; justify-content:center;}
  .foot-grid{grid-template-columns:1fr 1fr; gap:32px;}
  .final-cta{padding:40px 28px;}
  .svc-detail{grid-template-columns:1fr; gap:24px; padding:40px 0;}
  .svc-detail:nth-child(even) .svc-detail-photo{order:0;}
  .svc-detail-photo img{height:260px;}
  .cov-list{columns:2;}
  .gallery-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:600px){
  .svc-grid{grid-template-columns:1fr;}
  .hero-content{padding:40px 0 56px;}
  .hero h1{font-size:28px; max-width:none;}
  .hero-trust{gap:16px 20px;}
  .foot-grid{grid-template-columns:1fr;}
  .cov-list{columns:1;}
  .cov-strip{padding:24px 20px; justify-content:center;}
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .wa-float{width:52px; height:52px; bottom:16px; right:16px;}
  .page-banner{padding:40px 0 34px;}
}
