:root {
    color-scheme: dark;
    --bg: #0d0d0f;
    --bg-soft: #17171a;
    --gold: #ffc247;
    --gold-soft: rgba(255, 194, 71, 0.35);
    --amber: #e07b0e;
    --amber-soft: rgba(224, 123, 14, 0.35);
    --text: #f5f5f7;
    --text-dim: #b8b8c4;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.04);
    --radius: 18px;
    --nav-h: 84px;
}

@property --ring-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Sora', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

em {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-style: italic;
    line-height: 1.15;
    padding-right: 0.15em;
    background: linear-gradient(90deg, var(--gold), var(--amber), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientMove 4s linear infinite;
}

/* Nav */

.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: calc(40px + env(safe-area-inset-right, 0px));
    padding-left: calc(40px + env(safe-area-inset-left, 0px));
    z-index: 50;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.85), transparent);
    backdrop-filter: blur(6px);
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    position: relative;
    height: 36px;
    width: auto;
    z-index: 1;
}

/* Real radial-gradient glow behind the logo instead of filter: drop-shadow() —
   iOS Safari renders chained drop-shadow() filters on transparent PNGs as a
   blocky, hard-edged smear instead of a soft blur. A background glow behind
   the image looks identical across browsers. */
.brand::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
    background: radial-gradient(circle, var(--gold-soft) 0%, var(--amber-soft) 45%, transparent 72%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
}

.brand-name { font-size: 15px; letter-spacing: 0.5px; color: var(--text); }

.main-menu { display: flex; gap: 32px; font-size: 14px; color: var(--text-dim); }

.main-menu a {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.main-menu a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--amber));
    transition: width 0.3s ease;
}

.main-menu a:hover, .main-menu a.active { color: var(--text); }
.main-menu a:hover::after, .main-menu a.active::after { width: 100%; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px) scale(1.03); }

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--amber), var(--gold));
    background-size: 220% auto;
    background-position: 0% center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 194, 71, 0.25);
    transition: transform 0.2s, box-shadow 0.3s, background-position 0.5s;
}

