/* ROAMERD · Landing page
 * «Sobremesa caribeña»: luz cálida de arena en modo claro y noche caribe (verde mar muy profundo)
 * en modo oscuro. Fraunces en minúsculas para los títulos e Instrument Sans para el texto. El arco
 * colonial (Zona Colonial) es la forma de la marca. Tonos por sector: mar, coral, buganvilla, tabaco
 * y mango.
 */

/* ============================== TOKENS ============================== */
:root,
:root[data-theme="light"] {
    --rd-bg: #F5EEE3;
    --rd-bg-2: #EEE4D4;
    --rd-surface: #FFFAF3;
    --rd-field: #F1E8DB;
    --rd-field-2: #E6DACA;
    --rd-ink: #17302E;
    --rd-muted: #56655F;
    --rd-line: rgba(23, 48, 46, .14);
    --rd-line-strong: rgba(23, 48, 46, .28);
    --rd-primary: #C4472F;
    --rd-primary-hover: #A63A24;
    --rd-on-primary: #FFF8F0;
    --rd-shadow: 0 28px 60px -30px rgba(23, 48, 46, .4);
    --rd-nav-bg: rgba(245, 238, 227, .86);
    /* Texto en el color de cada sector, legible sobre el fondo */
    --rd-sea-text: #0F6A64;
    --rd-coral-text: #B13F28;
    --rd-bougainvillea-text: #9B2F5F;
    --rd-tobacco-text: #6B4330;
    --rd-mango-text: #855505;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --rd-bg: #0D1918;
    --rd-bg-2: #112120;
    --rd-surface: #152625;
    --rd-field: #1D3331;
    --rd-field-2: #26403D;
    --rd-ink: #F4EBDD;
    --rd-muted: #A9B6B0;
    --rd-line: rgba(244, 235, 221, .13);
    --rd-line-strong: rgba(244, 235, 221, .26);
    --rd-primary: #F0795C;
    --rd-primary-hover: #F5937A;
    --rd-on-primary: #0D1918;
    --rd-shadow: 0 28px 60px -30px rgba(0, 0, 0, .7);
    --rd-nav-bg: rgba(13, 25, 24, .86);
    --rd-sea-text: #6CCBC0;
    --rd-coral-text: #F48B70;
    --rd-bougainvillea-text: #E58AB3;
    --rd-tobacco-text: #D7AA87;
    --rd-mango-text: #F1B451;
    color-scheme: dark;
}

:root {
    /* Fondos de sector: iguales en los dos temas */
    --rd-sea: #0F6A64;
    --rd-coral: #C4472F;
    --rd-bougainvillea: #9B2F5F;
    --rd-tobacco: #6B4330;
    --rd-mango: #F1A93A;

    --rd-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --rd-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --rd-ease: cubic-bezier(.2, .7, .1, 1);
    --rd-gutter: 40px;
    --rd-radius: 24px;
}

/* Tono de un bloque: --tone es el fondo, --on-tone el texto encima, --tone-text el color sobre la página */
.rd-tone--sea { --tone: var(--rd-sea); --on-tone: #F3FBF8; --tone-text: var(--rd-sea-text); }
.rd-tone--coral { --tone: var(--rd-coral); --on-tone: #FFF6EE; --tone-text: var(--rd-coral-text); }
.rd-tone--bougainvillea { --tone: var(--rd-bougainvillea); --on-tone: #FFF2F7; --tone-text: var(--rd-bougainvillea-text); }
.rd-tone--tobacco { --tone: var(--rd-tobacco); --on-tone: #FBF1E8; --tone-text: var(--rd-tobacco-text); }
.rd-tone--mango { --tone: var(--rd-mango); --on-tone: #2A1D08; --tone-text: var(--rd-mango-text); }

/* ============================== BASE ============================== */
html {
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

.rd-body {
    margin: 0;
    background: var(--rd-bg);
    color: var(--rd-ink);
    font-family: var(--rd-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.rd-body *,
.rd-body *::before,
.rd-body *::after { box-sizing: border-box; }

.rd-body a { color: inherit; text-decoration: none; }
.rd-body a:hover { color: var(--rd-primary); }
.rd-body :focus-visible { outline: 2px solid var(--rd-primary); outline-offset: 3px; border-radius: 6px; }
.rd-body img, .rd-body svg { display: block; }
.rd-body h1, .rd-body h2, .rd-body h3, .rd-body p, .rd-body ul, .rd-body ol { margin: 0; }
.rd-b { font-weight: 600; }

.rd-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--rd-gutter); }

.rd-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--rd-primary);
    color: var(--rd-on-primary) !important;
    font-weight: 600;
}
.rd-skip:focus { top: 16px; }

/* ============================== TIPOGRAFÍA ============================== */
.rd-display {
    font-family: var(--rd-serif);
    font-weight: 400;
    font-optical-sizing: auto;
    letter-spacing: -.02em;
    line-height: 1.02;
}
.rd-display em { font-style: italic; font-weight: 350; color: var(--rd-primary); }
.rd-display--xl { font-size: clamp(42px, 5.4vw, 82px); }
.rd-display--lg { font-size: clamp(36px, 4.3vw, 64px); }
.rd-display--md { font-size: clamp(32px, 3.4vw, 50px); }
.rd-display--sm { font-size: clamp(26px, 2.3vw, 34px); }

.rd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 12px/1.3 var(--rd-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rd-primary);
}
.rd-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }

.rd-lead { margin-top: 26px !important; max-width: 500px; color: var(--rd-muted); font-size: 18px; }
.rd-muted { color: var(--rd-muted); font-size: 16px; }
.rd-muted a { color: var(--rd-primary); text-decoration: underline; text-underline-offset: 3px; }
.rd-note { color: var(--rd-muted); font-size: 13px; }
.rd-note a { text-decoration: underline; text-underline-offset: 3px; }

.rd-wordmark {
    font-family: var(--rd-serif);
    font-weight: 600;
    font-style: italic;
    font-size: 30px;
    letter-spacing: -.03em;
    line-height: 1;
}
.rd-wordmark__dot { color: var(--rd-primary); }

.rd-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--rd-line);
    border-radius: 999px;
    background: var(--rd-surface);
    font-size: 13px;
    font-weight: 600;
}
.rd-chip .rd-ico { color: var(--rd-mango); width: 18px; height: 18px; }

