:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --text: #f4f3f1;
  --muted: #9b9a97;
  --line: rgba(255, 255, 255, .13);
  --fire: #f0642a;
  --gutter: clamp(20px, 5vw, 72px);
  --sans: "Montserrat", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --display: "Archivo", "Montserrat", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Navegación */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); transition: background .3s, padding .3s; }
.nav.scrolled { background: rgba(11, 11, 12, .86); backdrop-filter: blur(12px); padding-block: 10px; }
.nav-logo { height: 38px; width: auto; }
.nav-links { display: flex; gap: 36px; font-size: 13px; font-weight: 500; }
.nav-links a { opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* Banner */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.34) 40%, rgba(11,11,12,.92) 100%), linear-gradient(90deg, rgba(0,0,0,.45), transparent 70%); }
.hero-content { position: relative; padding: 0 var(--gutter) clamp(48px, 9vh, 88px); max-width: 1240px; }
/* Títulos: ancha y pesada, similar a Horizon */
.hero h1, .section-head h2, .closing h2 { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; line-height: .9; letter-spacing: -.06em; }
.hero h1 { font-size: clamp(30px, 6.2vw, 92px); margin: 16px 0 22px; }
.hero .eyebrow { color: var(--text); font-size: 10.5px; opacity: .7; }
.hero-sub { font-size: clamp(16px, 1.5vw, 20px); max-width: 34em; color: #e2e1de; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 2px; font-size: 14px; font-weight: 600; letter-spacing: .01em; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--fire); color: #140702; }
.btn-primary:hover { background: #ff7a42; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Secciones */
.section { padding: clamp(72px, 11vw, 150px) var(--gutter) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 60px); }
.section-head h2, .closing h2 { font-size: clamp(26px, 4.4vw, 62px); margin-top: 14px; }

/* Fondos de los elementos */
.services-section, .closing { position: relative; overflow: hidden; }
.parallax-img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; max-width: none; object-fit: cover; will-change: transform; }
.services-shade, .closing-shade { position: absolute; inset: 0; pointer-events: none; }

.statement p { max-width: 21em; font-size: clamp(25px, 3.7vw, 50px); font-weight: 300; line-height: 1.24; letter-spacing: -.02em; }
.statement em { font-style: normal; font-weight: 500; color: var(--fire); }

