* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #111827;
}

a {
    color: inherit;
}

.navbar {
    min-height: 72px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 32px;
}

.dashboard-nav,
.marketplace-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.50);
    border-bottom-color: rgba(229, 231, 235, 0.50);
}

.brand,
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #9333ea);
    color: white;
    font-size: 24px;
}

.brand small {
    display: block;
    color: #6b7280;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 700;
}

.nav-link:hover {
    color: #4338ca;
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 32px;
}

.hero-card,
.auth-card,
.event-detail-card {
    max-width: 920px;
    background: white;
    padding: 48px;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 14px;
}

.badge.glow {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

h1 {
    font-size: clamp(34px, 5vw, 64px);
    margin: 18px 0;
    letter-spacing: -0.04em;
}

h2,
h3 {
    margin: 0 0 8px;
}

.hero-card p,
.muted {
    color: #4b5563;
    font-size: 18px;
}

.small {
    font-size: 13px;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn.compact {
    padding: 10px 16px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.btn.primary {
    background: linear-gradient(135deg, #2563eb, #9333ea);
    color: white;
}

.btn.secondary {
    background: #f3f4f6;
    color: #111827;
}

.btn.full {
    width: 100%;
}

.auth-page {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 32px;
}

.auth-card {
    width: min(520px, 100%);
    text-align: left;
}

.auth-card h1,
.auth-card .badge {
    text-align: left;
}

.auth-form {
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.auth-form label {
    font-weight: 700;
    color: #374151;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font: inherit;
    outline: none;
}

.auth-form input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px #eef2ff;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-top: 16px;
    font-weight: 700;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
}

.alert.success {
    background: #ecfdf5;
    color: #065f46;
}

.demo-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    margin-top: 18px;
}

.link-back {
    display: inline-block;
    margin-top: 18px;
    color: #4338ca;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-page,
.marketplace-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.dashboard-hero {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
}

.dashboard-hero h1 {
    margin-bottom: 8px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 22px;
}

.module-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe;
    box-shadow: 0 24px 45px rgba(79, 70, 229, 0.13);
}

.module-card span:first-child {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef2ff;
    font-size: 26px;
}

.module-card h3 {
    font-size: 20px;
    color: #111827;
}

.module-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.module-card strong {
    margin-top: auto;
    color: #4338ca;
    font-size: 18px;
}

.marketplace-hero {
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr;
    gap: 26px;
    align-items: stretch;
    padding: 44px;
    border-radius: 34px;
    background:
            radial-gradient(circle at top right, rgba(147, 51, 234, 0.42), transparent 34%),
            linear-gradient(135deg, #111827, #312e81 48%, #4f46e5);
    color: white;
    box-shadow: 0 28px 70px rgba(49, 46, 129, 0.28);
    margin-bottom: 24px;
}

.marketplace-hero h1 {
    max-width: 760px;
    color: white;
}

.hero-text {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
}

.search-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr auto;
    gap: 12px;
    margin-top: 30px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.search-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: white;
    color: #374151;
    font-weight: 700;
}

.hero-stats {
    display: grid;
    gap: 14px;
}

.hero-stats div {
    display: grid;
    align-content: center;
    min-height: 120px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats strong {
    font-size: 42px;
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.category-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0 34px;
}

.category-strip span {
    padding: 12px 16px;
    border-radius: 999px;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    font-weight: 800;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin: 12px 0 22px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.event-card {
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    background: white;
    color: #111827;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(79, 70, 229, 0.16);
}

.event-cover {
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px;
    background:
            linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(147, 51, 234, 0.92)),
            radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.45), transparent 32%);
}

.event-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 30px;
    backdrop-filter: blur(10px);
}

.event-status {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #4338ca;
    font-weight: 900;
    font-size: 12px;
}

.event-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
}

.event-category {
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 900;
    font-size: 12px;
}

.event-body h3 {
    font-size: 22px;
    line-height: 1.15;
}

.event-description {
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}

.event-info {
    display: grid;
    gap: 8px;
    margin-top: auto;
    color: #6b7280;
    font-size: 14px;
}