.rd-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--rd-field);
    color: var(--rd-ink);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.rd-pill--ok { background: color-mix(in srgb, var(--rd-sea) 16%, transparent); color: var(--rd-sea-text); }
.rd-pill .rd-ico { width: 13px; height: 13px; }

/* ============================== BOTONES ============================== */
.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 15px/1 var(--rd-sans);
    cursor: pointer;
    transition: transform .25s var(--rd-ease), background-color .2s, color .2s, border-color .2s;
}
.rd-btn:hover { transform: translateY(-2px); }
.rd-btn .rd-ico { transition: transform .25s var(--rd-ease); }
.rd-btn:hover .rd-ico { transform: translateX(3px); }
.rd-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.rd-btn--primary, .rd-body a.rd-btn--primary { background: var(--rd-primary); color: var(--rd-on-primary); }
.rd-btn--primary:hover, .rd-body a.rd-btn--primary:hover { background: var(--rd-primary-hover); color: var(--rd-on-primary); }
.rd-btn--ghost, .rd-body a.rd-btn--ghost { border-color: var(--rd-line-strong); color: var(--rd-ink); }
.rd-btn--ghost:hover, .rd-body a.rd-btn--ghost:hover { border-color: var(--rd-ink); color: var(--rd-ink); }
.rd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ============================== ICONOS Y DIBUJOS ============================== */
.rd-ico {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.rd-art {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* ============================== MENÚ ============================== */
.rd-nav { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.rd-nav.is-scrolled {
    background: var(--rd-nav-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--rd-line);
}
.rd-nav__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.rd-nav__links {
    display: flex;
    gap: 2px;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid var(--rd-line);
    border-radius: 999px;
    background: var(--rd-surface);
    font-size: 14px;
    font-weight: 500;
}
.rd-nav__links > a:not(.rd-btn) { padding: 8px 16px; border-radius: 999px; }
.rd-nav__links > a:not(.rd-btn):hover { background: var(--rd-field); color: var(--rd-ink); }
.rd-nav__actions { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.rd-nav__mobile-cta, .rd-nav__toggle { display: none !important; }

.rd-theme-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rd-line);
    border-radius: 50%;
    background: var(--rd-surface);
    color: var(--rd-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.rd-theme-btn:hover { color: var(--rd-primary); border-color: var(--rd-primary); }
.rd-theme-btn .rd-ico { width: 18px; height: 18px; }
[data-theme="light"] .rd-theme-btn__sun,
[data-theme="dark"] .rd-theme-btn__moon { display: none; }
:root.rd-theme-switched .rd-theme-btn .rd-ico { animation: rd-theme-icon .5s var(--rd-ease); }
@keyframes rd-theme-icon { from { transform: rotate(90deg) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* Cambio de tema (landing.js): el tema anterior queda encima y se cierra en un círculo desde los
   bordes hasta el botón; debajo ya está el nuevo. Es lo inverso de planner_landing. */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 2; }
::view-transition-new(root) { z-index: 1; }

/* ============================== INICIO ============================== */
.rd-hero { position: relative; padding: 40px 0 110px; }
.rd-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}
.rd-hero__copy h1 { margin-top: 0; }
.rd-hero__chips { list-style: none; padding: 0 !important; margin-top: 34px !important; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--rd-muted); }
.rd-hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.rd-hero__chips .rd-ico { color: var(--rd-sea-text); }

.rd-hero__stage { position: relative; min-height: 600px; }
.rd-arch {
    position: relative;
    width: 80%;
    height: 600px;
    margin-left: auto;
    overflow: hidden;
    border-radius: 999px 999px 32px 32px;
    background: var(--tone);
    color: var(--on-tone);
}
.rd-sun {
    position: absolute;
    left: 50%;
    top: 96px;
    width: 230px;
    height: 230px;
    margin-left: -115px;
    border-radius: 50%;
    background: var(--rd-mango);
    box-shadow: 0 0 0 26px rgba(241, 169, 58, .16), 0 0 0 56px rgba(241, 169, 58, .08);
}
.rd-arch__palm { position: absolute; opacity: .38; stroke-width: 1.6; }
.rd-arch__palm--a { width: 300px; left: -70px; bottom: 120px; }
.rd-arch__palm--b { width: 260px; right: -80px; bottom: 210px; transform: scaleX(-1) rotate(10deg); }

.rd-floor {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: var(--rd-surface);
    color: var(--rd-ink);
    box-shadow: var(--rd-shadow);
}
.rd-floor__head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.rd-floor__head span:last-child { color: var(--rd-muted); font-weight: 500; }
.rd-floor__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.rd-table { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid transparent; }
.rd-table--wide { grid-column: span 2; aspect-ratio: auto; border-radius: 12px; }
.rd-table--busy { background: var(--rd-primary); }
.rd-table--held { background: var(--rd-mango); }
.rd-table--free { border-color: var(--rd-line-strong); }
.rd-floor__legend { display: flex; gap: 16px; margin-top: 14px; font-size: 11px; color: var(--rd-muted); }
.rd-key { display: inline-flex; align-items: center; gap: 6px; }
.rd-key::before { content: ''; width: 9px; height: 9px; border-radius: 50%; }
.rd-key--busy::before { background: var(--rd-primary); }
.rd-key--held::before { background: var(--rd-mango); }
.rd-key--free::before { border: 1.5px solid var(--rd-line-strong); }

/* Ticket de reserva con el corte troquelado (máscara en el cuerpo, sombra en el contenedor) */
.rd-ticket-wrap {
    position: absolute;
    left: 0;
    top: 150px;
    width: 300px;
    filter: drop-shadow(0 24px 30px rgba(23, 48, 46, .22));
    animation: rd-bob 7s ease-in-out infinite;
}
.rd-ticket-card {
    padding: 18px 20px 0;
    border-radius: 20px;
    background: var(--rd-surface);
    color: var(--rd-ink);
    transform: rotate(-4deg);
    -webkit-mask: radial-gradient(circle 10px at left 0 bottom 50px, #0000 97%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle 10px at right 0 bottom 50px, #0000 97%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 10px at left 0 bottom 50px, #0000 97%, #000) left / 51% 100% no-repeat,
          radial-gradient(circle 10px at right 0 bottom 50px, #0000 97%, #000) right / 51% 100% no-repeat;
}
.rd-ticket-card__top { display: flex; justify-content: space-between; align-items: center; }
.rd-ticket-card__code { font-size: 12px; color: var(--rd-muted); letter-spacing: .08em; }
.rd-ticket-card__name { font-family: var(--rd-serif); font-size: 26px; margin-top: 14px; line-height: 1.1; }
.rd-ticket-card__meta { font-size: 13px; color: var(--rd-muted); margin-top: 6px; }
.rd-ticket-card__cut { margin: 18px 4px 0; border-top: 2px dashed var(--rd-line-strong); }
.rd-ticket-card__foot { display: flex; justify-content: space-between; align-items: center; height: 50px; font-size: 12px; color: var(--rd-muted); }

.rd-toast {
    position: absolute;
    right: -10px;
    top: 236px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 18px;
    background: var(--rd-surface);
    color: var(--rd-ink);
    font-size: 13px;
    line-height: 1.35;
    box-shadow: var(--rd-shadow);
    transform: rotate(3deg);
    animation: rd-bob 8s ease-in-out -3s infinite;
}
.rd-toast__ico { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--tone); color: var(--on-tone); display: flex; align-items: center; justify-content: center; }
.rd-toast__ico .rd-art { width: 24px; }

@keyframes rd-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ============================== FRANJA ============================== */
.rd-marquee { overflow: hidden; background: var(--rd-ink); color: var(--rd-bg); padding: 22px 0; }
.rd-marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: rd-marquee 38s linear infinite; }
.rd-marquee__word { font-family: var(--rd-serif); font-style: italic; font-size: 34px; line-height: 1; white-space: nowrap; }
.rd-marquee .rd-ico { width: 22px; height: 22px; color: var(--rd-mango); }
@keyframes rd-marquee { to { transform: translateX(-50%); } }

/* ============================== SECCIONES ============================== */
.rd-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.rd-section-head h2 { margin-top: 18px; }
.rd-section-head .rd-muted { max-width: 420px; }

/* La carta */
.rd-carta { padding: 130px 0; }
.rd-carta__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.rd-carta__intro { position: sticky; top: 120px; }
.rd-carta__intro h2 { margin-top: 18px; }
.rd-carta__intro .rd-muted { margin-top: 22px; max-width: 440px; }
.rd-carta__sign {
    margin-top: 32px !important;
    padding-left: 18px;
    border-left: 2px solid var(--rd-mango);
    max-width: 420px;
    font-family: var(--rd-serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.45;
}
.rd-menu {
    padding: 44px 44px 20px;
    border-radius: 32px;
    background: var(--rd-surface);
    box-shadow: inset 0 0 0 10px var(--rd-surface), inset 0 0 0 11px var(--rd-line), var(--rd-shadow);
}
.rd-menu__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px !important;
    font-family: var(--rd-serif);
    font-style: italic;
    font-size: 20px;
    color: var(--rd-muted);
}
.rd-menu__head::before, .rd-menu__head::after { content: ''; flex: 1; height: 1px; background: var(--rd-line-strong); }
.rd-menu__item { padding: 26px 0; border-bottom: 1px dashed var(--rd-line-strong); }
.rd-menu__item:last-child { border-bottom: 0; }
.rd-menu__row { display: flex; align-items: center; gap: 14px; }
.rd-menu__num { font-size: 12px; font-weight: 600; color: var(--tone-text); letter-spacing: .08em; }
.rd-menu__name { font-family: var(--rd-serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.rd-menu__dots { flex: 1; min-width: 24px; height: 1px; border-bottom: 2px dotted var(--rd-line-strong); transform: translateY(6px); }
.rd-menu__badge {
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 50%;
    background: var(--tone);
    color: var(--on-tone);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .5s var(--rd-ease);
}
.rd-menu__badge .rd-art { width: 32px; height: 32px; stroke-width: 3.6; }
.rd-menu__item:hover .rd-menu__badge { transform: rotate(-10deg) scale(1.06); }
.rd-menu__tag { margin-top: 6px !important; padding-left: 34px; font-family: var(--rd-serif); font-style: italic; font-size: 18px; color: var(--tone-text); }
.rd-menu__list { list-style: none; padding: 0 0 0 34px !important; margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--rd-muted); }
.rd-menu__list li:not(:last-child)::after { content: '·'; margin: 0 10px; color: var(--rd-line-strong); }

/* Una noche */
.rd-night { padding: 130px 0; background: var(--rd-bg-2); }
.rd-night__head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.rd-night__head h2 { margin-top: 18px; }
.rd-night__head .rd-muted { margin-top: 18px; }
.rd-night__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.rd-night__clock { position: sticky; top: 140px; display: grid; gap: 8px; }
.rd-night__time {
    font-family: var(--rd-serif);
    font-size: 104px;
    line-height: .9;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--rd-primary);
}
.rd-night__moment { font-family: var(--rd-serif); font-style: italic; font-size: 22px; }
.rd-night__bar { display: block; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--rd-line); overflow: hidden; }
.rd-night__bar span { display: block; width: 25%; height: 100%; background: var(--rd-primary); transition: width .6s var(--rd-ease); }
.rd-night__steps { list-style: none; padding: 0 !important; display: grid; gap: 24px; }
.rd-night__step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 18px 18px 18px 36px;
    border-radius: 28px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    transition: opacity .5s var(--rd-ease), transform .5s var(--rd-ease);
}
html.rd-js .rd-night__step { opacity: .5; }
html.rd-js .rd-night__step.is-active { opacity: 1; }
.rd-night__stamp { display: inline-block; font-size: 13px; color: var(--tone-text); letter-spacing: .02em; }
.rd-night__copy h3 { margin-top: 10px; }
.rd-night__copy .rd-muted { margin-top: 14px; font-size: 15px; }
.rd-night__panel {
    min-height: 330px;
    padding: 28px;
    border-radius: 22px;
    background: var(--tone);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Maquetas de pantalla (siguen el tema) */
.rd-screen {
    width: 290px;
    max-width: 100%;
    padding: 16px;
    border-radius: 20px;
    background: var(--rd-surface);
    color: var(--rd-ink);
    font-size: 12px;
    line-height: 1.35;
    display: grid;
    gap: 8px;
    box-shadow: 0 24px 44px -24px rgba(0, 0, 0, .45);
}
.rd-screen__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rd-screen__note { font-size: 11px; color: var(--rd-coral-text); }
.rd-screen__btn {
    height: 42px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--rd-ink);
    color: var(--rd-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}
.rd-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--rd-field);
    color: var(--rd-muted);
    font-size: 12px;
    white-space: nowrap;
}
.rd-field--on { color: var(--rd-ink); }
.rd-field--sm { width: 64px; }
.rd-row { display: flex; gap: 6px; }
.rd-grow { flex: 1; min-width: 0; }
.rd-slots { display: flex; gap: 6px; }
.rd-slots span { flex: 1; padding: 7px 0; border: 1px solid var(--rd-line); border-radius: 10px; text-align: center; font-weight: 600; }
.rd-slots .is-on { background: var(--rd-primary); border-color: var(--rd-primary); color: var(--rd-on-primary); }
.rd-slots .is-off { color: var(--rd-muted); text-decoration: line-through; }
.rd-sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 3px 0; font-size: 12px; color: var(--rd-muted); }
.rd-sumrow span:last-child { color: var(--rd-ink); }
.rd-sumrow--total { padding-top: 10px; border-top: 1px solid var(--rd-line); font-size: 14px; }
.rd-sumrow--total span:last-child { font-family: var(--rd-serif); font-size: 22px; }
.rd-ticket { padding: 12px; border-radius: 14px; background: var(--rd-field); display: grid; gap: 5px; }
.rd-ticket--done { opacity: .55; }
.rd-ticket__head { display: flex; justify-content: space-between; font-size: 13px; }
.rd-ticket__head span { color: var(--rd-coral-text); font-size: 11px; font-weight: 600; }
.rd-ticket__note { color: var(--rd-muted); font-size: 11px; padding-left: 14px; }
.rd-stock { display: grid; gap: 6px; padding: 3px 0; }
.rd-stock__label { display: flex; justify-content: space-between; font-size: 12px; }
.rd-stock__pct { color: var(--rd-muted); }
.rd-stock__pct--low { color: var(--rd-coral-text); font-weight: 600; }
.rd-meter { display: block; flex: 1; height: 7px; border-radius: 7px; background: var(--rd-field-2); overflow: hidden; }
.rd-meter > span { display: block; height: 100%; border-radius: 7px; background: var(--rd-primary); }
.rd-meter--sea > span { background: var(--rd-sea); }
.rd-meter--bougainvillea > span { background: var(--rd-bougainvillea); }
.rd-meter--coral > span { background: var(--rd-coral); }
.rd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rd-stats > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: var(--rd-field); }
.rd-stats b { font-family: var(--rd-serif); font-size: 20px; font-weight: 400; line-height: 1.1; }
.rd-stats span { font-size: 10.5px; color: var(--rd-muted); }
.rd-listrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--rd-field); }
.rd-listrow small { display: block; margin-top: 2px; font-size: 10.5px; color: var(--rd-muted); }
.rd-listrow .rd-pill { flex: none; }
.rd-minifloor { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; padding: 12px; border-radius: 14px; background: var(--rd-field); }
.rd-table--pick { border: 2px solid var(--rd-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rd-primary) 22%, transparent); }

