/* Página principal */
.site-header { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 85%, transparent), transparent); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }

/* Menú lateral */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.drawer.open { opacity: 1; visibility: visible; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: var(--surface); border-left: 1px solid var(--line); padding: 22px 26px; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.drawer.open .drawer-panel { transform: none; }
.drawer-close { align-self: flex-end; }
.drawer-links { display: flex; flex-direction: column; margin-top: 30px; }
.drawer-links a { padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 13px; letter-spacing: .22em; }
.drawer-links a:hover { color: var(--gold); }
.drawer .socials { margin-top: auto; }

/* Portada */
.hero { position: relative; min-height: 100svh; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.side-words { position: absolute; left: 20px; top: 110px; margin: 0; padding: 4px 0 4px 16px; list-style: none; border-left: 1px solid color-mix(in srgb, var(--text) 35%, transparent); display: flex; flex-direction: column; gap: 22px; z-index: 2; }
.side-words li { font-family: var(--font-display); font-size: 9.5px; letter-spacing: .34em; color: color-mix(in srgb, var(--text) 80%, transparent); }

.hero-content { position: relative; z-index: 3; padding: 0 20px 36px; display: flex; flex-direction: column; }
.hero-title { margin: 0; display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 8.6vw, 64px); line-height: 1.12; letter-spacing: .16em; }
.hero-title .gold { font-weight: 400; }
.hero-text { margin: 16px 0 0; max-width: 34ch; color: color-mix(in srgb, var(--text) 82%, transparent); font-size: 15px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }
.btn-xl { min-height: 62px; font-size: 14px; letter-spacing: .2em; padding: 0 24px; }
.btn-xl > span:not(.btn-chev) { flex: 1; text-align: center; }
.btn-xl svg { width: 22px; height: 22px; }
.btn-recomienda { margin-top: 2px; padding: 0 22px; min-height: 46px; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); transition: color .2s, background .2s; }
.socials a:hover { color: var(--gold); background: rgba(var(--gold-rgb), .08); }
.socials svg { width: 20px; height: 20px; }
.foot-words { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; text-align: left; }
.foot-words::before { content: ""; position: absolute; left: 0; top: .7em; width: 34px; height: 1px; background: var(--line-2); }
.foot-words li { font-family: var(--font-display); font-size: 8.5px; letter-spacing: .3em; color: var(--muted); line-height: 1.8; }

/* Modo póster: imagen completa (móvil arriba, escritorio a la derecha) */
.hero-poster .hero-media { max-height: 78svh; }
.hero-poster .hero-media img { object-position: center 30%; aspect-ratio: 1034 / 1280; max-height: 78svh; }
.hero-poster .hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(transparent, var(--bg)); }
.hero-poster .hero-content { margin-top: -8px; }

/* Modo fondo: imagen detrás del texto */
.hero-cover { display: flex; flex-direction: column; justify-content: flex-end; }
.hero-cover .hero-media { position: absolute; inset: 0; }
.hero-cover .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .1) 35%, color-mix(in srgb, var(--bg) 92%, transparent) 72%, var(--bg)); }
.hero-cover .hero-content { padding-top: 45svh; }

@media (min-width: 960px) {
  .site-header { padding: 22px 48px; }
  .hero-poster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; }
  .hero-poster .hero-media { order: 2; max-height: none; height: 100svh; }
  .hero-poster .hero-media img { max-height: none; aspect-ratio: auto; height: 100%; }
  .hero-poster .hero-media::after { inset: 0 auto 0 0; width: 30%; height: auto; background: linear-gradient(90deg, var(--bg), transparent); }
  .hero-poster .side-words { left: 32px; top: 130px; }
  .hero-title { font-size: clamp(32px, 3.7vw, 58px); }
  .hero-poster .hero-content { order: 1; margin: 0; justify-content: center; padding: 120px 40px 48px 8vw; }
  .hero-cover .hero-content { padding: 120px 8vw 64px; max-width: 760px; }
  .hero-cover .side-words { left: 48px; top: 140px; }
  .hero-actions { align-items: stretch; max-width: 440px; }
  .btn-recomienda { align-self: center; }
  .hero-foot { max-width: 520px; margin-top: 48px; }
}

/* Frase */
.claim { padding: 70px 20px; text-align: center; border-top: 1px solid var(--line); }
.claim p { margin: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); font-size: clamp(20px, 4.4vw, 40px); letter-spacing: .04em; }
.claim b { font-weight: 800; }
.claim span { font-weight: 300; }

/* Secciones */
.section { padding: 64px 20px; border-top: 1px solid var(--line); max-width: 1180px; margin: 0 auto; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(18px, 3.4vw, 26px); }
.services { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.service { display: flex; align-items: stretch; gap: 0; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s; }
.service:hover { border-color: var(--gold); transform: translateY(-2px); }
.service-img { width: 112px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 60%, #000); color: var(--gold); }
.service-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05); }
.service-img svg { width: 34px; height: 34px; }
.service-body { padding: 16px; flex: 1; min-width: 0; }
.service-body h3 { margin: 0; font-size: 15px; font-weight: 600; }
.service-body p { margin: 6px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.service-meta svg { width: 14px; height: 14px; }
.service-meta b { margin-left: auto; color: var(--gold); font-weight: 600; }
.service-go { display: grid; place-items: center; padding: 0 14px; color: var(--muted); }
.service-go svg { width: 18px; height: 18px; }

.contact-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s; }
a.contact-item:hover { border-color: var(--gold); }
.contact-item > svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.contact-item span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item b { display: block; margin-top: 3px; font-weight: 500; font-size: 14.5px; word-break: break-word; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 20px 36px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer small { font-size: 12px; }
@media (min-width: 960px) { .site-footer { padding: 28px 48px 40px; } }

/* Entrada después de la carga */
body:not(.ready) .hero-content > * { opacity: 0; }
body.ready .hero-content > * { animation: fadeUp .8s cubic-bezier(.2, .7, .2, 1) both; }
body.ready .hero-content > *:nth-child(2) { animation-delay: .1s; }
body.ready .hero-content > *:nth-child(3) { animation-delay: .2s; }
body.ready .hero-content > *:nth-child(4) { animation-delay: .3s; }
