:root {
    --primary: #C0392B;
    --primary-dark: #8f2118;
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --surface-soft: #EFEAE7;
    --text: #1A1A1A;
    --muted: #666666;
    --line: #E0E0E0;
    --danger: #b42318;
    --success: #1f7a45;
    --container: min(100% - 32px, 1440px);
    --radius: 0;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, .08);
}

/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.dashboard,
.dashboard *,
.profile-link-box,
.profile-link-box *,
.upload-layout,
.upload-layout *,
.media-grid,
.media-grid *,
.routes-page,
.routes-page *,
.route-form-page,
.route-form-page *,
.route-detail-page,
.route-detail-page * {
    min-width: 0;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 18px max(16px, 4vw);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 100%;
    font-size: clamp(1.35rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: 1;
    white-space: nowrap;
}

.brand span {
    color: var(--primary);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.top-nav a {
    color: var(--muted);
    white-space: nowrap;
}

.top-nav a:hover {
    color: var(--primary);
}

/* =========================
   BUTTONS
========================= */

.nav-button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--text);
    padding: 12px 16px;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: .2s ease;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
}

.nav-button:hover,
.button:hover {
    background: var(--text);
    color: #fff;
}

.button.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.button.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button.full {
    width: 100%;
}

/* =========================
   GLOBAL TEXT
========================= */

.hero-kicker,
.eyebrow {
    color: var(--primary);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.section {
    width: var(--container);
    margin: 0 auto;
    padding: 44px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.section h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.section-sub {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 650px;
    line-height: 1.55;
}

/* =========================
   HERO HOME
========================= */

.hero {
    width: var(--container);
    margin: 0 auto;
    padding: clamp(46px, 8vw, 110px) 0 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

.hero h1 {
    margin: 12px 0 0;
    max-width: 960px;
    font-size: clamp(2.7rem, 11vw, 8rem);
    font-weight: 300;
    letter-spacing: -.08em;
    line-height: .88;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hero p {
    margin: 0;
    max-width: 650px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 22px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.hero-url {
    background: var(--text);
    color: #fff;
    padding: 16px;
    font-weight: 800;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
}

/* =========================
   ADS
========================= */

.ad-slot {
    width: var(--container);
    margin: 22px auto;
    min-height: 110px;
    border: 1px dashed #b8b8b8;
    background: rgba(255, 255, 255, .55);
    display: grid;
    place-items: center;
    color: #888;
    text-align: center;
    padding: 18px;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    overflow: hidden;
}

.ad-slot.square {
    width: 100%;
    min-height: 260px;
}

.ad-slot-top,
.ad-slot-bottom {
    width: var(--container);
    margin: 22px auto;
    min-height: 120px;
    background: transparent;
    border: none;
    padding: 0;
}

.ad-card {
    position: relative;
    background: transparent;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    min-height: 280px;
    aspect-ratio: 1 / 1;
}

.ad-card::before {
    content: "Publicidad";
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: #777;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 8px;
}

.ad-card ins {
    display: block !important;
    width: 100%;
    min-height: 280px;
}

.ad-card .adsbygoogle {
    width: 100%;
    height: 100%;
}

/* =========================
   MEDIA GRID
========================= */

.media-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px;
}

.media-card {
    position: relative;
    background: var(--surface-soft);
    overflow: hidden;
    min-height: 280px;
    aspect-ratio: 1 / 1;
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card video {
    background: #111;
}

.media-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
    pointer-events: none;
}

.media-overlay h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.media-overlay p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: .88rem;
    overflow-wrap: anywhere;
}

/* =========================
   MEDIA ZOOM
========================= */

.media-zoom-button,
.media-lightbox-button {
    all: unset;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    overflow: hidden;
    background: #111;
}

.media-zoom-button img,
.media-zoom-button video,
.media-lightbox-button img,
.media-lightbox-button video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zoom-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, .92);
    color: #111;
    padding: 7px 10px;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-4px);
    transition: .2s ease;
}

.media-card:hover .zoom-badge {
    opacity: 1;
    transform: translateY(0);
}

.video-badge {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .18);
    pointer-events: none;
}

.dashboard-media-card video {
    pointer-events: none;
}

.dashboard-media-card .media-overlay {
    padding-bottom: 22px;
}

/* =========================
   FORMS GENERAL
========================= */

.form-page {
    width: min(100% - 32px, 520px);
    margin: 56px auto;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(24px, 6vw, 46px);
}

.form-page h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 7vw, 3.6rem);
    line-height: .95;
    font-weight: 300;
    letter-spacing: -.06em;
    text-transform: uppercase;
}