/* En vivo (cuadrícula) */
.rd-live { padding: 130px 0; }
.rd-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(170px, auto);
    gap: 16px;
}
.rd-tile {
    padding: 24px;
    border-radius: var(--rd-radius);
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rd-tile__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.rd-tile__big { font-family: var(--rd-serif); font-size: clamp(36px, 3.6vw, 54px); line-height: 1; letter-spacing: -.02em; }
.rd-tile--sales { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.rd-tile--occ { grid-column: 3; grid-row: 1; flex-direction: row; align-items: center; gap: 18px; }
.rd-tile--occ div:last-child { display: grid; gap: 4px; font-size: 13px; color: var(--rd-muted); }
.rd-tile--occ b { font-size: 17px; color: var(--rd-ink); }
.rd-tile--alert { grid-column: 4; grid-row: 1 / span 2; background: var(--tone); color: var(--on-tone); border-color: transparent; justify-content: flex-end; }
.rd-tile--alert .rd-art { width: 74px; margin-bottom: auto; stroke-width: 2.6; }
.rd-tile--alert b { font-family: var(--rd-serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.rd-tile--alert span { font-size: 14px; }
.rd-tile--sites { grid-column: 3; grid-row: 2; }
.rd-tile--tax { grid-column: 1; grid-row: 3; background: var(--tone); color: var(--on-tone); border-color: transparent; justify-content: space-between; }
.rd-tile--tax b { font-family: var(--rd-serif); font-weight: 400; font-size: 26px; line-height: 1.15; }
.rd-tile__kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.rd-tile--cash { grid-column: 2 / span 3; grid-row: 3; justify-content: center; }
.rd-tile--cash .rd-muted { font-size: 15px; }
.rd-spark { width: 100%; height: 130px; margin-top: auto; }
.rd-spark__area { fill: var(--rd-primary); opacity: .14; }
.rd-spark__line { fill: none; stroke: var(--rd-primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rd-tile__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--rd-muted); }
.rd-ring {
    position: relative;
    width: 96px;
    height: 96px;
    flex: none;
    border-radius: 50%;
    background: conic-gradient(var(--rd-sea) 0 var(--pct, 78%), var(--rd-field-2) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rd-ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--rd-surface); }
.rd-ring span { position: relative; font-family: var(--rd-serif); font-size: 20px; }
.rd-barrow { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rd-barrow > span:first-child { width: 86px; }
.rd-barrow__val { width: 48px; text-align: right; font-variant-numeric: tabular-nums; color: var(--rd-muted); }
.rd-tile--tax > span:last-child { font-size: 13px; opacity: .9; }
.rd-cash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rd-cash > div { display: grid; gap: 2px; }
.rd-cash span { font-size: 13px; color: var(--rd-muted); }
.rd-cash b { font-family: var(--rd-serif); font-size: clamp(20px, 2vw, 28px); font-weight: 400; }

/* Preguntas */
.rd-faq { padding: 40px 0 130px; }
.rd-faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.rd-faq__head { position: sticky; top: 120px; }
.rd-faq__head h2 { margin-top: 18px; }
.rd-faq__head .rd-muted { margin-top: 20px; }
.rd-faq__list { border-top: 1px solid var(--rd-line); }
.rd-faq__item { border-bottom: 1px solid var(--rd-line); }
.rd-faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    font-family: var(--rd-serif);
    font-size: 22px;
    line-height: 1.25;
    cursor: pointer;
    list-style: none;
}
.rd-faq__item summary::-webkit-details-marker { display: none; }
.rd-faq__plus { position: relative; width: 34px; height: 34px; flex: none; border: 1px solid var(--rd-line-strong); border-radius: 50%; transition: transform .35s var(--rd-ease), background-color .2s; }
.rd-faq__plus::before, .rd-faq__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; }
.rd-faq__plus::after { transform: rotate(90deg); }
.rd-faq__item[open] .rd-faq__plus { transform: rotate(45deg); background: var(--rd-primary); border-color: var(--rd-primary); color: var(--rd-on-primary); }
.rd-faq__item p { padding: 0 60px 26px 0; color: var(--rd-muted); }

/* Contacto */
.rd-contact { padding-bottom: 120px; }
.rd-contact__card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
    gap: 8px;
    padding: 14px;
    border-radius: 40px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-line);
    box-shadow: var(--rd-shadow);
}
.rd-contact__side {
    position: relative;
    overflow: hidden;
    padding: 150px 40px 44px;
    border-radius: 999px 999px 28px 28px;
    background: var(--tone);
    color: var(--on-tone);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.rd-contact__side .rd-eyebrow { color: var(--on-tone); }
.rd-contact__side p { max-width: 380px; }
.rd-contact__alt { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; font-size: 14px; font-weight: 600; position: relative; z-index: 1; }
.rd-contact__alt a { display: inline-flex; align-items: center; gap: 10px; }
.rd-contact__alt a:hover { color: var(--on-tone); text-decoration: underline; }
.rd-contact__art { position: absolute; right: -10px; bottom: -14px; width: 150px; opacity: .3; stroke-width: 1.8; }

.rd-form { position: relative; padding: 40px 36px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; align-content: start; }
.rd-form__field { display: grid; gap: 8px; align-content: start; }
.rd-form__label { font-size: 13px; font-weight: 600; }
.rd-form__field--full, .rd-form__foot, .rd-form__msg { grid-column: 1 / -1; }
.rd-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    background: var(--rd-bg);
    color: var(--rd-ink);
    font: 500 15px var(--rd-sans);
    transition: border-color .2s, box-shadow .2s;
}
.rd-input::placeholder { color: var(--rd-muted); opacity: .85; }
.rd-input:hover { border-color: var(--rd-line-strong); }
.rd-input:focus { outline: none; border-color: var(--rd-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rd-primary) 18%, transparent); }
.rd-input[aria-invalid="true"] { border-color: var(--rd-coral-text); }
.rd-input--area { height: 120px; padding: 14px 16px; resize: vertical; }
select.rd-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.rd-form__error { color: var(--rd-coral-text); font-size: 12px; font-weight: 600; }
.rd-form__error:empty { display: none; }
.rd-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.rd-form__msg { font-size: 15px; font-weight: 600; color: var(--rd-sea-text); min-height: 24px; }
.rd-form__msg.is-error { color: var(--rd-coral-text); }
.rd-form.is-sending .rd-btn { opacity: .6; pointer-events: none; }
.rd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pie */
.rd-footer { padding-top: 72px; border-top: 1px solid var(--rd-line); overflow: hidden; }
.rd-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.rd-footer__about p { margin-top: 16px !important; max-width: 300px; font-size: 14px; color: var(--rd-muted); }
.rd-footer__col { display: grid; gap: 12px; align-content: start; font-size: 14px; }
.rd-footer__col a { color: var(--rd-muted); }
.rd-footer__title { font: 600 13px/1.3 var(--rd-sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px !important; }
.rd-footer__bottom { margin-top: 56px; font-size: 13px; color: var(--rd-muted); }
.rd-footer__giant {
    margin-top: 12px;
    font-family: var(--rd-serif);
    font-weight: 600;
    font-style: italic;
    font-size: 23vw;
    line-height: .78;
    letter-spacing: -.05em;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--rd-line-strong);
    transform: translateY(14%);
    user-select: none;
}
.rd-footer__giant span { color: var(--rd-primary); -webkit-text-stroke: 0; }

