/* ==========================================================
   Aeron Clima — Estilos
   ========================================================== */
:root {
  --deep: #062a4a;
  --deep-2: #0a3d66;
  --cyan: #19b3e6;
  --cyan-2: #0e93c4;
  --ice: #e9f7fd;
  --ice-2: #f5fbfe;
  --wa: #1fae55;
  --wa-dark: #178f45;
  --text: #102536;
  --muted: #5a6f80;
  --line: #d9e8f1;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(6, 42, 74, .1);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--cyan-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--font-body); cursor: pointer; text-decoration: none !important;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(31,174,85,.3); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--light { background: #fff; color: var(--deep); }
.btn--sm { padding: .55em 1.15em; font-size: .9rem; box-shadow: none; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.header.is-scrolled { box-shadow: 0 4px 20px rgba(6,42,74,.08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none !important; color: var(--deep); }
.logo__mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--deep-2)); }
.logo__mark svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo__text { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.logo__text b { color: var(--cyan); font-weight: 700; }
.logo--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: var(--text); font-weight: 500; position: relative; text-decoration: none; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--cyan); transition: width .2s; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--deep); margin: 6px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(25,179,230,.35), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(25,179,230,.18), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, #04203a 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(70px, 10vw, 120px) 0; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, #7fe0ff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.1rem; color: #c3d9ea; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #7fe0ff; margin: 0 0 1rem; }
.eyebrow--dark { color: var(--cyan-2); }