.form-page p {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.55;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-title {
    margin: 8px 0 0;
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -.04em;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field textarea,
.field select,
.copy-row input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid var(--line);
    background: transparent;
    padding: 12px 0;
    font: inherit;
    outline: 0;
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.copy-row input:focus {
    border-bottom-color: var(--primary);
}

.help {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.errors {
    background: #fff0ee;
    color: var(--danger);
    border: 1px solid #ffd1cc;
    padding: 14px;
    margin-bottom: 18px;
}

.errors ul {
    margin: 0;
    padding-left: 20px;
}

/* =========================
   FLASH
========================= */

.flash {
    width: min(100% - 32px, 920px);
    margin: 18px auto 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.flash-success {
    border-color: rgba(31, 122, 69, .28);
    color: var(--success);
}

.flash-error {
    border-color: rgba(180, 35, 24, .28);
    color: var(--danger);
}

/* =========================
   DASHBOARD
========================= */

.dashboard {
    width: var(--container);
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    gap: 28px;
}

.dashboard-top {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    align-items: end;
}

.dashboard h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -.07em;
    text-transform: uppercase;
    line-height: .9;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(20px, 4vw, 32px);
}

.upload-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.profile-link-box {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 20px;
    display: grid;
    gap: 12px;
}

.profile-link-box label {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* =========================
   PROFILE
========================= */

.profile-header {
    width: var(--container);
    margin: 0 auto;
    padding: clamp(44px, 8vw, 96px) 0 24px;
    display: grid;
    gap: 18px;
}

.profile-header h1 {
    margin: 0;
    font-size: clamp(3rem, 13vw, 9rem);
    line-height: .82;
    font-weight: 300;
    letter-spacing: -.08em;
    text-transform: uppercase;
    word-break: break-word;
}

.profile-meta {
    color: var(--muted);
    line-height: 1.5;
    max-width: 680px;
}

.empty {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 36px;
    color: var(--muted);
    text-align: center;
}

/* =========================
   DELETE BUTTON
========================= */

.delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.delete-form button {
    position: relative;
    z-index: 6;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    border: 0;
    padding: 8px 10px;
    cursor: pointer;
    font-size: .75rem;
}

.delete-form button:hover {
    background: var(--primary);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    display: none;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #000;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .45);
}

.lightbox-content img[style*="block"],
.lightbox-content video[style*="block"] {
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10000;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
    transition: .2s ease;
}

.lightbox-close:hover {
    background: #fff;
    color: #000;
}

/* =========================
   LEGAL PAGES
========================= */

.legal-page {
    width: var(--container);
    margin: 0 auto;
    padding: clamp(42px, 7vw, 90px) 0;
}

.legal-hero {
    max-width: 980px;
    margin-bottom: clamp(36px, 6vw, 72px);
}

.legal-hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: .86;
    font-weight: 300;
    letter-spacing: -.08em;
    text-transform: uppercase;
}

.legal-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.legal-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.legal-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(22px, 4vw, 36px);
    display: grid;
    gap: 14px;
}

.legal-card-featured {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.legal-card-featured p,
.legal-card-featured li {
    color: rgba(255, 255, 255, .78);
}

.legal-number {
    color: var(--primary);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.legal-card h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -.05em;
    text-transform: uppercase;
}

.legal-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.legal-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.legal-card li {
    padding-left: 4px;
}

.legal-contact {
    background: var(--surface-soft);
}

.legal-contact a {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.legal-contact a:hover {
    background: var(--primary-dark);
}

/* =========================
   ROUTES / EVENTS PREMIUM
========================= */

.routes-page,
.route-form-page,
.route-detail-page {
    width: var(--container);
    margin: 0 auto;
    padding: clamp(42px, 7vw, 96px) 0;
}

.routes-hero,
.route-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: end;
    margin-bottom: clamp(42px, 7vw, 82px);
}

.route-form-hero {
    max-width: 980px;
    margin-bottom: clamp(34px, 6vw, 64px);
}

.routes-hero h1,
.route-form-hero h1,
.route-detail-hero h1 {
    margin: 12px 0 18px;
    max-width: 980px;
    font-size: clamp(3.2rem, 10vw, 8.5rem);
    line-height: .84;
    font-weight: 300;
    letter-spacing: -.085em;
    text-transform: uppercase;
}

.routes-hero p,
.route-form-hero p,
.route-detail-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.routes-hero-panel,
.route-summary-card {
    background:
        linear-gradient(135deg, rgba(192, 57, 43, .08), transparent 38%),
        var(--surface);
    border: 1px solid var(--line);
    padding: clamp(22px, 4vw, 34px);
    display: grid;
    gap: 18px;
}

.routes-hero-panel p {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.45;
}

.routes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.route-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(22px, 4vw, 30px);
    min-height: 330px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.route-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% -20%;
    height: 180px;
    background: radial-gradient(circle, rgba(192, 57, 43, .16), transparent 62%);
    pointer-events: none;
}

.route-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 57, 43, .35);
    box-shadow: var(--shadow-soft);
}