.availability {
    display: grid;
    gap: 8px;
}

.availability-bar {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
}

.availability-bar span {
    display: block;
    height: 100%;
    min-width: 10%;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #2563eb);
}

.availability small {
    color: #6b7280;
    font-weight: 700;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.event-footer strong {
    font-size: 22px;
    color: #111827;
}

.card-action {
    color: #4338ca;
    font-weight: 900;
}

.empty-state {
    max-width: 720px;
    margin: 40px auto;
    padding: 36px;
    border-radius: 26px;
    background: white;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.event-detail-card {
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.event-meta-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}

.event-meta-grid strong {
    display: block;
    color: #374151;
    margin-bottom: 8px;
}

.event-meta-grid span {
    color: #111827;
    font-weight: 700;
}

@media (max-width: 900px) {
    .marketplace-hero,
    .search-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .hero-card,
    .auth-card,
    .event-detail-card {
        padding: 28px;
        border-radius: 22px;
    }

    .dashboard-page,
    .marketplace-page {
        width: min(100% - 20px, 1180px);
        padding-top: 24px;
    }

    .marketplace-hero {
        padding: 28px;
        border-radius: 26px;
    }
}

/* Marketplace público: apariencia de producto final */
.marketplace-page {
    width: min(1360px, calc(100% - 28px));
    padding-top: 26px;
}

.brand-mark {
    background: #111827;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.professional-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.82fr);
    min-height: clamp(620px, calc(100vh - 165px), 740px);
    padding: 0;
    overflow: hidden;
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
}

.professional-hero .hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px;
}

.professional-hero .hero-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
            linear-gradient(90deg, rgba(17,24,39,.98) 0%, rgba(17,24,39,.92) 62%, rgba(17,24,39,.36) 100%),
            radial-gradient(circle at 10% 18%, rgba(217,119,6,.26), transparent 30%);
}

.professional-hero h1 {
    max-width: 680px;
    font-size: clamp(2.7rem, 5.3vw, 5.8rem);
    line-height: .96;
}

.professional-hero .hero-text {
    max-width: 620px;
    color: rgba(248,250,252,.82);
    font-size: 1.04rem;
    line-height: 1.7;
}

.professional-hero .badge.glow {
    width: fit-content;
    background: rgba(245,158,11,.14);
    border-color: rgba(245,158,11,.35);
    color: #fef3c7;
}

.hero-media {
    position: relative;
    min-height: inherit;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,24,39,.55), rgba(17,24,39,.08));
}

.professional-stats {
    position: absolute;
    right: 30px;
    bottom: 28px;
    z-index: 3;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    width: min(560px, calc(100% - 60px));
}

.professional-stats div {
    min-height: 86px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.52);
    box-shadow: 0 18px 42px rgba(15,23,42,.22);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.professional-stats strong {
    color: #111827;
    font-size: 1.55rem;
}

.professional-stats span {
    color: #4b5563;
    font-size: .8rem;
}

.professional-categories {
    margin-top: 28px;
}

.professional-categories .category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfe4ee;
    color: #293143;
    font-size: .88rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15,23,42,.045);
}

.professional-categories .category-chip:hover {
    border-color: #c9a34e;
    color: #111827;
    transform: translateY(-1px);
}

.professional-event-card {
    border-radius: 18px;
    border-color: #dfe4ee;
    box-shadow: 0 16px 38px rgba(15,23,42,.075);
}

.professional-event-card:hover {
    box-shadow: 0 22px 54px rgba(15,23,42,.12);
}

