/*
Theme Name: La Cueva Reconstruido Desde Cero
Theme URI: https://lacuevadelaireacondicionado.com.ar
Author: Germán Odierna
Description: Tema personalizado para La Cueva del Aire Acondicionado.
Version: 3.0.0
Text Domain: la-cueva-v3-candidata
*/

:root{
  --navy:#062849; --orange:#ff7a00; --green:#25d366;
  --ink:#142331; --muted:#677684; --soft:#f5f7f9; --line:#dfe6eb;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:#fff}
a{text-decoration:none;color:inherit}
img{display:block;width:100%}
.wrap{width:min(1180px,calc(100% - 40px));margin:auto}

header{
  position:sticky;top:0;z-index:30;background:rgba(255,255,255,.97);
  border-bottom:1px solid #edf1f3;backdrop-filter:blur(10px)
}
.nav{height:122px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand img{width:430px;height:100px;object-fit:contain;object-position:left center}
.menu{display:flex;gap:28px;font-size:14px;font-weight:800;color:var(--navy)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:50px;
  padding:0 22px;border-radius:14px;font-size:14px;font-weight:900
}
.wa{background:var(--green);color:#fff}.outline{border:2px solid var(--navy);color:var(--navy);background:#fff}

.hero{padding:52px 0 36px}
.hero-copy{text-align:center;max-width:980px;margin:0 auto 34px}
.kicker{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--orange);font-weight:900;margin-bottom:16px}
h1{font-size:clamp(46px,6vw,82px);line-height:.98;letter-spacing:-.05em;color:var(--navy);margin:0 0 18px}
.lead{font-size:21px;color:var(--muted);margin:0 0 28px}
.actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

.hero-photo{height:640px;border-radius:32px;overflow:hidden;position:relative;box-shadow:0 18px 42px rgba(6,40,73,.13)}
.hero-photo img{height:100%;object-fit:cover}
.hero-note{
  position:absolute;left:28px;bottom:28px;max-width:430px;
  background:rgba(6,40,73,.92);color:#fff;border-radius:18px;padding:18px 20px
}
.hero-note strong{font-size:28px;line-height:1.05;display:block}
.hero-note span{display:block;margin-top:8px;color:#d4e0e8;font-size:14px}

.trust{margin-top:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.trust div{border:1px solid var(--line);border-radius:18px;padding:20px;background:#fff}
.trust strong{display:block;color:var(--navy);font-size:23px}.trust span{font-size:13px;color:var(--muted)}

section{padding:86px 0}
h2{font-size:clamp(36px,4.3vw,58px);line-height:1.02;letter-spacing:-.04em;color:var(--navy);margin:0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:36px}
.section-head p{max-width:560px;color:var(--muted);line-height:1.65;margin:0}

.projects{background:var(--soft)}
.project-grid{display:grid;grid-template-columns:1.18fr .91fr .91fr;gap:18px}
.project{height:520px;border-radius:28px;overflow:hidden;position:relative;cursor:pointer;box-shadow:0 12px 28px rgba(6,40,73,.08)}
.project>img{height:100%;object-fit:cover;transition:.35s}
.project:hover>img{transform:scale(1.025)}
.shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 42%,rgba(2,20,37,.9))}
.stack{
  position:absolute;right:18px;top:18px;width:43%;height:33%;border-radius:18px;
  overflow:hidden;border:5px solid rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(0,0,0,.23)
}
.stack img{height:100%;object-fit:cover}
.caption{position:absolute;left:24px;right:24px;bottom:24px;color:#fff}
.caption small{color:#ffd5ac;text-transform:uppercase;letter-spacing:.1em;font-weight:900}
.caption h3{font-size:31px;margin:7px 0 8px}.caption p{margin:0;color:#e2ebf1;font-size:14px;line-height:1.5}
.badge{display:inline-flex;margin-top:14px;padding:8px 11px;border-radius:10px;background:rgba(255,255,255,.15);font-size:12px;font-weight:900}

.services{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.service{padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff}
.service b{display:block;color:var(--navy);font-size:18px;margin-bottom:8px}
.service p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}

.about{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center}
.about img{height:540px;object-fit:cover;border-radius:30px;box-shadow:0 12px 32px rgba(6,40,73,.09)}
.about p{font-size:17px;color:var(--muted);line-height:1.7}
.check{margin-top:15px;font-weight:800;color:var(--navy)}

.reviews{background:var(--navy);color:#fff}.reviews h2{color:#fff}
.review-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.reviews p{color:#cbd7e1;line-height:1.7}
.review-card{background:#fff;color:var(--ink);padding:30px;border-radius:24px}
.review-card strong{font-size:24px;color:var(--navy)}

.contact-box{background:#f5f8fa;border:1px solid var(--line);border-radius:30px;padding:44px;display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center}
.contact-box p{color:var(--muted)}

footer{background:#051f38;color:#fff;padding:36px 0}
.foot{display:flex;justify-content:space-between;align-items:center;gap:30px}
.foot img{width:300px;background:#fff;border-radius:14px;padding:8px}
.foot small{color:#cbd7e1}
.float{position:fixed;right:18px;bottom:18px;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-size:25px;font-weight:900;z-index:40}

.modal{position:fixed;inset:0;background:rgba(0,12,24,.95);display:none;align-items:center;justify-content:center;z-index:100;padding:20px}
.modal.open{display:flex}.modal-box{width:min(940px,100%);position:relative}
.modal-title{color:#fff;font-size:20px;font-weight:900;margin-bottom:14px}
.modal img{max-height:78vh;object-fit:contain;border-radius:22px;background:#111}
.close,.prev,.next{position:absolute;border:0;background:#fff;color:var(--navy);width:44px;height:44px;border-radius:50%;font-size:25px;font-weight:900;cursor:pointer}
.close{right:0;top:-58px}.prev{left:-58px;top:50%}.next{right:-58px;top:50%}

@media(max-width:950px){
  .wrap{width:min(100% - 28px,700px)}
  .nav{height:102px}.brand img{width:330px;height:86px}.menu{display:none}
  .hero-photo{height:500px}.trust{grid-template-columns:1fr}
  .project-grid{grid-template-columns:1fr}.project{height:430px}
  .services{grid-template-columns:1fr 1fr}.section-head{display:block}.section-head p{margin-top:15px}
  .about,.review-grid,.contact-box{grid-template-columns:1fr}.prev{left:8px}.next{right:8px}
}
@media(max-width:560px){
  .nav{height:92px}.brand img{width:280px;height:76px}.nav>.btn{min-height:42px;padding:0 13px;font-size:12px}
  .hero{padding-top:34px}.hero-copy{text-align:left}.actions{justify-content:flex-start}
  .hero-photo{height:430px;border-radius:24px}.hero-note{left:16px;right:16px;bottom:16px;max-width:none}.hero-note strong{font-size:23px}
  .services{grid-template-columns:1fr}.project{height:390px}.caption h3{font-size:28px}
}


/* Accesibilidad y ajustes v2.1 */
.project:focus-visible,.btn:focus-visible,.menu a:focus-visible,.float:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.project[role="button"]{user-select:none}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.project>img{transition:none}}


/* v2.2 - nuevos trabajos visibles en portada */
.latest-work{padding:76px 0;background:#f7f9fb;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.latest-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.latest-card{margin:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.latest-card img{aspect-ratio:4/3;object-fit:cover}
.latest-card figcaption{padding:14px 16px 17px;font-weight:800;color:var(--navy);line-height:1.35}
@media (max-width:900px){.latest-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.latest-grid{grid-template-columns:1fr}.latest-work{padding:52px 0}}

/* v2.3 - portada de instalaciones y portfolio de obras ampliado */
.installations-project>img{object-position:center center}

/* V3: misma identidad, prioridad a lectura y contacto en móviles. */
body{font-size:16px;line-height:1.6}h1{font-size:clamp(2.15rem,4.6vw,4.25rem);line-height:1.06;letter-spacing:-.04em}h2{font-size:clamp(2rem,3.4vw,3.4rem);line-height:1.1}p{line-height:1.6}.kicker{font-size:.875rem;color:#a94700}.reviews .kicker{color:#ffab5e}.nav{height:96px;gap:16px}.brand{min-width:0}.brand img{width:min(320px,100%);height:80px}.wa{color:#062849}.btn{font-size:.9375rem;line-height:1.3;text-align:center;padding:12px 20px}.menu{gap:18px}.hero{padding:36px 0}.hero>.wrap{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}.hero-copy{text-align:left;margin:0}.actions{justify-content:flex-start}.hero-photo{height:520px;border-radius:24px}.hero-photo img{object-position:66% center}.hero-note{left:16px;right:16px;bottom:16px}.hero-note strong{font-size:1.5rem}.trust{grid-column:1/-1;margin-top:0}.trust span,.service p,.caption p,.badge,.foot small{font-size:.9375rem}.hero .kicker{line-height:1.5}.lead{font-size:1.125rem}.review-card p{color:#465969}.installations-project{background:#edf2f5;height:auto;min-height:430px}.installations-project>img{height:270px;object-fit:contain;object-position:center}.installations-project .shade{display:none}.installations-project .caption{position:static;padding:22px;color:var(--navy)}.installations-project .caption p{color:#465969}.installations-project .caption small{color:#914000}.installations-project .badge{background:#d9e7f2}.audiences{grid-template-columns:repeat(3,1fr)}.service h3{margin:0 0 10px;line-height:1.3;color:var(--navy)}section[id],.service[id]{scroll-margin-top:120px}.contact-box{overflow-wrap:anywhere}.float{width:auto;height:auto;min-height:48px;padding:10px 18px;border-radius:28px;font-size:1rem;color:#062849;bottom:max(14px,env(safe-area-inset-bottom));box-shadow:0 4px 20px #06284933}.foot{padding-bottom:40px}.modal{padding:16px}.modal-box{max-height:94dvh;padding-top:52px}.modal-title{font-size:1rem;padding-right:44px}.close{right:0;top:0}.prev{left:8px}.next{right:8px}.modal img{max-height:70dvh}.skip-link{position:fixed;left:10px;top:-100px;padding:12px;background:#fff;color:#062849;z-index:200}.skip-link:focus{top:10px}a:focus-visible,button:focus-visible{outline:3px solid #b44700;outline-offset:4px}.content-page{padding-top:50px;padding-bottom:60px}.business{background:#f5f7f9}.latest-work{padding-top:24px}body.admin-bar header{top:32px}
@media(max-width:950px){.hero>.wrap{grid-template-columns:1fr}.hero-photo{height:400px}.trust{grid-template-columns:repeat(3,1fr)}.audiences{grid-template-columns:1fr}.brand img{width:280px}.hero-copy{max-width:none}.nav{height:88px}.menu{display:none}}
@media(max-width:560px){.wrap{width:calc(100% - 32px)}.nav{gap:10px;height:80px}.brand{flex:1}.brand img{width:100%;height:64px}.nav>.btn{flex-shrink:0;font-size:.875rem;padding:10px 12px;min-height:44px}.hero{padding-top:24px}.hero-photo{height:290px}.hero-note strong{font-size:1.125rem}.hero-note span{font-size:.875rem}.hero .actions .btn{width:100%}.hero>.wrap{gap:20px}.trust{grid-template-columns:1fr;gap:8px}.trust div{padding:12px 16px}.trust strong{font-size:1.1rem}.trust span{font-size:.875rem}section{padding:52px 0}.contact-box{padding:24px 20px}.foot{flex-direction:column;align-items:flex-start}.foot img{width:min(270px,100%)}.about img{height:380px}.project{height:440px}.installations-project{height:auto}.caption p{font-size:1rem}.latest-work{padding-top:12px}.modal-title{line-height:1.3}body.admin-bar header{top:46px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.service-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:36px;align-items:center;margin:36px 0}.service-detail img{max-height:540px;object-fit:contain;background:#f5f7f9;border-radius:20px}.service-detail h2{font-size:2rem}.service-detail li{margin:12px 0}@media(max-width:750px){.service-detail{grid-template-columns:1fr}.service-detail img{height:320px}.service-detail .btn{width:100%}}

@media(max-width:950px){.nav{height:auto;min-height:88px;flex-wrap:wrap;column-gap:12px;row-gap:0}.brand{flex:1}.nav>.btn{flex-shrink:0}.menu{display:flex;order:3;flex-basis:100%;overflow-x:auto;white-space:nowrap;gap:24px;padding:0 0 10px}.menu a{display:inline-flex;align-items:center;min-height:44px}.brand img{max-width:100%}section[id],.service[id]{scroll-margin-top:160px}}

/* Ajustes de identidad y navegación */
.brand img{width:min(360px,100%);height:86px}.brand small,.brand .tagline{display:none}.menu{gap:12px;margin-left:auto}.menu a{font-weight:700}.nav>.btn,.btn.wa{background:#25D366;color:#073b22;border-color:#25D366;font-family:Arial,sans-serif;font-weight:700}.installations-project{height:430px;min-height:430px}.installations-project>img{height:270px;object-fit:cover}.about img{max-height:520px;object-fit:cover;object-position:center}

.hero-service{margin:16px 0 20px;display:flex;flex-direction:column;gap:4px}.hero-service strong{font-size:1.35rem;color:var(--navy)}.hero-service span{color:#465969}

/* Instalaciones alineada con las demás tarjetas */
.installations-project{height:430px;min-height:430px}.installations-project>img{height:270px;object-fit:cover}.installations-project .caption{position:absolute;padding:22px;color:#fff}.installations-project .caption p{color:#fff}
