/* Oceana Design & Build — hoja de estilos principal */
:root {
  --ivory: #f7f3ec;
  --ivory-2: #f1ebe0;
  --stone: #e6dfd2;
  --stone-2: #d6ccbb;
  --ink: #1e1b17;
  --ink-2: #3d3832;
  --muted: #6f675c;
  --line: #d9d0c2;
  --accent: #7a5c3a;
  --accent-2: #5f4730;
  --white: #fffdf9;
  --max: 1200px;
  --radius: 4px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
}
img, picture { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
  display: block;
}
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-ivory-2 { background: var(--ivory-2); }
.bg-stone { background: var(--stone); }
.bg-white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Botones */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ivory); border-color: var(--ivory); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .02em; }
.brand-tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-2); text-decoration: none; }
.nav a.btn { padding: .6rem 1.1rem; font-size: .88rem; color: #fff; }
.nav a.btn:hover { color: #fff; }
.nav a[href="/air/"] { color: var(--accent-2); }
@media (max-width: 1120px) and (min-width: 901px) {
  .nav { gap: .9rem; }
  .nav a { font-size: .86rem; }
  .nav a.btn { padding-inline: .8rem; }
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .5rem .7rem; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .9rem; text-align: center; border-bottom: 1px solid var(--ink); }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(84vh, 720px); display: flex; align-items: center;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero-media picture { position: absolute; inset: 0; height: 100%; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }

/* Hero "vivo": ciclo de 36 s atardecer → hora azul → noche → atardecer.
   Capa 1 (atardecer) siempre opaca debajo; las capas 2 y 3 se funden encima, así nunca se ve el fondo.
   0–25 % atardecer · 25–33 % fundido a hora azul · 33–55 % hora azul · 55–63 % fundido a noche ·
   63–88 % noche · 88–100 % fundido de noche a atardecer. Solo se animan opacity y transform. */
@keyframes hero-fade-hora-azul {
  0%, 25% { opacity: 0; }
  33%, 88% { opacity: 1; }
  88.1%, 100% { opacity: 0; }   /* pasa a 0 mientras la capa de noche está totalmente opaca: cambio invisible */
}
@keyframes hero-fade-noche {
  0%, 55% { opacity: 0; }
  63%, 88.2% { opacity: 1; }   /* se mantiene opaca hasta 88.2 % para cubrir el apagado de la capa de hora azul en 88.1 % */
  100% { opacity: 0; }
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.035); }
}
@keyframes hero-zoom-mobile {
  from { transform: scale(1); }
  to   { transform: scale(1.02); }
}
.hero-layer-1 { z-index: 1; }
.hero-layer-2 { z-index: 2; opacity: 0; animation: hero-fade-hora-azul 36s linear infinite; }
.hero-layer-3 { z-index: 3; opacity: 0; animation: hero-fade-noche 36s linear infinite; }
.hero-media img {
  transform-origin: 62% 50%;
  backface-visibility: hidden;
  will-change: transform;
  animation: hero-zoom 36s ease-in-out infinite alternate;   /* 36 s ida + 36 s vuelta: sin salto al reiniciar el ciclo */
}
@media (max-width: 720px) {
  .hero-media img { animation-name: hero-zoom-mobile; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-layer-2, .hero-layer-3 { display: none; }
  .hero-media picture, .hero-media img { animation: none; transform: none; will-change: auto; }
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22,19,15,.62) 0%, rgba(22,19,15,.42) 38%, rgba(22,19,15,.08) 68%, rgba(22,19,15,0) 100%);
}
.hero-shade::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, rgba(22,19,15,0), rgba(22,19,15,.35));
}
.hero-content { max-width: 620px; padding: clamp(4rem, 10vw, 7rem) 0; }
.hero .eyebrow { color: #e9dcc7; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 54ch; }
.hero-meta { margin-top: 2rem; font-size: .85rem; color: rgba(255,255,255,.75); }
.hero-meta span { display: inline-block; margin-right: 1.2rem; }
.hero p.hero-note { font-size: .74rem; color: rgba(255,255,255,.65); margin-top: 1rem; }
.air-hero .hero-shade {
  background: linear-gradient(90deg, rgba(14,24,29,.82) 0%, rgba(20,38,45,.62) 44%, rgba(24,45,53,.16) 78%, rgba(24,45,53,0) 100%);
}
.air-mark {
  display: block;
  width: fit-content;
  margin-bottom: .9rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  letter-spacing: .035em;
  color: #fff;
}
.air-mark strong {
  margin-left: .18em;
  font-family: var(--sans);
  font-size: .46em;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #d9e7e8;
}
.air-mark-dark { color: var(--ink); }
.air-mark-dark strong { color: var(--accent-2); }
@media (max-width: 720px) {
  .hero-media img { object-position: 78% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(22,19,15,.66) 0%, rgba(22,19,15,.5) 55%, rgba(22,19,15,.25) 100%); }
}

/* Page hero (interior) */
.page-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--ivory-2); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: .5rem; }

/* Breadcrumbs */
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 .45rem; color: var(--stone-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* Grids */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* Figures */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); background: var(--stone); }
.figure figcaption { font-size: .74rem; color: var(--muted); margin-top: .55rem; letter-spacing: .01em; }

/* Value props / features */
.feature { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.feature h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.num { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: .6rem; }

/* Service list */
.service-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.service-list li { border-bottom: 1px solid var(--line); padding: .95rem 0; margin: 0; }
.service-list li a, .service-list li span { color: var(--ink); font-weight: 500; }
.service-list small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; margin-top: .15rem; }
@media (max-width: 900px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-list { grid-template-columns: 1fr; } }

/* Oceana Air */
.air-systems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.air-system {
  min-height: 230px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.34);
}
.air-system > span {
  display: block;
  margin-bottom: 2.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--accent);
}
.air-system h3 { font-size: 1.35rem; }
.air-system p { margin-bottom: 0; color: var(--ink-2); }
.air-checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.air-checks li { margin: 0; padding: .85rem 0 .85rem 1.65rem; border-bottom: 1px solid var(--line); position: relative; }
.air-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); }
.air-form { box-shadow: 0 18px 45px rgba(42,35,27,.08); }
@media (max-width: 900px) { .air-systems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .air-systems { grid-template-columns: 1fr; }
  .air-system { min-height: 0; }
  .air-system > span { margin-bottom: 1.3rem; }
}

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.1rem; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.steps h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* Portfolio placeholder */
.portfolio-note { border: 1px dashed var(--stone-2); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }

/* Zonas / barrios */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.zone { border: 0; padding: 0; }
.zone summary { list-style: none; cursor: default; pointer-events: none; padding: .4rem 0 .8rem; }
.zone summary::-webkit-details-marker { display: none; }
.zone summary h3 { font-size: 1.35rem; margin: 0; }
.zone summary h3 a { color: var(--ink); }
.zone summary .count { display: none; }
.zone ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.zone li { margin: 0; padding: .42rem 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.zone li a { color: var(--ink); font-weight: 500; }
.zone li a::after { content: " →"; color: var(--accent); font-weight: 400; }
@media (max-width: 1000px) { .zones { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; } }
@media (max-width: 640px) {
  .zones { grid-template-columns: 1fr; padding: 0; border-top: 0; }
  .zone { border-top: 1px solid var(--line); }
  .zone summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
  .zone summary .count { display: inline; font-size: .8rem; color: var(--muted); white-space: nowrap; margin-left: auto; padding-left: 1rem; }
  .zone summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; color: var(--accent); margin-left: 1rem; }
  .zone[open] summary::after { content: "–"; }
  .zone ul { padding-bottom: 1rem; }
}
.zones-close { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.zones-close p { margin: 0; max-width: 56ch; }

/* Links list (related) */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 0; border-top: 1px solid var(--line); padding: .7rem 0; }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a { color: var(--ink); font-weight: 500; }
.link-list a::after { content: " →"; color: var(--accent); font-weight: 400; }

/* Prose blocks */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 70ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Form */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.8rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: .35rem; }
.req { color: var(--accent); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--stone-2); border-radius: var(--radius); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; font-weight: 400; color: var(--muted); }
.check input { width: auto; margin-top: .25rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.form-msg { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: #eef3e8; color: #2f4a25; border: 1px solid #c8d8bb; }
.form-msg.err { display: block; background: #f8e9e6; color: #6b2a21; border: 1px solid #e6c4bd; }
.hidden { display: none !important; }

/* Combobox */
.combobox { position: relative; }
.combobox input { padding-right: 2.2rem; }
.combobox .chev { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .8rem; }
.combobox [role="listbox"] {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--stone-2); border-radius: var(--radius);
  max-height: 240px; overflow: auto; list-style: none; padding: .3rem 0; margin: 0;
  box-shadow: 0 10px 30px rgba(30,27,23,.12);
}
.combobox [role="option"] { padding: .55rem .9rem; cursor: pointer; margin: 0; font-size: .95rem; }
.combobox [role="option"]:hover, .combobox [role="option"][aria-selected="true"] { background: var(--ivory-2); }
.combobox [role="option"].group { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: default; padding-top: .7rem; }
.combobox [role="option"].group:hover { background: transparent; }
.combobox .empty { padding: .6rem .9rem; color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #f3ede3; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 60ch; }
.cta-band .btn-row { margin-top: 1.4rem; }

/* Footer */
.site-footer { background: var(--ivory-2); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; font-size: .9rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .45rem; }
.site-footer a { color: var(--ink-2); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .8rem; color: var(--muted); }

/* Utility */
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5rem 0; }
.inline-list { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.inline-list li { margin: 0; }
.tag-line { font-size: .92rem; color: var(--ink-2); }

/* Footer note */
.footer-note { flex-basis: 100%; font-size: .74rem; color: var(--muted); }
.btn-row.m0 { margin: 0; }

/* Utilidades */
.split-top { align-items: start; }
.mt-1 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .8rem; }
.prose-wide { max-width: none; }
.hp { position: absolute; left: -9999px; }