.professional-event-card .event-cover {
    min-height: 190px;
    padding: 16px;
    background:
            linear-gradient(135deg, #1f2937, #374151),
            radial-gradient(circle at 20% 20%, rgba(245,158,11,.35), transparent 34%);
}

.event-cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background:
            linear-gradient(145deg, rgba(17,24,39,.08), rgba(17,24,39,.52)),
            linear-gradient(135deg, #394150, #111827 65%);
}

.event-cover-fallback span {
    max-width: 78%;
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.professional-event-card .event-category {
    background: #f7f4ee;
    color: #77581a;
}

.professional-event-card .event-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.professional-event-card .event-info span {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #edf0f6;
    border-radius: 12px;
    background: #fafbfc;
}

.professional-event-card .event-info strong {
    color: #6b7280;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.professional-event-card .event-info b {
    color: #1f2937;
    font-size: .86rem;
}

.professional-event-card .availability-bar span {
    background: linear-gradient(90deg, #0f766e, #d97706);
}

.professional-event-card .card-action {
    color: #77581a;
}

@media (max-width: 960px) {
    .professional-hero {
        grid-template-columns: 1fr;
    }

    .professional-hero .hero-copy {
        padding: 42px 28px 150px;
    }

    .hero-media {
        display: none;
    }
}

@media (max-width: 720px) {
    .professional-stats {
        left: 18px;
        right: 18px;
        bottom: 18px;
        grid-template-columns: 1fr;
        width: auto;
    }

    .professional-stats div {
        min-height: auto;
    }

    .professional-event-card .event-info {
        grid-template-columns: 1fr;
    }
}

/* Marketplace hero sobrio y filtros visibles */
.marketplace-page {
    width: min(1240px, calc(100% - 32px));
    padding-top: 12px;
}

.professional-hero {
    min-height: clamp(470px, 58vh, 540px);
    border-radius: 28px;
}

.professional-hero .hero-copy {
    padding: 36px 44px 150px;
}

.professional-hero h1 {
    max-width: 620px;
    font-size: clamp(2.55rem, 4.4vw, 4.8rem);
}

.professional-hero .hero-text {
    max-width: 630px;
    font-size: .98rem;
}

.hero-search-panel {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 64px;
    z-index: 5;
    grid-template-columns: minmax(230px, 1.22fr) minmax(170px, .78fr) minmax(170px, .78fr) minmax(190px, .86fr) 118px;
    align-items: end;
    gap: 10px;
    margin: 0;
    padding: 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 16px 36px rgba(0,0,0,.2);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.market-search-field {
    display: grid;
    gap: 5px;
}

.market-search-field span {
    color: rgba(255,255,255,.78);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-search-panel .search-input {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    color: #111827;
    font: inherit;
    font-size: .9rem;
    outline: none;
}

.hero-search-panel .search-input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251,191,36,.2);
}

.hero-search-panel .btn {
    min-height: 38px;
    border-radius: 12px;
}

.professional-stats {
    left: 44px;
    right: 44px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    grid-template-columns: none;
    width: auto;
}

.professional-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(243, 244, 246, .78);
    color: rgba(31, 41, 55, .78);
    font-size: .78rem;
    font-weight: 850;
    box-shadow: none;
}

.professional-stats strong {
    margin-right: 5px;
    color: #111827;
    font-size: .95rem;
    line-height: 1;
}

.professional-stats .hero-commerce-note {
    background: rgba(229, 231, 235, .72);
    color: rgba(17, 24, 39, .86);
}

.event-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

.date-filter-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 14px;
}

.date-filter-strip span {
    color: #5b6475;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.date-filter-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #dfe4ee;
    border-radius: 999px;
    background: #fff;
    color: #293143;
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15,23,42,.045);
}

.date-filter-strip a:hover,
.date-filter-strip a.active {
    border-color: #c9a34e;
    background: #111827;
    color: #fff;
}

@media (max-width: 1120px) {
    .hero-search-panel {
        grid-template-columns: 1fr 1fr;
        bottom: 116px;
    }

    .hero-search-panel .btn {
        grid-column: 1 / -1;
    }

    .professional-hero .hero-copy {
        padding-bottom: 300px;
    }
}

@media (max-width: 960px) {
    .professional-hero {
        min-height: auto;
    }

    .professional-hero .hero-copy {
        padding: 42px 28px 150px;
    }

    .hero-search-panel {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        margin: -118px 28px 24px;
    }

    .professional-stats {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin: -6px 28px 24px;
    }
}

@media (max-width: 720px) {
    .marketplace-page {
        width: min(100% - 16px, 1240px);
    }

    .professional-hero .hero-copy {
        padding: 34px 24px 150px;
    }

    .hero-search-panel {
        margin: -104px 16px 20px;
        padding: 12px;
        border-radius: 20px;
    }

    .professional-stats {
        margin: -4px 16px 20px;
        gap: 8px;
    }
}

/* Footer, legal y ayuda pública */
.site-footer {
    margin-top: 64px;
    background: #111827;
    color: #f8fafc;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(160px, 1fr));
    gap: 34px;
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
    padding: 46px 0 34px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.footer-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.footer-brand-block p {
    max-width: 420px;
    margin: 14px 0 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.site-footer section:not(.footer-brand-block) {
    display: grid;
    align-content: start;
    gap: 10px;
}

.site-footer a {
    color: #cbd5e1;
    font-size: .93rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1360px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #94a3b8;
    font-size: .84rem;
}

.cookie-notice {
    position: fixed;
    z-index: 30;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(980px, calc(100% - 48px));
    margin: 0 auto;
    padding: 16px 18px;
    border: 1px solid #dfe4ee;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 65px rgba(15,23,42,.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice strong {
    display: block;
    color: #111827;
    margin-bottom: 4px;
}

.cookie-notice p {
    margin: 0;
    color: #5b6475;
    font-size: .88rem;
    line-height: 1.45;
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.legal-consent {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.5;
}

.legal-consent a {
    color: #77581a;
    font-weight: 900;
    text-decoration: none;
}

.legal-page,
.help-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 28px;
}

.legal-hero,
.help-hero {
    padding: 38px;
    border: 1px solid #e1e6ef;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #f8fafc);
    box-shadow: 0 18px 45px rgba(15,23,42,.06);
}

.legal-hero h1,
.help-hero h1 {
    max-width: 820px;
    margin-bottom: 10px;
    color: #111827;
}

.legal-hero p,
.help-hero p {
    max-width: 780px;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-hero span {
    display: inline-flex;
    margin-top: 14px;
    color: #77581a;
    font-size: .84rem;
    font-weight: 900;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 26px;
    margin-top: 26px;
    align-items: start;
}

.legal-index {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #e4e8f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15,23,42,.055);
}

.legal-index a {
    padding: 9px 10px;
    border-radius: 10px;
    color: #4b5563;
    font-size: .86rem;
    font-weight: 850;
    text-decoration: none;
}

.legal-index a:hover {
    background: #f8fafc;
    color: #111827;
}

.legal-document {
    display: grid;
    gap: 16px;
}

.legal-document.single {
    max-width: 900px;
    margin: 26px auto 0;
}

.legal-document section {
    padding: 28px;
    border: 1px solid #e4e8f1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15,23,42,.05);
}

.legal-document h2 {
    color: #111827;
    font-size: 1.25rem;
}

.legal-document p,
.legal-document li {
    color: #4b5563;
    line-height: 1.72;
}

.legal-document ul {
    margin: 12px 0 0;
    padding-left: 22px;
}

.help-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.help-quick-grid a {
    display: grid;
    gap: 8px;
    min-height: 128px;
    padding: 20px;
    border: 1px solid #e4e8f1;
    border-radius: 20px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(15,23,42,.055);
}

.help-quick-grid strong {
    font-size: 1.02rem;
}

.help-quick-grid span {
    color: #64748b;
    line-height: 1.45;
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.faq-list details {
    border: 1px solid #e4e8f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15,23,42,.045);
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 20px;
    color: #111827;
    font-weight: 900;
}

.faq-list details p {
    margin: 0;
    padding: 0 20px 20px;
    color: #4b5563;
    line-height: 1.7;
}

.support-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 30px;
    padding: 28px;
    border-radius: 24px;
    background: #111827;
    color: #fff;
}

.support-panel h2 {
    color: #fff;
}

.support-panel p {
    max-width: 700px;
    color: #cbd5e1;
    line-height: 1.65;
}

/* Centro de ayuda compacto, equivalente visualmente a un 80 %. */
.help-nav-actions{
    gap:8px;
}

.help-nav-actions .btn{
    padding:7px 11px;
    border-radius:10px;
    font-size:.76rem;
}

.help-nav-actions .btn.secondary{
    font-weight:400;
}

.help-nav-actions .btn.primary{
    font-weight:700;
}

.help-page{
    width:min(940px,calc(100% - 32px));
    padding:26px 0 22px;
}

.help-hero{
    padding:30px;
    border-radius:22px;
}

.help-hero h1{
    margin:13px 0 8px;
    font-size:clamp(2rem,4vw,3.15rem);
}

.help-hero p{
    font-size:.86rem;
    line-height:1.55;
}

.help-page .badge{
    padding:6px 10px;
    font-size:.72rem;
}

.help-quick-grid{
    gap:12px;
    margin:19px 0;
}

.help-quick-grid a{
    gap:6px;
    min-height:102px;
    padding:16px;
    border-radius:16px;
}

.help-quick-grid strong{
    font-size:.84rem;
}

.help-quick-grid span{
    font-size:.75rem;
    line-height:1.4;
}

.help-page .section-heading{
    margin:10px 0 17px;
}

.help-page .section-heading h2{
    font-size:clamp(1.4rem,3vw,2.2rem);
}

.faq-list{
    gap:9px;
    margin-top:22px;
}

.faq-list details{
    border-radius:14px;
}

.faq-list summary{
    padding:14px 16px;
    font-size:.82rem;
}

.faq-list details p{
    padding:0 16px 16px;
    font-size:.78rem;
    line-height:1.55;
}

.support-panel{
    gap:17px;
    margin-top:24px;
    padding:22px;
    border-radius:19px;
}

.support-panel h2{
    font-size:1.35rem;
}

.support-panel p{
    font-size:.8rem;
    line-height:1.5;
}

.support-panel .btn{
    padding:10px 15px;
    border-radius:11px;
    font-size:.8rem;
}

/* Términos y condiciones en una escala visual cercana al 80 %. */
.legal-nav-actions{
    gap:8px;
}

.legal-nav-actions .btn{
    padding:7px 11px;
    border-radius:10px;
    font-size:.76rem;
    font-weight:400;
}

.terms-page{
    width:min(940px,calc(100% - 32px));
    padding:26px 0 22px;
}

.terms-page .legal-hero{
    padding:30px;
    border-radius:22px;
}

.terms-page .legal-hero h1{
    margin:13px 0 8px;
    font-size:clamp(2rem,4vw,3.15rem);
}

.terms-page .legal-hero p{
    font-size:.86rem;
    line-height:1.55;
}

.terms-page .legal-hero span{
    margin-top:11px;
    font-size:.74rem;
}

.terms-page .badge{
    padding:6px 10px;
    font-size:.72rem;
}

.terms-page .legal-layout{
    grid-template-columns:184px minmax(0,1fr);
    gap:20px;
    margin-top:20px;
}

.terms-page .legal-index{
    top:82px;
    gap:6px;
    padding:13px;
    border-radius:16px;
}

.terms-page .legal-index a{
    padding:7px 8px;
    border-radius:8px;
    font-size:.75rem;
    font-weight:700;
}

.terms-page .legal-document{
    gap:13px;
}

.terms-page .legal-document section{
    padding:22px;
    border-radius:18px;
}

.terms-page .legal-document h2{
    font-size:1.05rem;
}

.terms-page .legal-document p,
.terms-page .legal-document li{
    font-size:.79rem;
    line-height:1.58;
}

.terms-page .legal-document ul{
    margin-top:9px;
    padding-left:18px;
}

@media(max-width:900px){
    .terms-page .legal-layout{grid-template-columns:1fr}
}

@media(max-width:620px){
    .terms-page{width:calc(100% - 20px);padding-top:16px}
    .terms-page .legal-hero,.terms-page .legal-document section{padding:18px}
}

@media (max-width: 900px) {
    .site-footer-inner,
    .help-quick-grid,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-index {
        position: static;
    }

    .site-footer-bottom,
    .cookie-notice,
    .support-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 620px) {
    .site-footer-inner,
    .site-footer-bottom {
        width: calc(100% - 28px);
    }

    .legal-hero,
    .help-hero,
    .legal-document section,
    .support-panel {
        padding: 22px;
        border-radius: 20px;
    }
}