/* ============================== PÁGINAS LEGALES ============================== */
.rd-legal { padding: 48px 0 120px; }
.rd-legal__head { max-width: 1100px; padding-bottom: 56px; }
.rd-legal__head h1 { margin-top: 18px; }
.rd-legal__head .rd-lead { max-width: 720px; }
.rd-legal__body { max-width: 1100px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.rd-legal__toc { position: sticky; top: 110px; padding: 24px; border-radius: var(--rd-radius); background: var(--rd-surface); border: 1px solid var(--rd-line); }
.rd-legal__toc ol { padding: 0 0 0 18px !important; margin-top: 16px !important; display: grid; gap: 10px; font-size: 14px; color: var(--rd-muted); }
.rd-legal__section { padding: 28px 0; border-top: 1px solid var(--rd-line); }
.rd-legal__section h2 { display: flex; gap: 16px; align-items: baseline; font: 400 28px/1.25 var(--rd-serif); }
.rd-legal__num { font: 600 13px/1 var(--rd-sans); color: var(--rd-primary); }
.rd-legal__section p { margin-top: 14px !important; color: var(--rd-muted); max-width: 720px; }
.rd-legal__section a { text-decoration: underline; text-underline-offset: 3px; color: var(--rd-ink); }

/* ============================== ANIMACIONES ============================== */
/* Solo con JS: sin él, todo se ve desde el principio. */
/* El padding de arriba deja sitio a las tildes dentro de la máscara */
.rd-line { display: block; padding: .14em .06em .1em 0; margin-top: -.14em; }
html.rd-js .rd-reveal .rd-line { overflow: hidden; }
html.rd-js .rd-reveal .rd-line > span { display: inline-block; transform: translateY(115%) rotate(2deg); transform-origin: left top; transition: transform .9s var(--rd-ease); }
html.rd-js .rd-reveal .rd-line:nth-child(2) > span { transition-delay: .1s; }
html.rd-js .rd-reveal .rd-line:nth-child(3) > span { transition-delay: .2s; }
html.rd-js .rd-reveal.is-in .rd-line > span { transform: none; }

html.rd-js .rd-fade { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--rd-ease), transform .8s var(--rd-ease); }
html.rd-js .rd-fade.is-in { opacity: 1; transform: none; }
.rd-float { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.rd-js .rd-reveal .rd-line > span,
    html.rd-js .rd-fade { transform: none !important; opacity: 1 !important; transition: none !important; }
    .rd-float { transform: none !important; }
    .rd-ticket-wrap, .rd-toast, .rd-marquee__track { animation: none; }
    .rd-btn, .rd-menu__badge { transition: none; }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1180px) {
    .rd-nav__links > a:not(.rd-btn) { padding: 8px 12px; }
    .rd-nav__inner { gap: 20px; }
    .rd-hero__inner { gap: 40px; }
    .rd-arch { width: 88%; }
    .rd-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rd-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    .rd-nav__links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px var(--rd-gutter) 24px;
        border: 0;
        border-bottom: 1px solid var(--rd-line);
        border-radius: 0;
        background: var(--rd-bg);
        font-size: 19px;
    }
    .rd-nav__links > a:not(.rd-btn) { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--rd-line); }
    .rd-nav__links > a:not(.rd-btn):hover { background: none; }
    .rd-nav.is-open .rd-nav__links { display: flex; }
    .rd-nav.is-open { background: var(--rd-bg); }
    .rd-nav__actions { margin-left: auto; }
    .rd-nav__mobile-cta { display: inline-flex !important; margin-top: 20px; }
    .rd-nav__toggle {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--rd-line);
        border-radius: 50%;
        background: var(--rd-surface);
        color: var(--rd-ink);
        cursor: pointer;
    }
    .rd-nav__toggle .rd-ico { width: 20px; height: 20px; }
    .rd-nav__toggle .rd-ico--close, .rd-nav.is-open .rd-nav__toggle .rd-ico--open { display: none; }
    .rd-nav.is-open .rd-nav__toggle .rd-ico--close { display: block; }
    .rd-hide-sm { display: none !important; }

    .rd-hero { padding-top: 24px; }
    .rd-hero__inner, .rd-carta__inner, .rd-faq__inner, .rd-contact__card { grid-template-columns: minmax(0, 1fr); }
    .rd-hero__stage { min-height: 560px; }
    .rd-arch { width: 86%; height: 540px; }
    .rd-carta, .rd-night, .rd-live { padding: 96px 0; }
    .rd-carta__inner { gap: 40px; }
    .rd-carta__intro, .rd-faq__head { position: static; }
    .rd-night__grid { grid-template-columns: minmax(0, 1fr); }
    .rd-night__clock { display: none; }
    html.rd-js .rd-night__step { opacity: 1; }
    .rd-night__step { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 18px; }
    .rd-night__panel { order: -1; min-height: 300px; }
    .rd-night__copy { padding: 4px 12px 14px; }
    .rd-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-tile--sales, .rd-tile--cash { grid-column: 1 / -1; grid-row: auto; }
    .rd-tile--occ, .rd-tile--alert, .rd-tile--sites, .rd-tile--tax { grid-column: auto; grid-row: auto; }
    .rd-tile--alert { min-height: 240px; }
    .rd-faq__inner { gap: 32px; }
    .rd-contact__side { padding-top: 130px; }
    .rd-legal__body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .rd-legal__toc { position: static; }
}