/* Ilustración split */
.hero__art { position: relative; height: 340px; }
.split { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: min(400px, 92%); }
.split__body {
  height: 110px; border-radius: 22px 22px 14px 14px; position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #e6f1f8 100%);
  box-shadow: 0 25px 50px rgba(0,0,0,.35), inset 0 -6px 0 rgba(6,42,74,.06);
}
.split__led { position: absolute; right: 26px; top: 26px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: blink 2.4s infinite; }
.split__temp { position: absolute; right: 44px; top: 16px; font: 700 1.1rem var(--font-head); color: var(--cyan-2); }
.split__vent { height: 14px; margin: -14px 16px 0; border-radius: 0 0 12px 12px; background: repeating-linear-gradient(90deg, #c9dce9 0 10px, #b7cfdf 10px 12px); position: relative; }
.airflow { position: absolute; top: 140px; left: 50%; transform: translateX(-50%); width: min(340px, 80%); height: 180px; }
.airflow span {
  position: absolute; top: 0; width: 3px; height: 70px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(127,224,255,.9), transparent);
  animation: flow 2.2s linear infinite; opacity: 0;
}
.airflow span:nth-child(1) { left: 8%;  animation-delay: 0s; }
.airflow span:nth-child(2) { left: 29%; animation-delay: .45s; }
.airflow span:nth-child(3) { left: 50%; animation-delay: .9s; }
.airflow span:nth-child(4) { left: 71%; animation-delay: 1.35s; }
.airflow span:nth-child(5) { left: 92%; animation-delay: 1.8s; }
.flakes i { position: absolute; color: rgba(127,224,255,.7); font-style: normal; animation: float 6s ease-in-out infinite; }
.flakes i:nth-child(1) { top: 10px; left: 6%; font-size: 1.4rem; }
.flakes i:nth-child(2) { top: 200px; left: 4%; font-size: 1rem; animation-delay: 1.5s; }
.flakes i:nth-child(3) { top: 0; right: 4%; font-size: 1.1rem; animation-delay: 3s; }
.flakes i:nth-child(4) { top: 250px; right: 8%; font-size: 1.6rem; animation-delay: 4.5s; }
@keyframes flow { 0% { transform: translateY(-10px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(120px); opacity: 0; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(20deg); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Ventajas ---------- */
.perks { background: #fff; border-bottom: 1px solid var(--line); }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; gap: .9rem; align-items: center; padding: 1.8rem 1.2rem; border-right: 1px solid var(--line); }
.perk:last-child { border-right: 0; }
.perk h3 { font-size: 1rem; margin: 0; color: var(--deep); }
.perk p { margin: 0; color: var(--muted); font-size: .88rem; }
.perk__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); }
.perk__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Secciones ---------- */
.section { padding: clamp(65px, 9vw, 105px) 0; }
.section--alt { background: var(--ice-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section__sub { color: var(--muted); margin: 0; }
.title { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--deep); font-weight: 800; }
.title--light { color: #fff; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__num { position: absolute; top: 1.4rem; right: 1.6rem; font: 700 .85rem var(--font-head); color: #b9d3e3; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ice), #d4effb); margin-bottom: 1.2rem; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; color: var(--deep); }
.card p { margin: 0; color: var(--muted); }
.card--cta { background: linear-gradient(140deg, var(--deep-2), var(--deep)); border: 0; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.card--cta h3 { color: #fff; }
.card--cta p { color: #c3d9ea; margin-bottom: 1.3rem; }
.card--cta .btn { align-self: flex-start; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1; background: var(--ice); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2rem .8rem .7rem; color: #fff; font-size: .82rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(4,32,58,.85)); opacity: 0; transform: translateY(20%); transition: .3s;
}
.gallery__item:hover figcaption { opacity: 1; transform: none; }
/* Recuadro cuando todavía no está la foto */
.gallery__item.is-empty { cursor: default; border: 2px dashed #b7d8ea; background: #fff; display: grid; place-items: center; }
.gallery__item.is-empty img, .gallery__item.is-empty figcaption { display: none; }
.gallery__item.is-empty::after {
  content: attr(data-file); text-align: center; white-space: pre-line;
  font: 600 .85rem/1.5 var(--font-body); color: #7aa6c0;
}

/* ---------- Contacto ---------- */
.contact-section { background: linear-gradient(160deg, var(--deep) 0%, #04203a 100%); color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__lead { color: #c3d9ea; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #8fb3cc; }
.contact__list a { color: #fff; font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(25,179,230,.15); }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: #7fe0ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 2rem; box-shadow: 0 25px 60px rgba(0,0,0,.3); display: grid; gap: 1rem; }
.form h3 { font-size: 1.5rem; color: var(--deep); margin: 0; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .88rem; color: var(--deep); }
.form input, .form select, .form textarea { font: 400 1rem var(--font-body); color: var(--text); padding: .8em 1em; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--ice-2); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(25,179,230,.15); background: #fff; }
.form .is-invalid { border-color: #d64545; }
.form__error { color: #d64545; font-size: .88rem; margin: 0; }
.form__note { margin: 0; font-size: .9rem; color: var(--muted); text-align: center; }
.form__error:empty, .form__note:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: #031829; color: #8fb3cc; padding-top: 45px; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 30px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { color: #c3d9ea; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 25px rgba(31,174,85,.45); transition: transform .2s; animation: pulse 2.6s infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,174,85,.5); } 70% { box-shadow: 0 0 0 16px rgba(31,174,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,174,85,0); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3,20,36,.95); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; max-width: min(960px, 100%); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: 1rem; font-weight: 600; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float, .airflow span, .flakes i, .split__led { animation: none; }
  .airflow span { opacity: .6; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .perk:nth-child(2) { border-right: 0; }
  .perk:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: .5rem 20px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; z-index: -1; }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 1rem; }
  .hero__art { height: 260px; order: -1; }
  .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .hero__art { height: 220px; }
  .split__body { height: 86px; }
  .airflow { top: 115px; height: 110px; }
  .hero__actions .btn { width: 100%; }
  .perks__grid { grid-template-columns: 1fr; }
  .perk { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
  .perk:last-child { border-bottom: 0; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery__item figcaption { opacity: 1; transform: none; font-size: .75rem; }
  .form { padding: 1.4rem; }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
}

/* ---------- Logo real ---------- */
.logo__img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.logo--light .logo__img { background: #fff; }
.hero__art { height: auto; display: grid; place-items: center; }
.hero__logo {
  width: min(380px, 80%); border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 80px rgba(25,179,230,.45), 0 30px 60px rgba(0,0,0,.35);
  animation: float-logo 6s ease-in-out infinite;
}
@keyframes float-logo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Galería: fotos que todavía no están se ocultan */
.gallery__item.is-empty { display: none; }

/* ---------- Videos ---------- */
.videos { margin-top: 3rem; text-align: center; }
.videos__title { font-size: 1.4rem; color: var(--deep); margin-bottom: 1.3rem; }
.videos__grid { display: flex; justify-content: center; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.video { height: 420px; max-width: 100%; border-radius: 12px; background: #000; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero__art { height: auto; } .hero__logo { width: min(240px, 60%); } }
@media (max-width: 560px) {
  .hero__art { height: auto; }
  .video { height: auto; width: 100%; }
  .video--vertical { width: 70%; }
}
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } }
