:root {
  --bg: #07090a;
  --bg-alt: #0c1210;
  --card: #111a16;
  --line: #1f2d27;
  --text: #e9efec;
  --muted: #92a39b;
  --accent: #2fbf8a;
  --accent-dark: #0f3d2e;
  /* Switzer (Fontshare). Si se compra Helvetica Now Display, ponerla primera en la lista. */
  --sans: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, .brand-mk { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); font-weight: 700; letter-spacing: -.035em; }
.brand-mk { font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin-bottom: .75rem; }
h3 { font-size: 1.35rem; margin-bottom: .5rem; }
p + p { margin-top: .9rem; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.section { padding: 4.5rem 0; }
.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; margin-bottom: .75rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; font-weight: 300; color: var(--muted); max-width: 540px; margin: 1.2rem 0 2rem; }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Botones */
.btn { display: inline-block; background: var(--accent); color: #04130d; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; border: 1px solid var(--accent); cursor: pointer; font-family: var(--sans); font-size: 1rem; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: #46d6a0; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--accent); }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; background: rgba(7,9,10,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; line-height: 1; }
.brand img { height: 44px; width: auto; display: block; }
.footer-logo { height: 52px; width: auto; }
@media (min-width: 860px) { .brand img { height: 50px; } }
.brand-mk { font-size: 1.8rem; letter-spacing: .05em; }
.brand-sub { font-size: .55rem; letter-spacing: .4em; color: var(--muted); margin-top: .15rem; }
.nav-links { display: none; gap: 1.5rem; align-items: center; font-size: .92rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #04130d; }
.nav-toggle { background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.3rem; padding: .2rem .7rem; border-radius: 8px; cursor: pointer; }
.nav.open .nav-links { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 1.2rem 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .nav { padding-inline: max(1rem, calc((100vw - 1120px) / 2)); }
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

/* Hero */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; background-size: cover; background-position: center; }
.slide.on { opacity: 1; }
.slide video { width: 100%; height: 100%; object-fit: cover; }
.slide.s0 { background: radial-gradient(ellipse at 75% 30%, rgba(47,191,138,.28), transparent 55%), radial-gradient(ellipse at 20% 90%, rgba(15,61,46,.9), transparent 60%), #07090a; }
.slide.s1 { background: radial-gradient(ellipse at 25% 40%, rgba(47,191,138,.22), transparent 55%), radial-gradient(ellipse at 85% 85%, rgba(15,61,46,.9), transparent 60%), #08100d; }
.slide.s2 { background: radial-gradient(ellipse at 60% 70%, rgba(47,191,138,.26), transparent 50%), radial-gradient(ellipse at 10% 10%, rgba(15,61,46,.9), transparent 60%), #060a09; }
.slide.s3 { background: radial-gradient(ellipse at 50% 20%, rgba(47,191,138,.2), transparent 55%), radial-gradient(ellipse at 90% 60%, rgba(15,61,46,.9), transparent 60%), #0a1210; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,10,.92), rgba(7,9,10,.55) 55%, rgba(7,9,10,.15)), linear-gradient(0deg, rgba(7,9,10,.75), transparent 40%); }
.hero-content h1, .hero-content .lead { text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero-content .lead { color: #c4d0ca; }
.hero-content { position: relative; z-index: 1; }
.hero-dots { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 1.5rem; display: flex; gap: .6rem; }
.hero-dots button { width: 34px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.hero-dots button.on { background: rgba(255,255,255,.25); }
.hero-dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: fill var(--dur, 6s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } .hero-dots button.on::after { animation: none; } }

/* Tarjetas */
.cards-3 { display: grid; gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; transition: border-color .2s; }
.card:hover { border-color: var(--accent-dark); }
.card p { color: var(--muted); margin-bottom: 1rem; }
@media (min-width: 800px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

/* Catálogo */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.filtros button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.filtros button:hover { color: var(--text); border-color: var(--accent-dark); }
.filtros button.on { background: var(--accent); border-color: var(--accent); color: #04130d; }
.grid { display: grid; gap: 1.2rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.equipo { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.equipo-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #0f3d2e, #0a1511 70%); display: grid; place-items: center; font-family: var(--serif); font-size: 2.4rem; color: rgba(255,255,255,.25); }
.equipo-img img { width: 100%; height: 100%; object-fit: cover; }
.equipo-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.equipo-body small { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 600; }
.equipo-body h3 { font-size: 1.4rem; margin: 0; }
.equipo-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.equipo-body .btn { margin-top: .8rem; text-align: center; }

/* Servicio destacado: bloque horizontal bajo el catálogo */
.servicios { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.servicios:empty { display: none; }
.servicio { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.servicio-foto { height: 170px; background: linear-gradient(135deg, #0f3d2e, #0a1511 70%); }
.servicio-foto { position: relative; }
.servicio-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.servicio-texto { padding: 1.8rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .3rem; }
.servicio-texto small { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; }
.servicio-texto h3 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .3rem; }
.servicio-texto p { color: #c4d0ca; max-width: 560px; margin: 0 0 1rem; }
.link-sec { margin-top: 1rem; font-size: .95rem; }
@media (min-width: 800px) {
  .servicio { grid-template-columns: 26% 1fr; }
  .servicio-foto { height: auto; min-height: 230px; }
  .servicio-texto { padding: 2rem 2.4rem; }
}

/* Banner largo bajo el catálogo (solo si no hay servicios cargados) */
.banner-cta { margin-top: 2.5rem; display: grid; gap: 1.4rem; align-items: center; padding: 2rem 1.6rem; border: 1px solid var(--accent-dark); border-radius: 20px;
  background: radial-gradient(ellipse at 90% 0%, rgba(47,191,138,.22), transparent 60%), linear-gradient(135deg, #0f3d2e, #0a1511 75%); }
.banner-cta h3 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-bottom: .4rem; }
.banner-cta p { color: #c4d0ca; max-width: 620px; margin: 0; }
.banner-cta .btn { justify-self: start; white-space: nowrap; }
@media (min-width: 800px) { .banner-cta { grid-template-columns: 1fr auto; padding: 2.4rem 2.8rem; } .banner-cta .btn { justify-self: end; } }

/* Features / pasos */
.features, .steps { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; }
.features li, .steps li { border-left: 2px solid var(--accent-dark); padding: .2rem 0 .2rem 1.2rem; display: flex; flex-direction: column; }
.features strong, .steps strong { font-size: 1.05rem; }
.features span, .steps span { color: var(--muted); font-size: .95rem; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: "0" counter(s); font-family: var(--serif); color: var(--accent); font-size: 1.6rem; }
@media (min-width: 800px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
}

/* Split y fotos */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split .btn { margin-top: 1.4rem; }
.photo { border-radius: 16px; background: linear-gradient(135deg, #0f3d2e, #0a1511 70%); border: 1px solid var(--line); min-height: 240px; background-size: cover; background-position: center; }
.ph-estudio { min-height: 340px; }
[hidden] { display: none !important; }
.gallery { display: grid; gap: .8rem; margin-top: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* Items de galería (foto o video) y ampliación */
.gitem { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); cursor: zoom-in; display: block; width: 100%; }
.gitem img, .gitem video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gitem:hover img, .gitem:hover video { transform: scale(1.04); }
.gitem.es-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: #fff; background: rgba(0,0,0,.25); text-shadow: 0 2px 12px rgba(0,0,0,.6); pointer-events: none; }
.estudio-media { display: grid; gap: 1.6rem; }
.grupo h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.grupo-grid { display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); }
.grupo-grid .gitem { aspect-ratio: 4/3; border-radius: 12px; }
.grupo-grid .gitem:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; border-radius: 16px; }
.lightbox { border: 0; background: transparent; padding: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lb-body { width: 100%; height: 100%; display: grid; place-items: center; padding: 4rem 1rem 2rem; }
/* Foto/video con tamaño acotado: nunca más alto que la pantalla (descontando márgenes) ni más ancho que 900 px */
.lb-body img, .lb-body video { display: block; width: auto; height: auto; max-width: min(100%, 900px); max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); object-fit: contain; border-radius: 10px; background: #000; }
@media (min-width: 860px) { .lb-body img, .lb-body video { max-height: min(78vh, 720px); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; transition: background .15s; }
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: .8rem; }
.lb-next { right: .8rem; }
.lb-count { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500; }
@media (max-width: 600px) { .lb-nav { width: 40px; height: 52px; font-size: 1.8rem; } .lb-prev { left: .3rem; } .lb-next { right: .3rem; } }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: .7rem; }

/* Formulario */
.form { display: grid; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.form input, .form select, .form textarea { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: .75rem .9rem; font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }
.req { color: var(--accent); font-weight: 600; }
.form-nota { font-size: .8rem; margin: 0; }
.form .invalid { border-color: #f08a7e; outline: 1px solid #f08a7e; }
.form-msg { font-size: .9rem; color: var(--accent); min-height: 1.2em; }
.form-msg.err { color: #f08a7e; }

/* Footer y WhatsApp */
.footer { padding: 2.5rem 0 5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-in { display: grid; gap: .5rem; justify-items: center; text-align: center; }
.footer a:hover { color: var(--accent); }
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; background: #25d366; color: #04130d; font-weight: 600; padding: .8rem 1.2rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