@media (max-width: 640px) {
    :root { --rd-gutter: 16px; }
    .rd-nav__inner { min-height: 72px; gap: 12px; }
    .rd-wordmark { font-size: 26px; }
    .rd-lead { font-size: 16px; }
    .rd-actions { display: grid; }
    .rd-hero { padding-bottom: 72px; }
    .rd-hero__stage { min-height: 500px; }
    .rd-arch { width: 100%; height: 480px; }
    .rd-sun { width: 170px; height: 170px; margin-left: -85px; top: 70px; }
    .rd-floor { left: 14px; right: 14px; bottom: 14px; padding: 14px; }
    .rd-floor__grid { gap: 7px; }
    .rd-ticket-wrap { left: -4px; top: 92px; width: 248px; }
    .rd-ticket-card__name { font-size: 22px; }
    .rd-toast { display: none; }
    .rd-marquee__word { font-size: 26px; }
    .rd-carta, .rd-night, .rd-live { padding: 72px 0; }
    .rd-menu { padding: 30px 22px 10px; border-radius: 26px; }
    .rd-menu__badge { width: 46px; height: 46px; }
    .rd-menu__badge .rd-art { width: 26px; height: 26px; }
    .rd-menu__tag, .rd-menu__list { padding-left: 0 !important; }
    .rd-menu__dots { display: none; }
    .rd-menu__name { flex: 1; }
    .rd-night__panel { min-height: 0; padding: 22px 14px; }
    .rd-bento { grid-template-columns: minmax(0, 1fr); }
    .rd-tile--occ, .rd-tile--alert, .rd-tile--sites, .rd-tile--tax { grid-column: 1 / -1; }
    .rd-faq { padding-bottom: 80px; }
    .rd-faq__item summary { font-size: 19px; }
    .rd-faq__item p { padding-right: 0; }
    .rd-contact__card { padding: 8px; border-radius: 30px; }
    .rd-contact__side { padding: 110px 24px 32px; }
    .rd-form { grid-template-columns: minmax(0, 1fr); padding: 28px 14px 18px; }
    .rd-form__foot .rd-btn { width: 100%; }
    .rd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Piezas de las maquetas (cuenta, hotel, inventario, caja) */
.rd-listrow .rd-pill:not(.rd-pill--ok) { background: var(--rd-surface); }
@media (max-width: 640px) {
    .rd-cash { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .rd-cash > div { display: flex; justify-content: space-between; align-items: baseline; }
}
