/* ==========================================================================
   Acantilados del Lobo — Design System "Costa Patagónica"
   Paleta del logo: navy #0B274E · naranja #F1702E · dorado #FDB11F
                    arena #FEDC92 · celeste mar #41A7D7 · verde costa #37A94A
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg-primary:    #FFFCF6;
  --bg-secondary:  #F7F0E3;
  --bg-tertiary:   #EFE5D2;
  --text-primary:  #0B274E;
  --text-secondary:#3A4A63;
  --text-muted:    #66708A;
  --border:        #E4D8C2;
  --accent:        #0B274E;
  --accent-hover:  #16407A;
  --accent-text:   #FFFFFF;
  --sea:           #1C77A6;
  --sea-soft:      #41A7D7;
  --green:         #2E8C3E;
  --orange:        #F1702E;
  --gold:          #FDB11F;
  --sand:          #FEDC92;
  --danger:        #C0392B;
  --success:       #1A7A4A;
  --warning:       #B8650A;
  --surface:       #FFFFFF;
  --shadow:        rgba(11, 39, 78, 0.10);
  --shadow-strong: rgba(11, 39, 78, 0.22);
  --glass:         rgba(255, 252, 246, 0.66);
  --glass-solid:   rgba(255, 252, 246, 0.96);
  --glass-border:  rgba(255, 255, 255, 0.65);
  --header-bg:     rgba(255, 252, 246, 0.78);
  --ripple:        rgba(11, 39, 78, 0.14);
  --sunset:        linear-gradient(120deg, #F1702E 0%, #F99327 45%, #FDB11F 100%);
  --sea-grad:      linear-gradient(160deg, #41A7D7 0%, #1C77A6 55%, #0B274E 100%);
  --wave-fill:     #FFFCF6;
}

[data-theme="dark"] {
  --bg-primary:    #06162C;
  --bg-secondary:  #0A2140;
  --bg-tertiary:   #0F2B52;
  --text-primary:  #F4EFE6;
  --text-secondary:#BAC4D4;
  --text-muted:    #8C99AE;
  --border:        #1D3A63;
  --accent:        #FDB11F;
  --accent-hover:  #FFC34D;
  --accent-text:   #0B274E;
  --sea:           #5CC0EA;
  --sea-soft:      #41A7D7;
  --green:         #4CC160;
  --danger:        #E05252;
  --success:       #3DBE7A;
  --warning:       #E8900A;
  --surface:       #0B2445;
  --shadow:        rgba(0, 0, 0, 0.35);
  --shadow-strong: rgba(0, 0, 0, 0.55);
  --glass:         rgba(9, 30, 58, 0.58);
  --glass-solid:   rgba(9, 30, 58, 0.97);
  --glass-border:  rgba(255, 255, 255, 0.10);
  --header-bg:     rgba(6, 22, 44, 0.78);
  --ripple:        rgba(255, 255, 255, 0.22);
  --wave-fill:     #06162C;
}

/* ---------- Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: Fraunces, Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 15px; }
.label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-muted); font-weight: 600;
}
.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scrollable { -webkit-overflow-scrolling: touch; }
[hidden] { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 768px) { .container { padding: 0 1rem; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .25s ease, background-color .25s ease, opacity .12s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.96); opacity: .92; }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 10px 24px -10px var(--shadow-strong); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-sunset { background: var(--sunset); color: #0B274E; box-shadow: 0 12px 30px -10px rgba(241, 112, 46, .55); }
.btn-sunset:hover { box-shadow: 0 16px 36px -10px rgba(241, 112, 46, .7); }
.btn-glass {
  background: rgba(255, 255, 255, .16); color: #FFFFFF; border-color: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-secondary); }
.btn-wa { background: #1F9D55; color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: 14px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: inherit;
  transition: background-color .2s ease, transform .12s ease;
}
.icon-btn:hover { background: var(--ripple); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Ripple (skill 31) ---------- */
/* Caja fija desde el inicio: agregar la onda no altera el hit-testing del tap en mobile */
.btn, .chip, .icon-btn, .ripple-target, .music-btn, .ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--ripple); transform: scale(0);
  animation: ripple-anim .6s linear;
}
.btn-primary .ripple-wave, .btn-wa .ripple-wave, .btn-glass .ripple-wave { background: rgba(255, 255, 255, .35); }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-solid);
  border: 1px solid var(--glass-border);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }
}

/* ==========================================================================
   Splash
   ========================================================================== */