.btn-primary:hover {
    background-position: 100% center;
    box-shadow: 0 8px 32px var(--gold-soft), 0 0 40px var(--amber-soft);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Slider mechanics */

.slider-viewport {
    position: fixed;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
}

.slider-viewport.dragging { cursor: grabbing; }

.slider-track {
    display: flex;
    height: 100%;
    width: 500%;
    will-change: transform;
    transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-track.no-transition { transition: none; }

.slide {
    position: relative;
    width: 20%;
    height: 100%;
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-top: calc(var(--nav-h) + 24px + env(safe-area-inset-top, 0px));
    padding-right: calc(8vw + env(safe-area-inset-right, 0px));
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(8vw + env(safe-area-inset-left, 0px));
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slide-portfolio, .slide-store {
    overflow-y: auto;
}

.slide::-webkit-scrollbar { display: none; }

/* Glow effects */

.glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.glow.small { width: 40vw; height: 40vw; opacity: 0.4; }
.glow-pink { background: var(--gold); top: -10%; left: -10%; animation: floatGlow 9s ease-in-out infinite; }
.glow-blue { background: var(--amber); bottom: -15%; right: -10%; animation: floatGlow 11s ease-in-out infinite reverse; }

/* Hero */

.slide-hero {
    display: flex;
    align-items: center;
    gap: 6vw;
}

.hero-photo {
    position: relative;
    z-index: 1;
    flex: 0 0 44%;
    perspective: 1000px;
}

.photo-ring {
    position: relative;
    padding: 3px;
    border-radius: calc(var(--radius) + 5px);
    overflow: hidden;
}

.photo-ring::before {
    content: '';
    position: absolute;
    /* Exactly the size of the ring itself — no oversized/transformed box to
       clip. iOS Safari was unreliable at clipping a huge (200vmax),
       transform-rotated pseudo-element inside overflow:hidden (it would
       sometimes render on top of the card instead of staying confined to
       the border), which no combination of isolation/mask fixed. Instead
       of rotating the element, we animate the gradient's own start angle
       via a registered CSS property (@property below) — the box never
       needs to be bigger than its container, so there is nothing to clip
       or mis-stack in the first place. */
    inset: 0;
    background: conic-gradient(from var(--ring-angle, 0deg), var(--gold), #ffffff, var(--amber), #ffffff, var(--gold));
    animation: ringSpin 5s linear infinite;
}

.hero-photo-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 3.6;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(255, 194, 71, 0.25), rgba(224, 123, 14, 0.25));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 rgba(255, 194, 71, 0);
    transition: transform 0.15s ease-out, box-shadow 0.4s ease;
    will-change: transform;
}

.hero-photo:hover .hero-photo-frame {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 50px var(--gold-soft);
}

.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-photo-frame.no-photo img { display: none; }
.hero-photo-frame.no-photo::after {
    content: '';
    display: block;
    height: 100%;
    background: url('/static/images/logo-n.png') no-repeat center / 42% auto;
    opacity: 0.18;
}

.hero-copy { position: relative; z-index: 1; flex: 1; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.hero-copy h1 {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
    margin: 0 0 20px;
    font-weight: 800;
}

.lead { color: var(--text-dim); font-size: 17px; line-height: 1.6; max-width: 480px; }

.hero-actions { display: flex; gap: 16px; margin-top: 32px; }

/* Section headings */

.section-head { margin-bottom: 40px; position: relative; z-index: 1; }

.slide-portfolio .section-head, .slide-store .section-head { max-width: 1200px; margin: 0 auto 40px; }

.eyebrow {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 8px; font-weight: 800; }

/* Grids & cards */

.grid {
    display: grid;
    gap: 28px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-portfolio, .grid-store { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
    .grid-portfolio, .grid-store { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-portfolio, .grid-store { grid-template-columns: 1fr; }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}

.card:hover { transform: translateY(-4px); border-color: var(--gold-soft); }

.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.no-image img { display: none; }
.card-media.no-image {
    background: linear-gradient(160deg, rgba(255, 194, 71, 0.18), rgba(224, 123, 14, 0.18));
}
.card-media.no-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/images/logo-n.png') no-repeat center / 34% auto;
    opacity: 0.18;
}

.card-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(10, 10, 20, 0.75);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-body { padding: 20px; }
.card-body h3 { margin: 0 0 8px; font-size: 18px; }
.card-body p { margin: 0 0 12px; color: var(--text-dim); font-size: 14px; line-height: 1.5; }

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-desc.is-expanded { -webkit-line-clamp: unset; overflow: visible; }

.card-more-toggle {
    display: inline-block;
    margin: -6px 0 12px;
    padding: 0;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.card-more-toggle:hover { color: var(--amber); text-decoration: underline; }

.card-links { display: flex; gap: 16px; font-size: 13px; }
.card-links a { color: var(--amber); }
.card-links a:hover { color: var(--gold); }

.product-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.price { font-weight: 700; font-size: 18px; }

.empty-state { color: var(--text-dim); grid-column: 1 / -1; }

/* Booking form */

.slide-booking { display: flex; align-items: center; justify-content: center; }

.booking-layout {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.booking-layout .section-head { flex: 1 1 300px; max-width: 360px; min-width: 0; margin-bottom: 0; }

.booking-form-ring {
    flex: 1 1 420px;
    max-width: 460px;
    min-width: 0;
}

.booking-form {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.map-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(224, 123, 14, 0.25), rgba(255, 194, 71, 0.25));
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    transition: box-shadow 0.4s ease;
}

.map-frame:hover { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 50px var(--amber-soft); }

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(0.9) grayscale(0.15);
}

.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-split[hidden] { display: none; }
.form-row-split > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

/* Teléfono needs room for a flag+prefix box AND the number itself — give
   it noticeably more of the row than Correo, which reads fine narrower. */
.form-row-split-contact { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

/* Native <input type="date"> and <select> render at slightly different
   intrinsic heights (especially on iOS) even with identical padding —
   force them to match exactly so the Fecha/Hora row lines up. */
.form-row-split-datetime input[type="date"] {
    height: 38px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 38px;
}

.form-row-split-datetime select {
    height: 44px;
}

.form-row label { font-size: 12px; color: var(--text-dim); }

.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

.form-row textarea { min-height: 52px; }

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-row select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
    background-position: calc(100% - 20px) center, calc(100% - 15px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.phone-field { display: flex; gap: 8px; min-width: 0; }
.phone-field input { flex: 1; min-width: 0; padding-left: 10px; padding-right: 10px; }

.phone-prefix { position: relative; flex: 0 0 84px; }

.phone-prefix-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 6px 9px 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}
.phone-prefix-toggle:focus { outline: none; border-color: var(--gold); }

.phone-prefix-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}

.phone-prefix-caret { margin-left: auto; color: var(--text-dim); font-size: 11px; }

.phone-prefix-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 220px;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.phone-prefix-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text);
}
.phone-prefix-option:hover,
.phone-prefix-option.is-active { background: var(--card-bg); }
.phone-prefix-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .phone-prefix-list { width: 100%; }
}

.form-row select option {
    background: var(--bg-soft);
    color: var(--text);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-check a { color: var(--amber); }
.form-check a:hover { color: var(--gold); }

.booking-form button[type="submit"] { align-self: flex-start; margin-top: 8px; }

.form-feedback { font-size: 14px; min-height: 20px; }
.form-feedback.success { color: #4ade80; }
.form-feedback.error { color: #f87171; }

/* Contact */

.slide-contact { display: flex; align-items: center; justify-content: center; }

.contact-layout {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.contact-content { max-width: 420px; min-width: 0; }
.contact-links { display: flex; gap: 16px; margin: 28px 0 32px; flex-wrap: wrap; }
.social-links { display: flex; gap: 24px; color: var(--text-dim); font-size: 14px; }

.map-frame-sm {
    width: 560px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}
.social-links a:hover { color: var(--text); }

/* Arrows & dots */

.slide-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}

.slide-arrow:hover { background: rgba(255, 255, 255, 0.12); }
.slide-arrow:disabled { opacity: 0.25; cursor: default; }
.slide-arrow-left { left: calc(20px + env(safe-area-inset-left, 0px)); }
.slide-arrow-right { right: calc(20px + env(safe-area-inset-right, 0px)); }

.slide-dots {
    position: fixed;
    right: calc(26px + env(safe-area-inset-right, 0px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 40;
}

.dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.dot.active {
    background: linear-gradient(135deg, var(--gold), var(--amber));
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--gold-soft);
}

/* One-time "how to navigate" hint (mobile only — desktop already shows the menu/arrows) */

.swipe-hint {
    position: fixed;
    left: 50%;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(20, 20, 22, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-dim);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
}

.swipe-hint.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.swipe-hint-arrows {
    display: inline-flex;
    gap: 3px;
    font-weight: 700;
    color: var(--gold);
    animation: swipeHintPulse 1.4s ease-in-out infinite;
}

@keyframes swipeHintPulse {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(4px); opacity: 1; }
}

/* Entrance animations: replay every time a slide becomes active */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide.is-active .reveal { opacity: 1; transform: translateY(0); }

.slide.is-active .reveal:nth-child(1) { transition-delay: 0.05s; }
.slide.is-active .reveal:nth-child(2) { transition-delay: 0.15s; }
.slide.is-active .reveal:nth-child(3) { transition-delay: 0.25s; }
.slide.is-active .reveal:nth-child(4) { transition-delay: 0.35s; }
.slide.is-active .reveal:nth-child(5) { transition-delay: 0.45s; }

.grid.reveal-grid .card {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide.is-active .grid.reveal-grid .card { opacity: 1; transform: translateY(0) scale(1); }

.slide.is-active .grid.reveal-grid .card:nth-child(1) { transition-delay: 0.1s; }
.slide.is-active .grid.reveal-grid .card:nth-child(2) { transition-delay: 0.18s; }
.slide.is-active .grid.reveal-grid .card:nth-child(3) { transition-delay: 0.26s; }
.slide.is-active .grid.reveal-grid .card:nth-child(4) { transition-delay: 0.34s; }
.slide.is-active .grid.reveal-grid .card:nth-child(5) { transition-delay: 0.42s; }
.slide.is-active .grid.reveal-grid .card:nth-child(6) { transition-delay: 0.5s; }

@keyframes gradientMove {
    to { background-position: 200% center; }
}

@keyframes ringSpin {
    to { --ring-angle: 360deg; }
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(4%, 6%) scale(1.12); }
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 6px var(--gold); transform: scale(1); }
    50% { box-shadow: 0 0 16px var(--gold), 0 0 26px var(--gold-soft); transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Cookie consent banner */

.cookie-banner {
    position: fixed;
    left: calc(24px + env(safe-area-inset-left, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 22px;
    background: rgba(15, 15, 30, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

.cookie-banner p { flex: 1 1 380px; margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.cookie-banner a { color: var(--amber); }
.cookie-banner a:hover { color: var(--gold); }
.cookie-banner button { flex-shrink: 0; }

@media (max-width: 600px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
}

/* Ambient background music */

.ambient-popup {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 8, 10, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ambient-popup.is-visible { opacity: 1; pointer-events: auto; }

.ambient-popup[hidden] { display: none; }

.ambient-popup-card {
    position: relative;
    max-width: 380px;
    width: 100%;
    padding: 30px 26px 26px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.ambient-popup-card h3 { margin: 0 0 10px; color: var(--text); font-size: 19px; font-weight: 700; }
.ambient-popup-card p { margin: 0 0 20px; color: var(--text-dim); font-size: 14px; line-height: 1.5; }

.ambient-popup-actions { display: flex; align-items: center; justify-content: center; gap: 18px; }

.ambient-popup-later {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
}
.ambient-popup-later:hover { color: var(--text); }

.ambient-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}
.ambient-popup-close:hover { color: var(--text); }

.ambient-toggle {
    position: fixed;
    top: calc(var(--nav-h) + 16px + env(safe-area-inset-top, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    z-index: 90;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(20, 20, 22, 0.85);
    backdrop-filter: blur(6px);
    color: var(--gold);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.ambient-toggle:hover { transform: scale(1.06); }
.ambient-toggle.is-paused { color: var(--text-dim); }

.ambient-toggle-icon { animation: ambientPulse 1.8s ease-in-out infinite; }
.ambient-toggle.is-paused .ambient-toggle-icon { animation: none; }

@keyframes ambientPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

@media (max-width: 600px) {
    .ambient-toggle { width: 38px; height: 38px; font-size: 15px; }
}

/* Legal pages (Aviso legal, Privacidad, Cookies) */

body.legal-body {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.legal-body::-webkit-scrollbar { display: none; }

.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 48px) 24px 60px;
}

.legal-reveal {
    animation: legalFadeUp 0.7s ease both;
}

.legal-footer.legal-reveal { animation-delay: 0.15s; }

@keyframes legalFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-content h1 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 4px;
    font-weight: 800;
}

.legal-updated { color: var(--text-dim); font-size: 13px; margin: 0 0 40px; }

.legal-content h2 {
    font-size: 20px;
    margin: 36px 0 12px;
    color: var(--text);
}

.legal-content p, .legal-content li {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

.legal-content ul { padding-left: 20px; margin: 0 0 16px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--amber); }
.legal-content a:hover { color: var(--gold); }
.legal-content strong { color: var(--text); }

.legal-placeholder-note {
    background: rgba(255, 194, 71, 0.08);
    border: 1px solid var(--gold-soft);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text) !important;
}

.legal-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--border);
}

.legal-back-link { color: var(--text-dim); font-size: 14px; }
.legal-back-link:hover { color: var(--text); }
.legal-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* Responsive */

@media (max-width: 900px) {
    .site-nav { padding: 0 20px; }
    .main-menu { display: none; }
    .swipe-hint { display: flex; }
    .slide-hero { flex-direction: column; justify-content: safe center; text-align: center; gap: 32px; overflow-y: auto; }
    .hero-photo { flex: 0 0 auto; width: 78%; max-width: 340px; }
    .hero-actions { justify-content: center; }
    .lead { max-width: none; }
    .slide-hero .lead { font-size: 14.5px; line-height: 1.55; }
    .form-row-split { grid-template-columns: 1fr; }
    .form-row-split-contact { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }
    .booking-form button[type="submit"] { align-self: center; }
    /* minmax(0, Nfr) — not just plain Nfr — so the track itself is capped
       at its share of the row even when a native control (iOS's date
       input in particular) asks for more than that; without the explicit
       0 floor, the browser can let that intrinsic width win and the two
       fields end up overlapping instead of side by side. */
    .form-row-split-datetime { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 10px; }
    .form-row-split-datetime input[type="date"] { padding-left: 8px; padding-right: 4px; }
    .slide-dots { right: 12px; }
    .slide-arrow { display: none; }
    .contact-layout { justify-content: center; text-align: center; }
    .contact-links, .social-links { justify-content: center; }
    .map-frame-sm { width: 100%; max-width: 380px; }
    .slide-booking { overflow-y: auto; align-items: flex-start; }
    .slide-contact { overflow-y: auto; align-items: flex-start; }
    .contact-layout { align-items: center; text-align: center; }
    .booking-layout { align-items: center; }
    .booking-layout .section-head { text-align: center; margin: 0 auto; }
    .booking-form-ring { margin: 0 auto; }
    .booking-form { text-align: left; }

    /* iOS Safari auto-zooms into any focused field smaller than 16px, which
       looks like the whole page suddenly "jumps" left when you tap a field. */
    .form-row input, .form-row select, .form-row textarea {
        font-size: 16px;
    }
}
