:root {
    --navy: #071225;
    --navy-2: #0c1a33;
    --gold: #c9a24e;
    --gold-2: #e2c579;
    --burgundy: #8e1d2b;
    --green: #0d3f35;
    --paper: #f7f3ec;
    --paper-2: #fbf8f2;
    --white: #ffffff;
    --ink: #071225;
    --muted: #6f7380;
    --line: #e4d8c8;
    --shadow: 0 22px 65px rgba(7, 18, 37, .12);
    --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--paper);
    color: var(--ink);
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.top-strip {
    min-height: 28px;
    padding: 6px clamp(18px, 6vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--gold);
    color: #13100a;
    font-size: 11px;
    font-weight: 800;
}
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 10px 28px rgba(7,18,37,.12); }
.main-nav {
    min-height: 58px;
    padding: 0 clamp(18px, 6vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; }
.brand-emblem, .brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--gold); color: var(--navy); border-radius: 1px; font-weight: 900; font-size: 22px;
}
.brand small { display: block; margin-top: 2px; color: #b7c0ce; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-link { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; color: #fff; opacity: .95; }
.nav-link:hover { color: var(--gold-2); }
.muted-link { opacity: .68; }
.small-btn { min-height: 36px; padding: 9px 15px; font-size: 11px; }

.agenda-hero {
    min-height: 550px;
    padding: clamp(56px, 8vw, 110px) clamp(18px, 6vw, 80px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    background:
        linear-gradient(90deg, rgba(7,18,37,.90), rgba(7,18,37,.78), rgba(7,18,37,.48)),
        radial-gradient(circle at 70% 24%, rgba(201,162,78,.22), transparent 300px),
        linear-gradient(135deg, #0b1020 0%, #1e1b15 45%, #071225 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.agenda-hero::after {
    content: 'R'; position: absolute; right: -28px; bottom: -88px;
    font-family: Georgia, 'Times New Roman', serif; font-size: 360px; line-height: 1;
    color: rgba(255,255,255,.035); pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
    display: inline-flex; margin-bottom: 16px; color: var(--gold);
    text-transform: uppercase; font-weight: 900; letter-spacing: 2px; font-size: 11px;
}
.hero-copy h1, .agenda-intro h2, .hero-card h2, .step-title h3, .admin-header h1 {
    font-family: Georgia, 'Times New Roman', serif;
}
.hero-copy h1 {
    margin: 0; max-width: 720px; font-size: clamp(44px, 7vw, 82px); line-height: .92; letter-spacing: -3px;
}
.hero-copy p { max-width: 600px; margin: 22px 0 0; color: #d6dbe4; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
    border: 0; cursor: pointer; min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 20px; border-radius: var(--radius); font-weight: 900; text-transform: uppercase; letter-spacing: .8px; font-size: 12px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: #111; box-shadow: 0 14px 30px rgba(201,162,78,.25); }
.btn.gold:hover { background: var(--gold-2); box-shadow: 0 20px 42px rgba(201,162,78,.34); }
.btn.outline { border: 1px solid rgba(255,255,255,.25); color: white; background: transparent; }
.btn.outline:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.full { width: 100%; }

.hero-card {
    position: relative; z-index: 1; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.18);
    padding: 42px; box-shadow: 0 28px 60px rgba(0,0,0,.28); backdrop-filter: blur(14px); transform: none !important;
}
.card-icon { width: 64px; height: 64px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 30px; margin-bottom: 28px; }
.hero-card h2 { margin: 0 0 18px; font-size: 31px; line-height: 1.1; }
.hero-card p, .hero-card li { color: #cbd3dd; line-height: 1.7; font-size: 15px; }
.hero-card ul { margin: 20px 0 0; padding-left: 20px; }

.agenda-shell { max-width: 1080px; margin: -54px auto 70px; padding: 0 18px; position: relative; z-index: 3; }
.agenda-intro { background: white; border: 1px solid var(--line); border-bottom: 0; padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow); }
.agenda-intro h2 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; color: var(--navy); }
.agenda-intro p { max-width: 640px; color: var(--muted); line-height: 1.7; }
.progress-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 clamp(26px, 4vw, 38px) 24px; background: white; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.progress-line span { height: 8px; border-radius: 999px; background: #e2e1dd; font-size: 0; }
.progress-line span.active { background: var(--green); }
.agenda-card { background: white; border: 1px solid var(--line); border-top: 0; padding: 0 clamp(22px, 4vw, 38px) clamp(28px, 4vw, 42px); box-shadow: var(--shadow); }
.wizard-panel { background: var(--paper-2); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); animation: fadeUp .24s ease both; }
.wizard-panel[hidden], .slot-group[hidden], .contact-fields[hidden] { display: none !important; }
.step-title { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.step-title > span { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; background: var(--green); color: white; font-weight: 900; }
.step-title h3 { margin: 0 0 4px; font-size: 28px; color: var(--navy); line-height: 1.15; }
.step-title p { margin: 0; color: var(--muted); line-height: 1.55; }
.back-btn { border: 1px solid var(--line); background: white; color: var(--navy); min-height: 38px; padding: 10px 14px; margin: 0 0 16px; font-weight: 900; cursor: pointer; }
.back-btn:hover { border-color: var(--gold); color: #9c762a; transform: translateX(-2px); }
.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-card, .hour-choice {
    border: 1px solid var(--line); background: white; color: var(--navy); cursor: pointer; text-align: left;
    min-height: 72px; padding: 16px; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.choice-card:hover, .hour-choice.available:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 24px rgba(7,18,37,.08); }
.choice-card.selected, .hour-choice.selected { background: var(--green); color: white; border-color: var(--green); box-shadow: 0 15px 28px rgba(13,63,53,.18); }
.choice-card strong, .choice-card small, .hour-choice strong, .hour-choice small { display: block; }
.choice-card strong { font-weight: 900; }
.choice-card small { margin-top: 8px; color: var(--muted); line-height: 1.45; }
.choice-card.selected small { color: rgba(255,255,255,.78); }
.date-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.date-choice { min-height: 74px; padding: 14px; }
.hour-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hour-choice { min-height: 62px; text-align: center; padding: 12px 8px; }
.hour-choice strong { font-size: 17px; }
.hour-choice small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 900; }
.hour-choice.selected small { color: rgba(255,255,255,.78); }
.hour-choice.unavailable { cursor: not-allowed; opacity: .62; background: #eee9df; border-style: dashed; }
.hour-choice.unavailable:hover { transform: none; box-shadow: none; border-color: var(--line); }
.selected-slot { margin: 0 0 16px; padding: 14px 16px; background: #eef8f1; color: #145137; border: 1px solid #bde5c9; font-weight: 800; }
.contact-fields { display: grid; gap: 14px; }
.contact-fields label { display: grid; gap: 7px; color: var(--navy); font-weight: 900; }
.contact-fields input, .contact-fields textarea, .booking-form input, .booking-form textarea, .booking-form select, .inline-form select, .password-form input {
    width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); padding: 13px 14px; outline: none;
}
.contact-fields input:focus, .contact-fields textarea:focus, .booking-form input:focus, .booking-form textarea:focus, .booking-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,78,.13); }
.no-slots { color: var(--muted); }

.result-modal-backdrop { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(7,18,37,.72); backdrop-filter: blur(8px); }
.result-modal-backdrop.is-visible { display: flex; }
.result-modal-card { width: min(480px, 100%); position: relative; padding: 32px; text-align: center; background: white; border-top: 6px solid var(--gold); box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.result-modal-icon { width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--green); color: white; font-weight: 900; font-size: 30px; }
.result-modal-card.danger .result-modal-icon { background: var(--burgundy); }
.result-modal-card h2 { margin: 0 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; color: var(--navy); }
.result-modal-card p, .result-modal-card small { color: var(--muted); line-height: 1.6; }
.result-modal-card small { display: block; margin: 10px 0 18px; }
.result-modal-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border: 1px solid var(--line); background: white; cursor: pointer; font-size: 24px; }

.agenda-footer { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 34px 18px; background: var(--navy); color: #cdd4df; font-size: 13px; }
.agenda-footer a { color: var(--gold); font-weight: 900; }
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Admin */
.admin-body { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: 100vh; background: var(--paper); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 18px; background: var(--navy); color: white; }
.admin-mobile-head { display: block; }
.admin-brand { margin-bottom: 20px; }
.admin-menu-toggle { display: none; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav a { padding: 12px 13px; background: rgba(255,255,255,.06); color: #d6dbe4; font-weight: 800; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { background: var(--gold); color: #111; }
.admin-main { padding: clamp(18px, 3vw, 34px); min-width: 0; }
.admin-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.admin-header h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); color: var(--navy); }
.admin-header p { color: var(--muted); }
.alert { padding: 14px 16px; margin: 12px 0; border: 1px solid var(--line); background: white; }
.alert.success { border-color: #bde5c9; background: #eef8f1; color: #145137; }
.alert.danger { border-color: #efc4ca; background: #fff0f2; color: #8e1d2b; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.stats-grid article, .table-card, .form-card { background: white; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; }
.stats-grid strong { display: block; font-size: 34px; font-family: Georgia, 'Times New Roman', serif; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters a { padding: 10px 14px; background: white; border: 1px solid var(--line); font-weight: 900; }
.filters a.active { background: var(--navy); color: white; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 12px; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-size: 12px; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.badge { display: inline-flex; padding: 5px 9px; font-weight: 900; font-size: 12px; background: #eee; }
.badge-warning { background: #fff5dd; color: #8f6720; }.badge-success { background: #eaf8ef; color: #145137; }.badge-danger { background: #fff0f2; color: #8e1d2b; }.badge-info { background: #e8f3ff; color: #224f7b; }.badge-muted { background: #eee; color: #666; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.btn.mini { min-height: 36px; padding: 9px 12px; background: var(--navy); color: white; }
.btn.danger-soft { background: #fff0f2; color: var(--burgundy); }
.admin-two-cols { display: grid; grid-template-columns: minmax(320px,.75fr) minmax(0,1.25fr); gap: 16px; align-items: start; }
.booking-form { display: grid; gap: 13px; }
.booking-form label { display: grid; gap: 7px; font-weight: 900; }
.whatsapp-link { color: #0f8f4f; font-weight: 900; }
.install-page, .login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--navy); }
.install-card, .login-card { width: min(520px,100%); background: white; border-top: 6px solid var(--gold); padding: 28px; box-shadow: var(--shadow); }
.install-card h1, .login-card h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 38px; margin: 8px 0; color: var(--navy); }

.admin-date-grid, .admin-slot-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.admin-date-btn { min-height: 66px; }
.admin-block-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 15px 0; }
.selected-count { background: #eef8f1; color: var(--green); padding: 9px 12px; font-weight: 900; }
.admin-slot-check { position: relative; min-height: 58px; border: 1px solid var(--line); background: white; cursor: pointer; display: grid; place-items: center; text-align: center; padding: 10px; }
.admin-slot-check input { position: absolute; opacity: 0; pointer-events: none; }
.admin-slot-check span, .admin-slot-check strong, .admin-slot-check small { display: block; }
.admin-slot-check small { color: var(--muted); font-weight: 900; font-size: 12px; margin-top: 2px; }
.admin-slot-check.available:hover, .admin-slot-check.selected { background: var(--green); border-color: var(--green); color: white; }
.admin-slot-check.available:hover small, .admin-slot-check.selected small { color: rgba(255,255,255,.78); }
.admin-slot-check.disabled { cursor: not-allowed; background: #eee9df; opacity: .65; border-style: dashed; }
.admin-slot-grid[hidden] { display: none !important; }
.password-form input { min-width: 150px; }

@media (max-width: 980px) {
    .agenda-hero { grid-template-columns: 1fr; min-height: auto; }
    .date-options, .hour-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-body, .admin-two-cols { grid-template-columns: 1fr; }
    .admin-sidebar { position: sticky; height: auto; z-index: 90; }
}
@media (max-width: 760px) {
    .top-strip { display: none; }
    .main-nav { padding: 12px 16px; align-items: flex-start; flex-direction: column; gap: 12px; }
    .nav-actions { width: 100%; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
    .agenda-hero { padding: 44px 18px 88px; }
    .hero-copy h1 { font-size: 43px; letter-spacing: -1.8px; }
    .hero-card { padding: 24px; }
    .agenda-shell { margin-top: -46px; }
    .agenda-intro, .agenda-card { padding-left: 16px; padding-right: 16px; }
    .progress-line { padding-left: 16px; padding-right: 16px; }
    .service-options { grid-template-columns: 1fr; }
    .date-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .date-choice { min-height: 56px; padding: 10px 12px; }
    .date-choice strong { font-size: 14px; }
    .date-choice small { margin-top: 3px; font-size: 12px; }
    .hour-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .hour-choice { min-height: 50px; padding: 8px 4px; }
    .hour-choice strong { font-size: 14px; }
    .hour-choice small { font-size: 10px; }
    .step-title { gap: 12px; }
    .step-title > span { width: 38px; height: 38px; }
    .step-title h3 { font-size: 24px; }
    .admin-mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .admin-brand { margin: 0; min-width: 0; }
    .admin-menu-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: white; padding: 10px 12px; font-weight: 900; cursor: pointer; }
    .admin-sidebar nav { display: none; position: absolute; top: calc(100% - 6px); left: 12px; right: 12px; background: var(--navy); padding: 10px; box-shadow: 0 18px 46px rgba(0,0,0,.22); }
    .admin-sidebar nav.is-open { display: grid; }
    .admin-main { padding: 14px; }
    .stats-grid { grid-template-columns: 1fr; }
    .table-responsive { overflow: visible; }
    table.cards-table { min-width: 0; border-collapse: separate; border-spacing: 0 10px; }
    table.cards-table thead { display: none; }
    table.cards-table, table.cards-table tbody, table.cards-table tr, table.cards-table td { display: block; width: 100%; }
    table.cards-table tr { background: var(--paper-2); border: 1px solid var(--line); padding: 12px; }
    table.cards-table td { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
    table.cards-table td:last-child { border-bottom: 0; }
    table.cards-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
    .inline-form { display: grid; grid-template-columns: 1fr; }
    .admin-date-grid, .admin-slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 420px) {
    .hour-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .date-options { grid-template-columns: 1fr; }
}

/* Ajuste portada: márgenes y composición similar a la landing principal de Rivol */
:root {
    --site-max: 1180px;
    --site-gutter: clamp(18px, 4vw, 42px);
}

.top-strip,
.main-nav {
    padding-left: max(var(--site-gutter), calc((100vw - var(--site-max)) / 2));
    padding-right: max(var(--site-gutter), calc((100vw - var(--site-max)) / 2));
}

.agenda-hero {
    min-height: 610px;
    grid-template-columns: minmax(0, 620px) minmax(320px, 420px);
    justify-content: center;
    gap: clamp(44px, 6vw, 92px);
    padding: clamp(72px, 8vw, 124px) max(var(--site-gutter), calc((100vw - var(--site-max)) / 2));
}

.hero-copy {
    max-width: 620px;
}

.hero-copy h1 {
    max-width: 620px;
    font-size: clamp(52px, 5.4vw, 78px);
}

.hero-copy p {
    max-width: 560px;
}

.hero-card {
    width: 100%;
    max-width: 420px;
    justify-self: end;
    padding: clamp(32px, 4vw, 42px);
}

.agenda-hero::after {
    right: max(-80px, calc((100vw - var(--site-max)) / 2 - 220px));
}

@media (max-width: 1180px) {
    .agenda-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    }
}

@media (max-width: 980px) {
    .agenda-hero {
        grid-template-columns: minmax(0, 720px);
        justify-content: center;
        gap: 28px;
        padding-top: 64px;
        padding-bottom: 96px;
    }

    .hero-card {
        justify-self: start;
        max-width: 620px;
    }
}

@media (max-width: 760px) {
    .top-strip,
    .main-nav,
    .agenda-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .agenda-hero {
        padding-top: 42px;
        padding-bottom: 82px;
        gap: 24px;
    }

    .hero-copy h1 {
        font-size: clamp(40px, 13vw, 52px);
        max-width: 100%;
    }

    .hero-card {
        max-width: 100%;
    }
}

/* Actualización: index directo como formulario + menú público desplegable mobile */
.public-menu-toggle {
    display: none;
}

.direct-agenda-page {
    background:
        radial-gradient(circle at top left, rgba(201,162,78,.12), transparent 360px),
        linear-gradient(180deg, #071225 0%, #071225 300px, var(--paper) 300px, var(--paper) 100%);
}

.direct-agenda-main {
    padding: clamp(34px, 6vw, 76px) 0 42px;
}

.direct-agenda-shell {
    margin: 0 auto 56px;
    max-width: 1040px;
}

.direct-agenda-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(251,248,242,.98)),
        radial-gradient(circle at right top, rgba(201,162,78,.16), transparent 260px);
    border-top: 5px solid var(--gold);
}

.direct-agenda-intro h1 {
    margin: 0;
    max-width: 640px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(38px, 6vw, 64px);
    line-height: .95;
    color: var(--navy);
    letter-spacing: -1.8px;
}

.direct-agenda-intro p {
    max-width: 690px;
    margin-bottom: 0;
}

.btn.dark-outline {
    flex: 0 0 auto;
    color: var(--navy);
    background: transparent;
    border-color: var(--line);
}

.btn.dark-outline:hover {
    color: #9c762a;
    border-color: var(--gold);
    background: rgba(201,162,78,.08);
}

.public-main-nav {
    position: relative;
}

.public-nav-actions .nav-link {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .direct-agenda-page {
        background:
            radial-gradient(circle at top left, rgba(201,162,78,.14), transparent 280px),
            linear-gradient(180deg, #071225 0%, #071225 176px, var(--paper) 176px, var(--paper) 100%);
    }

    .direct-agenda-main {
        padding: 22px 0 26px;
    }

    .public-main-nav {
        min-height: 64px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
    }

    .public-main-nav .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .public-main-nav .brand span:last-child {
        min-width: 0;
    }

    .public-main-nav .brand strong,
    .public-main-nav .brand small {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        flex: 0 0 auto;
        border: 1px solid rgba(255,255,255,.22);
        background: rgba(255,255,255,.08);
        color: white;
        min-height: 40px;
        padding: 9px 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .7px;
        font-size: 11px;
        cursor: pointer;
    }

    .public-menu-toggle.is-open,
    .public-menu-toggle:hover {
        border-color: var(--gold);
        color: var(--gold-2);
        background: rgba(201,162,78,.12);
    }

    .public-nav-actions {
        display: none;
        position: absolute;
        top: calc(100% - 4px);
        left: 16px;
        right: 16px;
        z-index: 120;
        width: auto;
        padding: 10px;
        border: 1px solid rgba(255,255,255,.14);
        background: #071225;
        box-shadow: 0 20px 50px rgba(0,0,0,.32);
    }

    .public-nav-actions.is-open {
        display: grid;
        gap: 8px;
    }

    .public-nav-actions .nav-link {
        display: flex;
        width: 100%;
        min-height: 42px;
        align-items: center;
        padding: 10px 12px;
        background: rgba(255,255,255,.06);
        color: white;
        opacity: 1;
    }

    .public-nav-actions .nav-link:hover {
        background: rgba(201,162,78,.14);
        color: var(--gold-2);
    }

    .direct-agenda-shell {
        margin: 0 auto 34px;
        padding: 0 14px;
    }

    .direct-agenda-intro {
        display: block;
        padding: 20px 16px;
        border-top-width: 4px;
    }

    .direct-agenda-intro h1 {
        font-size: clamp(34px, 11vw, 46px);
        letter-spacing: -1.2px;
    }

    .direct-agenda-intro .btn {
        width: 100%;
        margin-top: 16px;
    }

    .direct-agenda-intro p {
        line-height: 1.6;
    }

    .agenda-card {
        padding-bottom: 20px;
    }
}

/* Ajuste mobile: paso de servicios más compacto */
@media (max-width: 760px) {
    .agenda-shell.direct-agenda-shell {
        padding: 0 10px;
    }

    .progress-line {
        gap: 7px;
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 14px;
    }

    .progress-line span {
        height: 6px;
    }

    .agenda-card {
        padding: 0 12px 16px;
    }

    .wizard-panel {
        padding: 14px 12px;
    }

    .step-title {
        gap: 10px;
        margin-bottom: 12px;
    }

    .step-title > span {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .step-title h3 {
        font-size: 24px;
        line-height: 1.02;
    }

    .step-title p {
        font-size: 14px;
        line-height: 1.4;
    }

    .service-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .choice-card.service-choice {
        min-height: 58px;
        padding: 11px 10px;
        display: flex;
        align-items: center;
    }

    .choice-card.service-choice strong {
        font-size: 14px;
        line-height: 1.18;
    }

    .choice-card.service-choice small {
        display: none;
    }

    .choice-card.service-choice:hover,
    .choice-card.service-choice.selected {
        transform: none;
    }
}

@media (max-width: 420px) {
    .service-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .choice-card.service-choice {
        min-height: 54px;
        padding: 10px 8px;
    }

    .choice-card.service-choice strong {
        font-size: 13.2px;
    }
}


/* Botón WhatsApp con identidad visual propia */
.btn.whatsapp-btn,
a.btn.whatsapp-btn,
.direct-agenda-intro .btn.whatsapp-btn {
    background: #25D366 !important;
    color: #ffffff !important;
    border: 1px solid #25D366 !important;
    box-shadow: 0 14px 30px rgba(37, 211, 102, .24) !important;
}

.btn.whatsapp-btn::before,
a.btn.whatsapp-btn::before,
.direct-agenda-intro .btn.whatsapp-btn::before {
    content: none !important;
    display: none !important;
    margin: 0 !important;
}

.btn.whatsapp-btn:hover,
a.btn.whatsapp-btn:hover,
.direct-agenda-intro .btn.whatsapp-btn:hover {
    background: #128C7E !important;
    border-color: #128C7E !important;
    color: #ffffff !important;
    box-shadow: 0 20px 42px rgba(18, 140, 126, .30) !important;
}

.btn.whatsapp-btn:visited,
a.btn.whatsapp-btn:visited {
    color: #ffffff !important;
}

/* Actualización: logos reales Rivol */
.logo-brand {
    text-transform: none;
    letter-spacing: 0;
    min-width: 0;
}

.brand-logo-img {
    display: block;
    width: auto;
    height: 46px;
    max-width: min(260px, 52vw);
    object-fit: contain;
}

.public-main-nav .brand-logo-img {
    height: 44px;
}

.admin-brand .brand-logo-img,
.admin-logo-img {
    height: 48px;
    max-width: 210px;
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-logo-img {
    height: 58px;
    max-width: min(310px, 100%);
}

@media (max-width: 760px) {
    .public-main-nav .brand-logo-img {
        height: 38px;
        max-width: min(210px, 55vw);
    }

    .admin-mobile-head .admin-brand {
        flex: 1 1 auto;
    }

    .admin-brand .brand-logo-img,
    .admin-logo-img {
        height: 38px;
        max-width: min(190px, 52vw);
    }

    .login-logo-img {
        height: 50px;
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .public-main-nav .brand-logo-img,
    .admin-brand .brand-logo-img,
    .admin-logo-img {
        height: 34px;
        max-width: 172px;
    }
}


/* Corrección mobile: evita que el menú superior tape el título al cargar /agenda */
#agenda {
    scroll-margin-top: 96px;
}

@media (max-width: 760px) {
    .site-header {
        position: relative !important;
        top: auto !important;
        z-index: 100;
    }

    .direct-agenda-main {
        padding-top: 18px !important;
    }

    .direct-agenda-shell {
        margin-top: 0 !important;
    }

    .direct-agenda-intro {
        margin-top: 0 !important;
        overflow: visible;
    }

    .direct-agenda-intro h1 {
        padding-top: 2px;
        overflow: visible;
    }
}