#splash {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 11000;
  display: none; align-items: center; justify-content: center; flex-direction: column;
  background: #06162C; color: #FFFFFF; overflow: hidden; cursor: pointer;
  transition: opacity .7s ease, visibility .7s ease;
}
#splash.show { display: flex; }
#splash.out { opacity: 0; visibility: hidden; }
#splash .splash-bg {
  position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
  max-width: none; object-fit: cover; opacity: .72;
  animation: kenburns-a 9s ease-out forwards;
}
#splash::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(6, 22, 44, .15) 0%, rgba(6, 22, 44, .85) 75%);
}
.splash-inner { position: relative; z-index: 2; text-align: center; padding: 1.5rem; max-width: 420px; }
.splash-logo-wrap { position: relative; width: 148px; height: 148px; margin: 0 auto 1.4rem; }
.splash-logo-wrap img {
  width: 148px; height: 148px; border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  animation: splash-pop 1.1s cubic-bezier(.2, .9, .25, 1.2) both;
}
.splash-logo-wrap::before {
  content: ""; position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
  border-radius: 50%; border: 2px solid rgba(253, 177, 31, .7);
  animation: splash-ring 2.4s ease-out infinite;
}
.splash-title {
  font-family: Fraunces, Georgia, serif; font-size: 34px; font-weight: 600; letter-spacing: .01em;
  margin: 0; animation: fade-up 1s .35s both;
}
.splash-tag { color: #D7DEE9; margin: .4rem 0 1.8rem; font-size: 15px; animation: fade-up 1s .6s both; }
.splash-bar { width: 220px; height: 3px; margin: 0 auto; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 0; background: var(--sunset); transition: width .1s linear; }
.splash-hint {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem;
  font-size: 13px; color: #FEDC92; opacity: .9; animation: pulse-soft 2s ease-in-out infinite;
}
.splash-hint svg { width: 16px; height: 16px; }
@keyframes splash-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes splash-ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes pulse-soft { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ==========================================================================
   Header
   ========================================================================== */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding-top: env(safe-area-inset-top);
  transition: background-color .35s ease, box-shadow .35s ease, color .35s ease, transform .35s ease;
  color: var(--text-primary);
}
.app-header .bar {
  max-width: 1280px; margin: 0 auto; height: 68px; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.app-header.solid {
  background: var(--glass-solid);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px -18px var(--shadow-strong);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app-header.solid { background: var(--header-bg); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
}
.app-header.over-hero { color: #FFFFFF; }
.app-header.over-hero .nav-links a { color: rgba(255, 255, 255, .88); }
.app-header.over-hero .nav-links a:hover, .app-header.over-hero .nav-links a.active { color: #FFFFFF; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); flex-shrink: 0; }
.brand-name { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { display: block; font-family: Inter, sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-links a {
  position: relative; padding: .6rem .8rem; border-radius: 999px; text-decoration: none;
  color: var(--text-secondary); font-weight: 500; font-size: 14px; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 2px; border-radius: 2px;
  background: var(--sunset); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.header-actions .btn { min-height: 42px; padding: .5rem 1rem; font-size: 14px; }
#btn-instalar-app { display: none; }
.user-chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .3rem .8rem .3rem .3rem;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-primary);
  font-size: 14px; font-weight: 600;
}
.over-hero .user-chip { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .4); color: #FFFFFF; }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--sunset); color: #0B274E; font-weight: 700; font-size: 14px;
}

/* Botón de música con ecualizador animado */
.music-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  height: 44px; padding: 0 .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-primary);
  font-size: 13px; font-weight: 600;
}
.over-hero .music-btn { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .45); color: #FFFFFF; }
.music-btn svg { width: 18px; height: 18px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { display: block; width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.music-btn.playing .eq i { animation: eq 1s ease-in-out infinite; }
.music-btn.playing .eq i:nth-child(2) { animation-delay: .2s; }
.music-btn.playing .eq i:nth-child(3) { animation-delay: .4s; }
.music-btn.playing .eq i:nth-child(4) { animation-delay: .1s; }
.music-btn .ico-off { display: none; }
.music-btn.muted .ico-off { display: inline; }
.music-btn.muted .eq { display: none; }
.music-btn.pending::after {
  content: ""; position: absolute; top: 5px; right: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 0 rgba(241, 112, 46, .6); animation: dot-ping 1.6s infinite;
}
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes dot-ping { 0% { box-shadow: 0 0 0 0 rgba(241, 112, 46, .6); } 100% { box-shadow: 0 0 0 10px rgba(241, 112, 46, 0); } }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 768px) {
  .app-header .bar { height: 60px; padding: 0 1rem; gap: .5rem; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .header-actions .hide-mobile { display: none !important; }
  .music-btn .music-label { display: none; }
  .music-btn { padding: 0 .75rem; }
}

/* ==========================================================================
   Vistas / transiciones (skill 52)
   ========================================================================== */
#app { min-height: 100vh; }
.vista { animation: vista-in .45s cubic-bezier(.4, 0, .2, 1); }
#app.saliendo .vista { animation: vista-out .2s ease forwards; }
@keyframes vista-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes vista-out { to { opacity: 0; transform: translateY(-10px); } }
.page-top { padding-top: calc(68px + env(safe-area-inset-top)); }
@media (max-width: 768px) { .page-top { padding-top: calc(60px + env(safe-area-inset-top)); } }

/* Reveal al scrollear */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].in { opacity: 1; transform: none; }

/* Ken Burns */
.kb { animation: kenburns-a 22s ease-in-out infinite alternate; transform-origin: 50% 50%; }
.kb-b { animation: kenburns-b 24s ease-in-out infinite alternate; }
@keyframes kenburns-a { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
@keyframes kenburns-b { from { transform: scale(1.14) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

[data-parallax] { will-change: transform; }

/* ==========================================================================
   HOME — Hero
   ========================================================================== */
.hero {
  position: relative; height: 100vh; min-height: 620px; max-height: 1100px;
  overflow: hidden; color: #FFFFFF; background: #06162C;
}
.hero-slides { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.hero-slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0;
  transition: opacity 2.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide picture, .hero-slide img { width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; }
.hero-slide.active img { animation: kenburns-a 14s ease-out forwards; }
.hero-slide.active:nth-child(even) img { animation-name: kenburns-b; }
.hero::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 22, 44, .55) 0%, rgba(6, 22, 44, 0) 28%),
    linear-gradient(0deg, rgba(6, 22, 44, .88) 0%, rgba(6, 22, 44, .25) 45%, rgba(6, 22, 44, 0) 70%),
    linear-gradient(90deg, rgba(6, 22, 44, .45) 0%, rgba(6, 22, 44, 0) 60%);
}
.hero-content {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 14vh;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem;
  padding: .45rem .9rem .45rem .5rem; border-radius: 999px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fade-up 1s .2s both;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(253, 177, 31, .3); }
.hero-title {
  font-size: clamp(44px, 8.2vw, 112px); line-height: .95; font-weight: 600; letter-spacing: -.025em;
  max-width: 12ch; text-shadow: 0 6px 40px rgba(0, 0, 0, .35);
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.hero-title .word > span { display: inline-block; transform: translateY(105%); animation: word-up 1.1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d); }
.hero-title em { font-style: italic; font-weight: 400; background: var(--sunset); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes word-up { to { transform: none; } }
.hero-text { max-width: 560px; margin: 1.3rem 0 2rem; font-size: 17px; color: #E6ECF4; animation: fade-up 1s .9s both; }
.hero-text p { margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; animation: fade-up 1s 1.1s both; }
.hero-side {
  position: absolute; z-index: 3; right: 1.5rem; bottom: 14vh; width: 290px;
  border-radius: 22px; padding: 1.1rem 1.2rem; color: #FFFFFF;
  background: rgba(6, 22, 44, .45); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  animation: fade-up 1s 1.3s both;
}
.hero-side .label { color: #FEDC92; }
.hero-side .tide-now { display: flex; align-items: center; gap: .8rem; margin-top: .55rem; }
.hero-side .tide-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--sea-grad); }
.hero-side .tide-ico svg { width: 22px; height: 22px; }
.hero-side strong { font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 600; display: block; line-height: 1.1; }
.hero-side small { color: #C9D3E2; font-size: 13px; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 7.5vh; transform: translateX(-50%); display: flex; gap: .5rem; }
.hero-dots button { width: 28px; height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; }
.hero-dots button::before { content: ""; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: background .3s; }
.hero-dots button.active::before { background: var(--gold); }
.scroll-cue {
  position: absolute; z-index: 4; left: 1.5rem; bottom: 104px; display: flex; align-items: center; gap: .6rem;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.scroll-cue .mouse { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #FFFFFF; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* Olas animadas en el borde inferior del hero */
.waves { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; height: 90px; pointer-events: none; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.waves .w1 { animation: wave-move 18s linear infinite; opacity: .35; }
.waves .w2 { animation: wave-move 12s linear infinite reverse; opacity: .55; }
.waves .w3 { animation: wave-move 9s linear infinite; }
.waves path { fill: var(--wave-fill); transition: fill .4s ease; }
@keyframes wave-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1300px) { .scroll-cue { display: none; } }
@media (max-width: 1024px) {
  .hero-side { display: none; }
}
@media (max-width: 768px) {
  .hero { min-height: 560px; height: 100vh; }
  .hero-content { bottom: 15vh; padding: 0 1rem; }
  .hero-text { font-size: 15px; margin: 1rem 0 1.5rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .hero-dots { bottom: 8.5vh; }
  .waves { height: 60px; }
}

/* ==========================================================================
   HOME — Secciones
   ========================================================================== */
.sec { position: relative; padding: 7rem 0; }
.sec-alt { background: var(--bg-secondary); }
@media (max-width: 768px) { .sec { padding: 4.25rem 0; } }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.sec-index { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.sec-index .num { font-family: Fraunces, Georgia, serif; font-style: italic; color: var(--orange); font-size: 18px; }
.sec-index .line { width: 48px; height: 1px; background: var(--border); }
.sec-title { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -.02em; max-width: 16ch; }
.sec-title em { font-style: italic; font-weight: 400; color: var(--sea); }
.prose { color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--sea); font-weight: 600; }
.prose ul { padding-left: 1.2rem; }
@media (max-width: 768px) { .sec-head { margin-bottom: 2rem; } .prose { font-size: 15px; } }

/* Bienvenida — composición asimétrica con arco */
.welcome { display: grid; grid-template-columns: 5fr 6fr; gap: 5rem; align-items: center; }
.arch {
  position: relative; border-radius: 999px 999px 28px 28px; overflow: hidden;
  height: 620px; box-shadow: 0 40px 80px -40px var(--shadow-strong);
}
.arch img, .arch picture { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; }
.arch-wrap { position: relative; }
.arch-wrap::before {
  content: ""; position: absolute; top: 2.5rem; left: -1.5rem; right: 1.5rem; bottom: -1.5rem;
  border-radius: 999px 999px 28px 28px; border: 1px solid var(--orange); opacity: .45;
}
.float-card {
  position: absolute; right: -2.5rem; bottom: 3rem; z-index: 2; min-width: 230px;
  border-radius: 20px; padding: 1rem 1.2rem; box-shadow: 0 24px 50px -20px var(--shadow-strong);
}
.float-card .row { display: flex; align-items: center; gap: .75rem; }
.float-card .row + .row { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.float-card .ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; flex-shrink: 0; }
.float-card .ico svg { width: 20px; height: 20px; }
.float-card strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 20px; line-height: 1.1; }
.float-card small { color: var(--text-muted); font-size: 12px; }
.welcome .sec-title { margin-bottom: 1.5rem; }
.welcome-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.signature { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; }
.signature img { width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 6px 18px var(--shadow); }
@media (max-width: 1024px) { .welcome { gap: 3rem; } .float-card { right: -.5rem; } }
@media (max-width: 768px) {
  .welcome { grid-template-columns: 1fr; gap: 2.5rem; }
  .arch { height: 440px; }
  .arch-wrap { margin: 0 1rem; }
  .float-card { right: -1rem; bottom: 1.5rem; min-width: 200px; }
}

/* Servicios — tiles */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  position: relative; padding: 1.6rem 1.5rem 1.5rem; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--sunset);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px var(--shadow-strong); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service .s-ico {
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center; color: #FFFFFF; background: var(--sea-grad);
}
.service:nth-child(3n+2) .s-ico { background: var(--sunset); color: #0B274E; }
.service:nth-child(3n) .s-ico { background: linear-gradient(150deg, #5BBF6A, #2E8C3E); }
.service .s-ico svg { width: 26px; height: 26px; }
.service .s-num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: Fraunces, Georgia, serif; font-style: italic; color: var(--text-muted); font-size: 14px; }
.service p { margin: 0; font-size: 16px; font-weight: 500; color: var(--text-primary); line-height: 1.45; }
.services-note { margin-top: 1.5rem; color: var(--text-muted); font-size: 14px; }
.services-note p { margin: 0; }
@media (max-width: 1024px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service .s-num { display: none; } .services { grid-template-columns: 1fr; gap: .9rem; } .service { padding: 1.25rem; display: flex; align-items: center; gap: 1rem; } .service .s-ico { margin: 0; flex-shrink: 0; } }

/* Alojamiento — paneles desfasados */
.stays { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.stay:nth-child(2) { margin-top: 6rem; }
.stay-media {
  position: relative; height: 520px; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 70px -40px var(--shadow-strong);
}
.stay-media picture, .stay-media img { width: 100%; height: 100%; object-fit: cover; }
.stay-media img { transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); transform: scale(1.06); }
.stay:hover .stay-media img { transform: scale(1.14); }
.stay-media::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(6, 22, 44, .75) 0%, rgba(6, 22, 44, 0) 55%); }
.stay-tag {
  position: absolute; z-index: 2; top: 1.2rem; left: 1.2rem; padding: .4rem .85rem; border-radius: 999px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #0B274E; background: #FEDC92;
}
.stay-body {
  position: relative; z-index: 3; margin: -6rem 1.5rem 0; padding: 1.6rem 1.6rem 1.5rem;
  border-radius: 24px; box-shadow: 0 30px 60px -30px var(--shadow-strong);
}
.stay-body h3 { font-size: 30px; margin-bottom: .6rem; }
.stay-body .prose { font-size: 15px; }
.stay-body .btn { margin-top: 1.2rem; }
@media (max-width: 768px) {
  .stays { grid-template-columns: 1fr; gap: 2.5rem; }
  .stay:nth-child(2) { margin-top: 0; }
  .stay-media { height: 360px; border-radius: 22px; }
  .stay-body { margin: -4.5rem .75rem 0; padding: 1.3rem; }
  .stay-body h3 { font-size: 24px; }
}

/* Banda parallax full-bleed */
.band { position: relative; min-height: 640px; overflow: hidden; color: #FFFFFF; display: flex; align-items: center; background: #06162C; }
.band-bg { position: absolute; left: 0; right: 0; top: -20%; height: 140%; }
.band-bg picture, .band-bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(6, 22, 44, .82) 0%, rgba(6, 22, 44, .35) 60%, rgba(6, 22, 44, .1) 100%); }
.band .container { position: relative; z-index: 2; width: 100%; }
.band-card { max-width: 560px; padding: 2.2rem; border-radius: 28px; background: rgba(6, 22, 44, .42); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.band-card .label { color: #FEDC92; }
.band-card h2 { font-size: clamp(30px, 4vw, 50px); margin: .8rem 0 1rem; }
.band-card .prose { color: #E3E9F2; }
.band-card .prose strong { color: #FFFFFF; }
@media (max-width: 768px) { .band { min-height: 560px; } .band-card { padding: 1.5rem; border-radius: 22px; } }

/* Mareas — widget */
.tides { display: grid; grid-template-columns: 4fr 7fr; gap: 3rem; align-items: center; }
.tide-panel { position: relative; border-radius: 28px; overflow: hidden; padding: 1.75rem; background: var(--sea-grad); color: #FFFFFF; box-shadow: 0 40px 80px -40px rgba(11, 39, 78, .6); }
.tide-panel-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: .22; }
.tide-panel-bg img, .tide-panel-bg picture { width: 100%; height: 100%; object-fit: cover; }
.tide-panel > *:not(.tide-panel-bg) { position: relative; z-index: 1; }
.tide-panel .label { color: #FEDC92; }
.tide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.tide-next strong { font-family: Fraunces, Georgia, serif; font-size: 44px; line-height: 1; display: block; margin-top: .3rem; }
.tide-next span { color: #D7E6F3; font-size: 14px; }
.tide-badge { font-size: 12px; padding: .35rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #FFFFFF; }
.tide-chart { margin: 1.4rem -.25rem .8rem; height: 170px; }
.tide-chart svg { width: 100%; height: 100%; overflow: visible; }
.tide-chart .curve { fill: none; stroke: #FEDC92; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2.4s ease; }
.tide-chart.in .curve { stroke-dashoffset: 0; }
.tide-chart .area { fill: url(#tideGrad); opacity: 0; transition: opacity 1.4s .8s ease; }
.tide-chart.in .area { opacity: 1; }
.tide-chart .pt { fill: #FFFFFF; }
.tide-chart .pt-lbl { fill: #FFFFFF; font-size: 11px; font-family: Inter, sans-serif; font-weight: 600; }
.tide-chart .now-line { stroke: #F1702E; stroke-width: 2; stroke-dasharray: 4 4; }
.tide-chart .now-dot { fill: #F1702E; animation: pulse-soft 1.6s infinite; }
.tide-chart .axis { fill: rgba(255, 255, 255, .7); font-size: 11px; font-family: Inter, sans-serif; }
.tide-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.tide-item { padding: .75rem; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.tide-item .t { display: flex; align-items: center; gap: .3rem; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #FEDC92; font-weight: 700; }
.tide-item .t svg { width: 14px; height: 14px; }
.tide-item strong { display: block; font-size: 20px; font-family: Fraunces, Georgia, serif; margin-top: .2rem; }
.tide-item small { color: #D7E6F3; font-size: 12px; }
.tide-note { margin-top: .9rem; font-size: 12px; color: #D7E6F3; display: flex; align-items: center; gap: .4rem; }
.tide-note svg { width: 14px; height: 14px; }
@media (max-width: 1024px) { .tides { grid-template-columns: 1fr; gap: 2rem; } }
@media (max-width: 560px) { .tide-list { grid-template-columns: repeat(2, 1fr); } .tide-panel { padding: 1.25rem; border-radius: 22px; } .tide-next strong { font-size: 36px; } }

/* Galería preview — mosaico */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; }
.mosaic .m { position: relative; border-radius: 22px; overflow: hidden; cursor: pointer; background: var(--bg-tertiary); }
.mosaic .m:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .m:nth-child(4) { grid-row: span 2; }
.mosaic .m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s ease; }
.mosaic .m:hover img { transform: scale(1.08); }
.mosaic .m::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(6, 22, 44, .6), rgba(6, 22, 44, 0) 50%); opacity: 0; transition: opacity .4s ease; }
.mosaic .m:hover::after { opacity: 1; }
.mosaic .m .cap { position: absolute; z-index: 2; left: 1rem; bottom: .9rem; right: 1rem; color: #FFFFFF; font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(8px); transition: all .4s ease; }
.mosaic .m:hover .cap { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: .6rem; }
  .mosaic .m { border-radius: 16px; }
  .mosaic .m:nth-child(4) { grid-row: span 1; }
  .mosaic .m .cap { opacity: 1; transform: none; font-size: 12px; }
  .mosaic .m::after { opacity: 1; }
}

/* Reseñas */
.reviews-wrap { display: grid; grid-template-columns: 3fr 8fr; gap: 3rem; align-items: start; }
.score { padding: 2rem; border-radius: 28px; text-align: center; background: var(--surface); border: 1px solid var(--border); position: sticky; top: 100px; }
.score .big { font-family: Fraunces, Georgia, serif; font-size: 72px; line-height: 1; font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.stars .off { color: var(--border); }
.reviews { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 340px; scroll-snap-align: start; padding: 1.6rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.review .q { position: absolute; top: .6rem; right: 1.2rem; font-family: Fraunces, Georgia, serif; font-size: 70px; line-height: 1; color: var(--orange); opacity: .25; }
.review p { color: var(--text-secondary); margin: .9rem 0 1.2rem; font-size: 15px; }
.review .who { display: flex; align-items: center; gap: .7rem; }
.review .who .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sea-grad); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review .who small { display: block; color: var(--text-muted); font-size: 12px; }
@media (max-width: 1024px) { .reviews-wrap { grid-template-columns: 1fr; gap: 1.5rem; } .score { position: static; display: flex; align-items: center; gap: 1.2rem; text-align: left; padding: 1.25rem 1.5rem; } .score .big { font-size: 54px; } }
@media (max-width: 560px) { .review { flex-basis: 84%; } }

/* YouTube */
.yt { display: grid; grid-template-columns: 8fr 4fr; gap: 1.25rem; }
.yt-player { position: relative; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px var(--shadow-strong); }
.yt-player .ratio { position: relative; padding-top: 56.25%; }
.yt-player .ratio > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.yt-player img { object-fit: cover; transition: transform 1.2s ease; }
.yt-player:hover img { transform: scale(1.05); }
.yt-play { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(0deg, rgba(6, 22, 44, .7), rgba(6, 22, 44, .05) 60%); color: #FFFFFF; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 1.5rem; text-align: left; }
.yt-play .pbtn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .5); display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s ease, background .3s ease; }
.yt-play:hover .pbtn { transform: scale(1.08); background: rgba(241, 112, 46, .85); }
.yt-play .pbtn svg { width: 34px; height: 34px; margin-left: 4px; fill: #FFFFFF; }
.yt-play .tt { font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 600; max-width: 90%; }
.yt-list { display: flex; flex-direction: column; gap: .75rem; max-height: 460px; overflow-y: auto; padding-right: .25rem; }
.yt-item { display: flex; gap: .8rem; align-items: center; padding: .5rem; border-radius: 16px; border: 1px solid transparent; background: transparent; text-align: left; color: var(--text-primary); transition: background .25s ease, border-color .25s ease; }
.yt-item:hover, .yt-item.active { background: var(--surface); border-color: var(--border); }
.yt-item img { width: 120px; height: 68px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.yt-item span { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .yt { grid-template-columns: 1fr; } .yt-list { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: .5rem; } .yt-item { flex: 0 0 240px; flex-direction: column; align-items: flex-start; } .yt-item img { width: 100%; height: 130px; } }

/* Cómo llegar + tarifas */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 3rem; align-items: stretch; }
.map-frame { border-radius: 28px; overflow: hidden; min-height: 420px; border: 1px solid var(--border); box-shadow: 0 40px 70px -40px var(--shadow-strong); background: var(--bg-tertiary); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(1.1); }
[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.price-card { margin-top: 2rem; padding: 1.6rem; border-radius: 24px; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.price-card::before { content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--sunset); opacity: .14; }
.price-card h3 { font-size: 24px; margin-bottom: .7rem; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; } .map-frame, .map-frame iframe { min-height: 320px; } }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; border-radius: 22px; text-decoration: none; color: #FFFFFF;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .35s ease, background .35s ease;
}
.contact-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .18); }
.contact-card .c-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.contact-card .c-ico svg { width: 22px; height: 22px; }
.contact-card strong { font-size: 16px; }
.contact-card small { color: #D7E0EC; font-size: 13px; word-break: break-word; }
.band-contact { min-height: 0; padding: 7rem 0; }
.band-contact::after { background: linear-gradient(180deg, rgba(6, 22, 44, .78), rgba(6, 22, 44, .9)); }
.band-contact h2 { font-size: clamp(32px, 5vw, 62px); max-width: 14ch; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } .band-contact { padding: 4.5rem 0; } }

/* Sección genérica (para claves nuevas que cree el admin) */
.generic { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.generic .g-img { border-radius: 26px; overflow: hidden; height: 420px; }
.generic .g-img img, .generic .g-img picture { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .generic { grid-template-columns: 1fr; gap: 1.5rem; } .generic .g-img { height: 280px; } }

/* Footer */
.site-footer { background: #06162C; color: #C9D3E2; padding: 4.5rem 0 2.5rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #F1702E, #FDB11F, #41A7D7, #37A94A); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; background: #FFFFFF; }
.footer-brand strong { font-family: Fraunces, Georgia, serif; font-size: 24px; color: #FFFFFF; display: block; }
.site-footer h4 { font-family: Inter, sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #FEDC92; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; color: #C9D3E2; text-decoration: none; font-size: 14px; }
.site-footer li a:hover { color: #FFFFFF; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 12px; color: #8C99AE; }
.footer-bottom a { color: #C9D3E2; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } .site-footer { padding-bottom: 6.5rem; } }

/* ==========================================================================
   Galería (vista)
   ========================================================================== */
.gal-hero { position: relative; height: 46vh; min-height: 340px; overflow: hidden; color: #FFFFFF; display: flex; align-items: flex-end; background: #06162C; }
.gal-hero .bg { position: absolute; left: 0; right: 0; top: -10%; height: 120%; }
.gal-hero .bg img, .gal-hero .bg picture { width: 100%; height: 100%; object-fit: cover; }
.gal-hero::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(6, 22, 44, .85), rgba(6, 22, 44, .2) 70%); }
.gal-hero .container { position: relative; z-index: 2; width: 100%; padding-bottom: 2.5rem; }
.gal-hero h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.02em; }
.gal-hero .label { color: #FEDC92; }
.filters {
  position: -webkit-sticky; position: sticky; top: calc(68px + env(safe-area-inset-top)); z-index: 50;
  display: flex; gap: .5rem; padding: 1rem 0; overflow-x: auto; scrollbar-width: none;
  background: var(--bg-primary); transition: background .4s ease;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .25s ease;
}
.chip .n { font-size: 12px; padding: .05rem .45rem; border-radius: 999px; background: var(--bg-tertiary); color: var(--text-muted); }
.chip.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.chip.active .n { background: rgba(255, 255, 255, .2); color: inherit; }
@media (max-width: 768px) { .filters { top: calc(60px + env(safe-area-inset-top)); } }
.masonry { column-count: 3; column-gap: 1rem; padding: 1rem 0 4rem; }
.masonry .tile { break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 1rem; position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; background: var(--bg-tertiary); }
.masonry .tile img { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .6s ease; opacity: 0; }
.masonry .tile img.loaded { opacity: 1; }
.masonry .tile:hover img { transform: scale(1.06); }
.masonry .tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; color: #FFFFFF;
  background: linear-gradient(0deg, rgba(6, 22, 44, .75), rgba(6, 22, 44, 0));
  opacity: 0; transform: translateY(10px); transition: all .4s ease; font-size: 14px; font-weight: 600;
}
.masonry .tile .cap small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #FEDC92; font-weight: 600; }
.masonry .tile:hover .cap { opacity: 1; transform: none; }
@media (max-width: 1024px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 2; column-gap: .6rem; } .masonry .tile { margin-bottom: .6rem; border-radius: 14px; } .masonry .tile .cap { opacity: 1; transform: none; padding: 1.5rem .6rem .5rem; font-size: 12px; } }

/* Lightbox */
.lightbox {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10500; display: none;
  background: rgba(3, 12, 26, .96); color: #FFFFFF; flex-direction: column;
  opacity: 0; transition: opacity .35s ease;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .lightbox { background: rgba(3, 12, 26, .88); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}
.lightbox.show { display: flex; }
.lightbox.visible { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(.75rem + env(safe-area-inset-top)) 1rem .75rem; }
.lb-top .count { font-size: 13px; letter-spacing: .12em; color: #C9D3E2; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: pan-y; }
.lb-stage img { max-width: 92vw; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
.lb-stage img.enter { opacity: 0; transform: scale(.94); }
.lb-nav { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #FFFFFF; display: flex; align-items: center; justify-content: center; z-index: 2; }
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-prev { left: 1.25rem; } .lb-next { right: 1.25rem; }
.lb-cap { padding: 1rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); text-align: center; }
.lb-cap strong { font-family: Fraunces, Georgia, serif; font-size: 20px; display: block; }
.lb-cap small { color: #C9D3E2; }
.lightbox .icon-btn { color: #FFFFFF; }
@media (max-width: 768px) { .lb-nav { display: none; } .lb-stage img { max-width: 100vw; border-radius: 0; } }

/* ==========================================================================
   Estados (skill 04)
   ========================================================================== */
.empty-state, .error-state {
  text-align: center; padding: 3rem 1.5rem; border-radius: 26px;
  border: 1px dashed var(--border); background: var(--bg-secondary); max-width: 640px; margin: 0 auto;
}
.empty-state .empty-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--sea-grad); color: #FFFFFF; }
.empty-state .empty-icon svg { width: 32px; height: 32px; }
.empty-state h3, .error-state h3 { font-size: 22px; margin-bottom: .5rem; }
.empty-state p, .error-state p { color: var(--text-secondary); margin: 0 auto 1.4rem; max-width: 46ch; }
.empty-state .actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 16px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ==========================================================================
   Auth (login / registro)
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-media { position: relative; overflow: hidden; color: #FFFFFF; background: #06162C; }
.auth-media picture, .auth-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.auth-media::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(6, 22, 44, .85), rgba(6, 22, 44, .1) 60%); }
.auth-media .quote { position: absolute; z-index: 2; left: 3rem; right: 3rem; bottom: 3rem; }
.auth-media .quote h2 { font-size: clamp(32px, 3.6vw, 52px); max-width: 14ch; }
.auth-media .quote p { color: #D7E0EC; max-width: 40ch; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 6.5rem 1.5rem 3rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .brand-mini { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.auth-card .brand-mini img { width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 8px 22px var(--shadow); }
.auth-card h1 { font-size: 34px; margin-bottom: .4rem; }
.auth-tabs { display: flex; padding: 4px; border-radius: 999px; background: var(--bg-secondary); border: 1px solid var(--border); margin: 1.5rem 0; }
.auth-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font-weight: 600; transition: all .25s ease; }
.auth-tabs button.active { background: var(--surface); color: var(--text-primary); box-shadow: 0 6px 16px -8px var(--shadow-strong); }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; }
.field .req { color: var(--orange); }
.input {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-primary);
  font: inherit; font-size: 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { border-color: var(--sea-soft); box-shadow: 0 0 0 4px rgba(65, 167, 215, .18); }
.input.invalid { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: 13px; margin-top: .3rem; min-height: 0; }
.password-field { position: relative; }
.password-field .input { padding-right: 3.2rem; }
.toggle-password { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.auth-card .btn-block { width: 100%; margin-top: .6rem; }
.auth-foot { margin-top: 1.4rem; font-size: 14px; color: var(--text-muted); text-align: center; }
.auth-foot a { cursor: pointer; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-media { height: 260px; }
  .auth-media .quote { left: 1rem; right: 1rem; bottom: 1.25rem; }
  .auth-media .quote h2 { font-size: 28px; }
  .auth-media .quote p { display: none; }
  .auth-form-wrap { padding: 2rem 1rem 6.5rem; }
}
@media (max-width: 400px) { .row-2 { grid-template-columns: 1fr; } }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Mobile footer nav (skill 03/31)
   ========================================================================== */
.app-footer-nav { display: none; }
@media (max-width: 768px) {
  .app-footer-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; display: flex;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass-solid); border-top: 1px solid var(--border);
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .app-footer-nav { background: var(--header-bg); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
  }
  .app-footer-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 44px; font-size: 12px; font-weight: 500; color: var(--text-muted); text-decoration: none; position: relative;
  }
  .app-footer-nav a svg { width: 22px; height: 22px; transition: transform .25s ease; }
  .app-footer-nav a.active { color: var(--text-primary); }
  .app-footer-nav a.active svg { transform: translateY(-2px); color: var(--orange); }
  .app-footer-nav a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--sunset); }
  .main-content { padding-bottom: 72px; }
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 22px; z-index: 950; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #1F9D55; color: #FFFFFF;
  box-shadow: 0 14px 30px -8px rgba(31, 157, 85, .6); text-decoration: none; transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 2px solid #1F9D55; animation: splash-ring 2.4s ease-out infinite; }
@media (max-width: 768px) { .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; width: 52px; height: 52px; } }

/* ==========================================================================
   Modales + Ver más (skill 02 / 31)
   ========================================================================== */
.modal-wrapper {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000;
  background: rgba(3, 12, 26, .55); display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; transition: opacity .25s ease;
}
.modal-wrapper.visible { opacity: 1; }
.modal {
  background: var(--bg-primary); color: var(--text-primary); border-radius: 22px; width: 100%; max-width: 560px;
  max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  transform: translateY(20px) scale(.98); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.modal-wrapper.visible .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem .5rem 1.5rem; }
.modal-head h3 { font-size: 22px; }
.modal-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem 1.5rem; -webkit-overflow-scrolling: touch; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; background: var(--bg-primary); border-radius: 0 0 22px 22px; }
@media (max-width: 768px) {
  .modal-wrapper { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .modal-footer { border-radius: 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .modal-body { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.menu-grid a, .menu-grid button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 92px;
  padding: .75rem .5rem; border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-primary); text-decoration: none; font-size: 13px; font-weight: 600; text-align: center;
}
.menu-grid a svg, .menu-grid button svg { width: 24px; height: 24px; color: var(--sea); }
.menu-grid .hl { background: var(--sunset); border-color: transparent; color: #0B274E; }
.menu-grid .hl svg { color: #0B274E; }
.ios-steps { margin: 0; padding: 0; list-style: none; }
.ios-steps li { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.ios-steps li:last-child { border-bottom: 0; }
.ios-steps .n { width: 32px; height: 32px; border-radius: 50%; background: var(--sunset); color: #0B274E; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ios-steps svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--sea); }

/* Toasts (sin alert) */
.toast-stack { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 12000; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: calc(100% - 2rem); max-width: 420px; }
.toast {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border-radius: 14px; font-size: 14px; font-weight: 500;
  color: #FFFFFF; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); animation: toast-in .35s cubic-bezier(.2, .8, .2, 1);
}
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.toast-error { background: var(--danger); }
.toast-success { background: var(--success); }
.toast-warning { background: var(--warning); }
.toast-info { background: #0B274E; }
.toast.out { opacity: 0; transform: translateY(10px); transition: all .3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* Pull to refresh */
.ptr { position: fixed; top: -56px; left: 50%; margin-left: -22px; z-index: 9990; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px var(--shadow-strong); transition: top .2s ease; }
.ptr svg { width: 20px; height: 20px; }
.ptr.spin svg { animation: spin .8s linear infinite; }

/* Offline banner */
#offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 10001; background: #B8650A; color: #FFFFFF; text-align: center; padding: .5rem; font-size: 13px; display: none; }

/* Standalone (notch) */
.modo-app .app-header { padding-top: env(safe-area-inset-top); }

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .word > span { transform: none; }
}