/* Aparición al bajar */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Franja de texto */
.marquee { margin-top: clamp(64px, 9vw, 120px); padding: 18px 0; overflow: hidden; border-block: 1px solid var(--line); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 42s linear infinite; }
.marquee span { padding-right: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Trabajo */
.feature, .card { position: relative; display: block; width: 100%; overflow: hidden; background: var(--surface); text-align: left; }
.feature { aspect-ratio: 21 / 9; margin-bottom: 12px; }
.card { aspect-ratio: 9 / 16; }
.feature video, .card video { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.feature:hover video, .card:hover video { transform: scale(1.035); }
.feature::after, .card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,.76)); pointer-events: none; }
.feature-info, .card-info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 18px; }
.feature-info { padding: clamp(18px, 3vw, 36px); }
.card-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #d4d3d0; }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.25; }
.feature-title { font-size: clamp(24px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.play { position: absolute; z-index: 1; right: clamp(18px, 3vw, 36px); bottom: clamp(18px, 3vw, 36px); width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; transition: background .2s, border-color .2s; }
.play::before { content: ""; position: absolute; left: 23px; top: 19px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.feature:hover .play { background: var(--fire); border-color: var(--fire); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.work-wide { grid-template-columns: repeat(2, 1fr); }
.card-wide { aspect-ratio: 16 / 9; }
.card-wide .card-title { font-size: clamp(16px, 1.5vw, 20px); }
.work-sub { margin: clamp(48px, 6vw, 80px) 0 18px; }
.card:hover::after { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.8)); }

/* Carrusel de fotos */
.gallery-slides { position: absolute; inset: 0; }
.gallery-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.gallery-slides img.active { opacity: 1; }
.gallery-card:hover .gallery-slides img { transform: scale(1.035); }
.gallery-count { position: absolute; z-index: 1; top: 14px; right: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.5); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.text-link { display: inline-block; margin-top: 28px; padding-bottom: 3px; border-bottom: 1px solid var(--fire); font-size: 14px; font-weight: 500; }
.text-link:hover { color: var(--fire); }

/* Servicios */
.services-section { display: flex; align-items: center; min-height: 150svh; }
.services-section .parallax-img { object-position: center 40%; }
.services-shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,12,.62) 14%, rgba(11,11,12,.66) 86%, var(--bg) 100%); }
.services-content { position: relative; width: 100%; padding: clamp(120px, 14vw, 200px) var(--gutter); }
.services-content .section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.services-content h2 { font-size: clamp(26px, 3.4vw, 48px); }
.services { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.service { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.7fr) 230px; gap: 8px clamp(20px, 3vw, 48px); align-items: baseline; padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.service-num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); transition: color .25s; }
.service h4 { font-size: clamp(19px, 1.9vw, 25px); font-weight: 500; letter-spacing: -.012em; line-height: 1.2; transition: color .25s; }
.service:hover h4, .service:hover .service-num { color: #ff8a57; }
.service-body p { color: #c9c8c4; font-size: 14px; line-height: 1.65; max-width: 46em; }
.service .service-hook { color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.4; margin-bottom: 8px; }
.service-price { display: grid; justify-items: end; gap: 6px; color: var(--text); text-align: right; }
.price-row { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.price-plan, .price-from { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.price-plan { color: var(--text); }
.price-plan::after { content: "·"; margin-left: 7px; color: var(--muted); }
.price-from { color: #ff8a57; }
.service-price strong { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.01em; }
.service-price--quote strong { font-size: 15px; font-weight: 500; color: #c9c8c4; }
.service-quote { grid-column: 4; justify-self: end; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--fire); padding-bottom: 2px; transition: color .2s; }
.service-quote:hover { color: #ff8a57; }
.cta-note { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c9c8c4; }
.closing .cta-note { margin-top: 12px; font-size: 8.8px; }

/* Planes de contenido mensual: dos grupos plegables */
.plans { grid-column: 2 / -1; margin-top: clamp(24px, 3vw, 36px); min-width: 0; }
.plans-title { margin-bottom: 14px; }
.plan-groups { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.plan-toggle { grid-row: 1; display: grid; gap: 6px; padding: 22px; text-align: left; background: rgba(11, 11, 12, .58); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); transition: border-color .25s, background .25s; }
.plan-toggle.is-pro { border-color: rgba(255, 138, 87, .35); }
.plan-toggle:hover, .plan-toggle[aria-expanded="true"] { border-color: #ff8a57; background: rgba(11, 11, 12, .75); }
.plan-toggle .plan-group { font-size: 12px; }
.plan-toggle-tag { color: #c9c8c4; font-size: 13.5px; line-height: 1.5; }
.plan-toggle-prices { margin-top: 4px; font-size: 14px; color: #c9c8c4; }
.plan-toggle-prices strong { color: var(--text); font-size: 18px; font-weight: 600; }
.plan-toggle-cta { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.plan-toggle-icon { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-weight: 400; transition: transform .3s, background .2s, border-color .2s; }
.plan-toggle:hover .plan-toggle-icon { background: var(--fire); border-color: var(--fire); }
.plan-toggle[aria-expanded="true"] .plan-toggle-icon { transform: rotate(45deg); background: var(--fire); border-color: var(--fire); }
.plan-toggle .close-text, .plan-toggle[aria-expanded="true"] .open-text { display: none; }
.plan-toggle[aria-expanded="true"] .close-text { display: inline; }
.plan-options { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
.plan-options.open { grid-template-rows: 1fr; }
.plan-options-inner { min-height: 0; overflow: hidden; }
.plan-options.open .plan-options-inner { padding-top: 14px; }
.plans-track { display: flex; gap: 14px; }
.plan-options .plans-track { width: min(100%, max(76%, 560px)); margin-right: auto; }
.plan-options.is-pro .plans-track { margin-left: auto; margin-right: 0; }
.plan-options-inner { position: relative; }
.plan-options.open .plan-options-inner::before { content: ""; position: absolute; top: 4px; left: calc(25% - 7px); width: 0; height: 0; border: 7px solid transparent; border-top: 0; border-bottom-color: #ff8a57; }
.plan-options.is-pro.open .plan-options-inner::before { left: calc(75% - 7px); }
.plan-options.is-pro .plan-card { border-color: rgba(255, 138, 87, .35); }
.plan-card { flex: 1 1 0; scroll-snap-align: start; display: flex; flex-direction: column; padding: 24px 22px; background: rgba(11, 11, 12, .58); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); transition: border-color .25s; }
.plan-card:hover { border-color: rgba(255, 138, 87, .6); }
.plan-group { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ff8a57; }
.plan-card h5 { margin-top: 6px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.plan-price { margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.plan-price strong { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.plan-price span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-card ul { display: grid; gap: 8px; margin: 16px 0 22px; padding: 0; list-style: none; color: #d6d5d1; font-size: 13.5px; line-height: 1.45; }
.plan-card li { position: relative; padding-left: 18px; }
.plan-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 1px; background: #ff8a57; }
.plan-cta { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--fire); padding-bottom: 2px; transition: color .2s; }
.plan-cta:hover { color: #ff8a57; }
.plans-note { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c9c8c4; }
.plans-note span::before { content: "✓"; margin-right: 8px; color: #ff8a57; }

/* Cierre */
.closing { display: flex; align-items: center; min-height: 100svh; padding: clamp(96px, 11vw, 150px) var(--gutter); }
.closing .parallax-img { object-position: center 62%; }
.closing-shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,12,.28) 26%, rgba(11,11,12,.4) 76%, var(--bg) 100%), linear-gradient(90deg, rgba(11,11,12,.9) 0%, rgba(11,11,12,.62) 52%, rgba(11,11,12,.1) 100%); }
.closing-content { position: relative; }
.closing .eyebrow { color: var(--text); }
.closing h2 { font-size: clamp(18px, 4.35vw, 64.5px); }
.steps { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: paso; font-size: 15px; }
.steps li { counter-increment: paso; }
.steps li::before { content: counter(paso) "."; margin-right: 8px; font-family: var(--mono); color: #ff8a57; }
.closing .btn { margin-top: 34px; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 26px var(--gutter); padding-right: 104px; color: var(--muted); font-size: 12px; }
.footer p { white-space: nowrap; }
.footer-social { display: flex; gap: 10px; }
.footer-link:hover { color: var(--fire); }

/* WhatsApp siempre visible */
.wa-float { position: fixed; z-index: 30; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* Reproductor */
.player { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: var(--text); }
.player[open] { display: grid; place-items: center; }
.player::backdrop { background: rgba(0, 0, 0, .9); }
.player-frame { width: min(92vw, calc(86dvh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.player-frame.vertical { width: min(92vw, calc(86dvh * 9 / 16)); aspect-ratio: 9 / 16; }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.gallery-image { max-width: 92vw; max-height: 84dvh; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 32px; line-height: 1; transition: background .2s; }
.gallery-nav:hover { background: var(--fire); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.player-close { position: absolute; z-index: 1; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 28px; line-height: 1; }
.player-close:hover { background: var(--fire); }

@media (max-width: 1000px) {
  .work-tall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-logo { height: 28px; }
  .hero-content { padding-right: 20px; padding-bottom: 96px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .feature { aspect-ratio: 4 / 3; }
  .play { width: 48px; height: 48px; }
  .play::before { left: 18px; top: 14px; }
  .work-grid { gap: 8px; }
  .work-wide { grid-template-columns: 1fr; }
  .work-tall { grid-template-columns: repeat(2, 1fr); }
  .card-info { padding: 14px; }
  .gallery-nav { top: auto; bottom: 8px; transform: none; }
  .hero .eyebrow { text-wrap: balance; max-width: 30ch; }
  .services-section { min-height: 0; }
  .service { grid-template-columns: 34px 1fr; gap: 10px 0; }
  .service-body, .service-price { grid-column: 2; }
  .service-price { justify-items: start; text-align: left; margin-top: 4px; }
  .service-quote { grid-column: 2; justify-self: start; }
  .footer { flex-direction: column; align-items: flex-start; gap: 8px; padding-right: var(--gutter); padding-bottom: 104px; }
  .plans { grid-column: 1 / -1; }
  .plan-groups { grid-template-columns: 1fr; row-gap: 10px; }
  .plan-toggle, .plan-options { grid-row: auto; }
  .plan-options.open .plan-options-inner { padding-top: 12px; }
  .plans-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .plan-options .plans-track { width: 100%; }
  .plan-options.open .plan-options-inner::before, .plan-options.is-pro.open .plan-options-inner::before { left: 24px; top: 5px; }
  .plans-track::-webkit-scrollbar { display: none; }
  .plan-card { flex: 0 0 84%; }
  .closing-shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,12,.6) 28%, rgba(11,11,12,.66) 76%, var(--bg) 100%); }
  .steps { display: grid; }
  .closing .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