.route-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.route-badge {
    width: fit-content;
    background: var(--primary);
    color: #fff;
    padding: 7px 10px;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.route-badge.muted {
    background: var(--text);
}

.route-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: .9;
    letter-spacing: -.065em;
    text-transform: uppercase;
    font-weight: 300;
}

.route-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.route-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    margin-top: auto;
    color: var(--muted);
    font-size: .92rem;
}

.route-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary);
    display: inline-block;
    flex: 0 0 auto;
}

.route-card .button {
    position: relative;
    z-index: 1;
    width: fit-content;
}

/* ROUTE FORMS */

.route-form {
    display: grid;
    gap: 22px;
}

.route-form.compact {
    margin-top: 18px;
}

.route-form-card,
.route-admin-box,
.route-join-box,
.route-chat-section {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(24px, 4vw, 42px);
}

.route-form-card {
    display: grid;
    gap: 22px;
}

.route-form-card h2,
.route-admin-box h2,
.route-join-box h2,
.route-chat-section h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: .9;
    letter-spacing: -.065em;
    text-transform: uppercase;
    font-weight: 300;
}

.route-step {
    width: fit-content;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.route-form .field {
    display: grid;
    gap: 8px;
}

.route-form .field label,
.invite-box label {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.route-form .field input,
.route-form .field textarea,
.route-form .field select,
.invite-box input,
.chat-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fafafa;
    padding: 15px 16px;
    font: inherit;
    outline: 0;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.route-form .field textarea {
    min-height: 130px;
    resize: vertical;
}

.route-form .field input:focus,
.route-form .field textarea:focus,
.route-form .field select:focus,
.invite-box input:focus,
.chat-form textarea:focus {
    border-color: rgba(192, 57, 43, .55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, .08);
}

/* OPTIONS */

.route-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.route-option {
    cursor: pointer;
    border: 1px solid var(--line);
    background: #fafafa;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    transition: .18s ease;
}

.route-option:hover {
    border-color: rgba(192, 57, 43, .35);
    background: #fff;
}

.route-option input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.route-option strong {
    display: block;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
}

.route-option span {
    color: var(--muted);
    line-height: 1.5;
}

.route-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(192, 57, 43, .06);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    line-height: 1.5;
    background: #fafafa;
    border: 1px solid var(--line);
    padding: 15px 16px;
}

.check-row input {
    accent-color: var(--primary);
}

.form-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.stripe-placeholder,
.joined-box {
    background: var(--text);
    color: #fff;
    padding: 18px;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* ROUTE DETAIL */

.route-summary-card {
    align-self: stretch;
}

.route-summary-card > div {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.route-summary-card span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.route-summary-card strong {
    font-size: 1.15rem;
    line-height: 1.25;
}

.route-admin-box,
.route-join-box,
.route-chat-section {
    margin-bottom: 22px;
}

.invite-box {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.invite-box input {
    color: var(--muted);
}

/* PHOTO PICKER */

.photo-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.photo-picker label {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--surface-soft);
    transition: .18s ease;
    overflow: hidden;
}

.photo-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.photo-picker img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.photo-picker label:has(input:checked) {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.photo-picker label:has(input:checked)::after {
    content: "Seleccionada";
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: var(--primary);
    color: #fff;
    padding: 6px 8px;
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* CHAT */

.chat-box {
    margin-top: 20px;
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    padding: 16px;
}

.chat-message {
    background: #fff;
    border: 1px solid var(--line);
    padding: 15px;
}

.chat-message strong {
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.chat-message p {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

.chat-message span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: .78rem;
}

.chat-empty {
    color: var(--muted);
    margin: 0;
}

.chat-form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.chat-form textarea {
    min-height: 95px;
    resize: vertical;
}

/* ATTENDEES */

.attendees-list,
.event-images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.attendee-card {
    background: #fafafa;
    border: 1px solid var(--line);
    padding: 14px;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 15px;
    align-items: center;
}

.attendee-card img {
    width: 92px;
    height: 92px;
    object-fit: cover;
}

.attendee-card h3 {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: -.02em;
}

.attendee-card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

/* EVENT IMAGES */

.event-images-grid {
    margin-top: 18px;
}

.event-images-grid article {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    overflow: hidden;
}

.event-images-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.event-images-grid p {
    margin: 0;
    padding: 13px;
    color: var(--muted);
    font-size: .9rem;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 28px max(16px, 4vw);
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-weight: 800;
    font-size: .82rem;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    gap: 18px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (min-width: 720px) {
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .copy-row {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .routes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-picker {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .event-images-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-card-featured,
    .legal-contact {
        grid-column: span 2;
    }
}

/* =========================
   RESPONSIVE DESKTOP
========================= */

@media (min-width: 1024px) {
    .hero {
        grid-template-columns: 1.2fr .8fr;
        align-items: end;
    }

    .media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upload-layout {
        grid-template-columns: 420px 1fr;
        align-items: start;
    }

    .dashboard-top {
        grid-template-columns: 1fr auto;
    }

    .routes-hero,
    .route-detail-hero {
        grid-template-columns: 1.15fr .85fr;
    }

    .routes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-images-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer {
        flex-direction: row;
    }
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 719px) {
    :root {
        --container: min(100% - 32px, 1440px);
    }

    .site-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 16px;
        text-align: center;
    }

    .brand {
        justify-content: center;
        font-size: clamp(1.35rem, 7vw, 1.85rem);
        letter-spacing: -.07em;
        width: 100%;
    }

    .top-nav {
        width: 100%;
        justify-content: center;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .top-nav::-webkit-scrollbar {
        display: none;
    }

    .top-nav a {
        flex: 0 0 auto;
    }

    .nav-button,
    .button {
        padding: 12px 14px;
        font-size: .68rem;
        letter-spacing: .14em;
    }

    .hero {
        padding: 54px 0 36px;
        gap: 26px;
    }

    .hero-kicker,
    .eyebrow {
        font-size: .68rem;
        letter-spacing: .28em;
        line-height: 1.55;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.7rem);
        line-height: .86;
        letter-spacing: -.09em;
        max-width: 100%;
    }

    .hero-panel {
        padding: 20px;
        gap: 16px;
    }

    .hero-panel p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-url {
        padding: 15px;
        font-size: .92rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .section {
        padding: 36px 0;
    }

    .section-head {
        display: grid;
        gap: 12px;
        align-items: start;
    }

    .section h2 {
        font-size: clamp(2.3rem, 12vw, 3.6rem);
        line-height: .92;
    }

    .media-card {
        min-height: 260px;
    }

    .zoom-badge {
        opacity: 1;
        transform: none;
        font-size: .58rem;
    }

    .form-page {
        margin: 36px auto;
    }

    .dashboard {
        width: min(100% - 32px, 1440px);
        padding: 34px 0;
        overflow-x: hidden;
    }

    .dashboard-top {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dashboard-top .button {
        width: 100%;
    }

    .dashboard h1 {
        font-size: clamp(3rem, 14vw, 4.6rem);
        word-break: break-word;
    }

    .dashboard .section-sub {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .profile-link-box {
        padding: 18px;
        max-width: 100%;
        overflow: hidden;
    }

    .copy-row {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .copy-row input {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .copy-row .button {
        width: 100%;
    }

    .upload-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
        overflow: hidden;
    }

    .card {
        max-width: 100%;
        overflow: hidden;
    }

    .field input,
    .field textarea,
    .field select {
        max-width: 100%;
        min-width: 0;
    }

    .profile-header h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .lightbox {
        padding: 14px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
        font-size: 1.9rem;
    }

    .legal-page {
        padding: 44px 0;
    }

    .legal-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.8rem);
    }

    .legal-card {
        padding: 22px;
    }

    .legal-card h2 {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

    .legal-contact a {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: .7rem;
    }

    .routes-page,
    .route-form-page,
    .route-detail-page {
        padding: 44px 0;
    }

    .routes-hero h1,
    .route-form-hero h1,
    .route-detail-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.8rem);
    }

    .route-form-card,
    .route-admin-box,
    .route-join-box,
    .route-chat-section,
    .routes-hero-panel,
    .route-summary-card {
        padding: 22px;
    }

    .route-form-card h2,
    .route-admin-box h2,
    .route-join-box h2,
    .route-chat-section h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .route-card {
        min-height: auto;
    }

    .attendee-card {
        grid-template-columns: 1fr;
    }

    .attendee-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .site-footer {
        align-items: center;
        text-align: center;
    }

    .site-footer nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {
    :root {
        --container: min(100% - 28px, 1440px);
    }

    .site-header {
        padding: 16px 14px;
    }

    .brand {
        font-size: 1.35rem;
        justify-content: center;
    }

    .top-nav {
        justify-content: center;
        gap: 8px;
        font-size: .66rem;
    }

    .nav-button,
    .button {
        padding: 11px 12px;
        font-size: .64rem;
        letter-spacing: .12em;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 14.5vw, 4rem);
    }

    .hero-panel {
        padding: 18px;
    }

    .hero-url {
        font-size: .82rem;
    }

    .dashboard {
        width: min(100% - 28px, 1440px);
    }

    .dashboard h1 {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .profile-link-box {
        padding: 16px;
    }

    .form-title {
        font-size: 1.7rem;
    }

    .media-card {
        min-height: 230px;
    }

    .route-form-card,
    .route-admin-box,
    .route-join-box,
    .route-chat-section,
    .routes-hero-panel,
    .route-summary-card {
        padding: 18px;
    }

    .route-card {
        padding: 20px;
    }
}