
/* =========================================================
   DOTABETS — HOME PAGE
   Archivo: public/assets/css/home.css
   ========================================================= */

:root {
    color-scheme: dark;
    --bg: #080d18;
    --bg-soft: #0c1322;
    --surface: #101a2b;
    --surface-raised: #142137;
    --surface-hover: #192a43;
    --border: rgba(151, 177, 215, .13);
    --border-strong: rgba(151, 177, 215, .23);
    --text: #f4f7ff;
    --muted: #94a5c0;
    --muted-light: #bac7dc;
    --red: #f04459;
    --red-light: #ff6b7d;
    --blue: #4e9dff;
    --cyan: #53d8f5;
    --green: #47dfa0;
    --purple: #ac8aff;
    --radius: 16px;
    --container: 1240px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(28, 60, 108, .13), transparent 43%),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system,
        BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

::selection {
    background: rgba(78, 157, 255, .35);
    color: white;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    background: white;
    color: #101828;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* NAVBAR */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 13, 24, .86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    width: min(var(--container), calc(100% - 48px));
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #ff6476, #d92646);
    color: white;
    font-size: 21px;
    font-weight: 950;
    font-style: italic;
    box-shadow: 0 5px 20px rgba(240, 68, 89, .2);
}

.brand-name {
    color: var(--text);
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -.9px;
}

.brand-name > span {
    color: var(--red-light);
}

.main-nav {
    display: flex;
    align-items: center;
    background-color: yellow;
    gap: 28px;
}

.nav-link {
    position: relative;
    padding: 27px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--red);
    content: "";
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 160px;
}

.user-avatar,
.streamer-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(78, 157, 255, .3);
    background: linear-gradient(145deg, #203c62, #14253f);
    color: #a9d3ff;
    font-weight: 850;
}

.user-avatar {
    width: 31px;
    height: 31px;
    border-radius: 10px;
}

.user-name {
    overflow: hidden;
    color: var(--muted-light);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-small {
    min-height: 37px;
    padding: 9px 13px;
    font-size: 11px;
}

.button-large {
    min-height: 49px;
    padding: 13px 20px;
    font-size: 13px;
}

.button-primary {
    background: linear-gradient(105deg, #f04459, #db3150);
    color: white;
    box-shadow: 0 7px 24px rgba(240, 68, 89, .17);
}

.button-primary:hover {
    background: linear-gradient(105deg, #ff596d, #ed3c59);
    box-shadow: 0 9px 30px rgba(240, 68, 89, .28);
}

.button-outline {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, .025);
    color: var(--text);
}

.button-outline:hover {
    border-color: rgba(78, 157, 255, .6);
    background: rgba(78, 157, 255, .08);
}

.button-glass {
    border-color: rgba(180, 203, 239, .18);
    background: rgba(255, 255, 255, .045);
    color: #e5edfa;
    backdrop-filter: blur(10px);
}

.button-glass:hover {
    background: rgba(255, 255, 255, .09);
}

.icon-button {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    transition: .2s;
}

.icon-button:hover {
    border-color: rgba(240, 68, 89, .4);
    color: var(--red-light);
}

.icon-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(112deg, rgba(8, 13, 24, .98) 0%, rgba(10, 20, 37, .97) 57%, rgba(21, 19, 39, .97) 100%);
}

.hero-grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(127, 163, 211, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 163, 211, .07) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-glow {
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-glow-one {
    top: -240px;
    left: 12%;
    background: rgba(49, 119, 226, .17);
}

.hero-glow-two {
    right: 4%;
    bottom: -280px;
    background: rgba(239, 56, 86, .16);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    gap: 50px;
    width: min(var(--container), calc(100% - 48px));
    min-height: 470px;
    margin: auto;
    padding: 62px 0 58px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 23px;
    color: #9fc7ff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.65px;
}

.eyebrow-dot,
.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(71, 223, 160, .5);
}

.hero h1 {
    margin: 0;
    color: #f6f8ff;
    font-size: clamp(38px, 4.5vw, 61px);
    font-weight: 900;
    line-height: 1.11;
    letter-spacing: -2.8px;
}

.hero h1 > span {
    color: transparent;
    background: linear-gradient(100deg, #67b5ff 0%, #8299ff 50%, #ff778b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-description {
    max-width: 520px;
    margin: 23px 0 0;
    color: #a2b1c9;
    font-size: 14px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 23px;
    color: #8395b1;
    font-size: 11px;
}

.trust-icon {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid rgba(71, 223, 160, .25);
    border-radius: 50%;
    background: rgba(71, 223, 160, .08);
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
    display: grid;
    min-height: 340px;
    place-items: center;
    isolation: isolate;
}

.visual-ring {
    position: absolute;
    aspect-ratio: 1;
    border: 1px solid rgba(119, 160, 221, .13);
    border-radius: 50%;
}

.ring-one {
    width: 310px;
    box-shadow: 0 0 70px rgba(61, 116, 202, .06);
}

.ring-two {
    width: 240px;
    border-style: dashed;
    border-color: rgba(255, 103, 125, .19);
    animation: rotate-ring 55s linear infinite;
}

.visual-core {
    position: relative;
    display: flex;
    width: 178px;
    height: 208px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(153, 183, 231, .23);
    border-radius: 27px;
    background:
        radial-gradient(circle at 50% 30%, rgba(78, 157, 255, .18), transparent 57%),
        linear-gradient(145deg, rgba(22, 39, 65, .96), rgba(10, 17, 31, .96));
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .4),
        inset 0 1px rgba(255, 255, 255, .08);
    transform: rotate(-5deg);
}

.visual-symbol {
    color: #f4f7ff;
    font-size: 104px;
    font-style: italic;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 0 35px rgba(78, 157, 255, .35);
}

.visual-caption {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
}

.visual-caption span {
    color: var(--red-light);
}

.visual-line {
    width: 53px;
    height: 2px;
    margin: 10px 0 7px;
    background: linear-gradient(90deg, var(--blue), var(--red));
}

.visual-subtitle {
    color: #8295b4;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 3px;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(159, 185, 227, .16);
    border-radius: 12px;
    background: rgba(14, 25, 43, .88);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
}

.floating-card-top {
    top: 34px;
    right: -2px;
}

.floating-card-bottom {
    bottom: 29px;
    left: -7px;
}

.floating-icon {
    display: grid;
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 10px;
    background: rgba(240, 68, 89, .12);
    color: var(--red-light);
    font-size: 20px;
}

.floating-icon.blue {
    background: rgba(78, 157, 255, .12);
    color: var(--blue);
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 11px;
    font-weight: 800;
}

.floating-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.hero-bottom-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--red), transparent);
    opacity: .55;
}

@keyframes rotate-ring {
    to {
        transform: rotate(360deg);
    }
}

/* STATS */

.stats-section {
    border-bottom: 1px solid var(--border);
    background: rgba(13, 21, 36, .76);
}

.stats-container {
    display: flex;
    align-items: center;
    gap: 30px;
    width: min(var(--container), calc(100% - 48px));
    min-height: 104px;
    margin: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.stat-icon {
    display: grid;
    width: 41px;
    height: 41px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(240, 68, 89, .16);
    border-radius: 12px;
    background: rgba(240, 68, 89, .07);
    color: var(--red-light);
    font-size: 22px;
}

.stat-icon.blue {
    border-color: rgba(78, 157, 255, .2);
    background: rgba(78, 157, 255, .08);
    color: var(--blue);
}

.stat-icon.purple {
    border-color: rgba(172, 138, 255, .2);
    background: rgba(172, 138, 255, .08);
    color: var(--purple);
}

.stat-item strong,
.stat-item span:not(.stat-icon) {
    display: block;
}

.stat-item strong {
    font-size: 23px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -.6px;
}

.stat-item div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.stat-divider {
    width: 1px;
    height: 39px;
    flex-shrink: 0;
    background: var(--border-strong);
}

.stats-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    color: #8598b6;
    font-size: 10px;
    white-space: nowrap;
}

/* SECCIÓN DE PARTIDAS */

.matches-section {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 66px 0 76px;
}

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

.section-kicker {
    display: block;
    color: #8bbcff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.7px;
}

.section-heading h2,
.cta-content h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -1px;
}

.section-heading h2 > span {
    color: #8ebcff;
}

.section-heading p,
.cta-content p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.matches-count {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
    color: #bdcbe0;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

/* TARJETA DE PARTIDA */

.match-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, rgba(19, 31, 51, .97), rgba(12, 20, 34, .98));
    box-shadow: 0 9px 35px rgba(0, 0, 0, .11);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: rgba(89, 154, 242, .4);
    box-shadow: 0 17px 42px rgba(0, 0, 0, .23);
}

.match-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 17px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .015);
}

.streamer-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.streamer-avatar {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    font-size: 15px;
}

.streamer-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.streamer-label {
    color: #7187a6;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1px;
}

.streamer-details strong {
    overflow: hidden;
    color: #e3eaf7;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 6px 9px;
    border: 1px solid rgba(71, 223, 160, .18);
    border-radius: 7px;
    background: rgba(71, 223, 160, .055);
    color: #75e7b5;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .5px;
}

.match-status .status-dot {
    width: 6px;
    height: 6px;
}

.match-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 19px 17px;
}

.match-reference {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7185a5;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1px;
}

.match-reference > span:first-child {
    color: #82baff;
}

.reference-divider {
    color: #465b79;
}

.match-title {
    margin: -8px 0 -7px;
    color: #f2f6ff;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.5;
    letter-spacing: -.25px;
    overflow-wrap: anywhere;
}

.match-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #7f92b0;
    font-size: 10px;
    line-height: 1.6;
}

.match-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* MERCADOS Y CUOTAS */

.markets-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 2px;
}

.market-block {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(151, 177, 215, .09);
    border-radius: 11px;
    background: rgba(5, 10, 19, .35);
}

.market-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.market-indicator {
    width: 3px;
    height: 15px;
    flex-shrink: 0;
    border-radius: 4px;
    background: linear-gradient(var(--blue), var(--purple));
}

.market-heading h4 {
    min-width: 0;
    margin: 0;
    color: #dbe6f8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.market-options-count {
    margin-left: auto;
    color: #7185a3;
    font-size: 8px;
    white-space: nowrap;
}

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

.option-card {
    display: flex;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid rgba(139, 165, 206, .14);
    border-radius: 8px;
    background: linear-gradient(140deg, rgba(27, 43, 67, .85), rgba(20, 33, 53, .8));
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(78, 157, 255, .58);
    background: linear-gradient(140deg, rgba(33, 62, 98, .92), rgba(22, 42, 68, .95));
}

.option-name {
    color: #d9e4f5;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.option-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.option-odds {
    color: #64cfff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.option-arrow {
    color: #708bab;
    font-size: 13px;
    transition: color .18s, transform .18s;
}

.option-card:hover .option-arrow {
    color: #a4d5ff;
    transform: translate(2px, -2px);
}

.empty-market {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px dashed rgba(151, 177, 215, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .015);
}

.empty-market > span {
    color: var(--muted);
    font-size: 22px;
}

.empty-market strong {
    display: block;
    color: #cbd8ec;
    font-size: 11px;
}

.empty-market p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.7;
}

.match-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 17px;
    border-top: 1px solid var(--border);
    color: #788ba8;
    font-size: 9px;
}

.match-card-footer > a {
    color: #91c2ff;
    font-weight: 750;
    transition: color .2s;
}

.match-card-footer > a:hover {
    color: white;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
}

.footer-brand-mark {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 5px;
    background: rgba(240, 68, 89, .14);
    color: var(--red-light);
    font-size: 12px;
    font-style: italic;
    font-weight: 950;
}

/* ESTADO VACÍO */

.empty-state {
    display: flex;
    min-height: 310px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 35px 20px;
    border: 1px dashed rgba(151, 177, 215, .2);
    border-radius: 18px;
    background:
        radial-gradient(ellipse at center, rgba(52, 92, 151, .09), transparent 65%),
        rgba(14, 23, 39, .48);
    text-align: center;
}

.empty-state-icon {
    display: grid;
    width: 67px;
    height: 67px;
    margin-bottom: 23px;
    place-items: center;
    border: 1px solid rgba(78, 157, 255, .2);
    border-radius: 20px;
    background: rgba(78, 157, 255, .08);
    color: #87bcff;
    font-size: 33px;
}

.empty-state h3 {
    margin: 9px 0 0;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.5px;
}

.empty-state p {
    max-width: 410px;
    margin: 10px 0 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* CTA PARA STREAMERS */

.bottom-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: min(var(--container), calc(100% - 48px));
    min-height: 200px;
    margin: 0 auto 65px;
    overflow: hidden;
    padding: 36px 43px;
    border: 1px solid rgba(111, 149, 210, .2);
    border-radius: 17px;
    background:
        radial-gradient(ellipse at 90% 50%, rgba(76, 120, 220, .17), transparent 40%),
        linear-gradient(110deg, #101b2d, #141c31);
}

.cta-decoration {
    position: absolute;
    top: -87px;
    right: 190px;
    color: rgba(125, 163, 226, .045);
    font-size: 310px;
    font-style: italic;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.cta-content h2 {
    font-size: 27px;
}

.cta-content p {
    max-width: 590px;
}

.bottom-cta > .button {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(7, 11, 20, .9);
}

.footer-inner {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(var(--container), calc(100% - 48px));
    margin: auto;
}

.footer-logo .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 17px;
}

.footer-logo .brand-name {
    font-size: 17px;
}

.footer-inner > p,
.copyright {
    color: #73839e;
    font-size: 10px;
}

.footer-inner > p {
    text-align: center;
}

.copyright {
    flex-shrink: 0;
}

/* RESPONSIVE */

@media (min-width: 1450px) {
    .hero-inner {
        min-height: 510px;
    }
}

@media (max-width: 1050px) {
    .nav-container {
        gap: 18px;
    }

    .main-nav {
        gap: 17px;
    }

    .hero-inner {
        grid-template-columns: 1fr .72fr;
        gap: 20px;
    }

    .hero-visual {
        transform: scale(.87);
    }

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

    .stats-container {
        gap: 20px;
    }

    .stats-note {
        display: none;
    }
}

@media (max-width: 760px) {
    .nav-container {
        width: calc(100% - 32px);
        min-height: 69px;
        flex-wrap: wrap;
        gap: 0 14px;
        padding: 12px 0;
    }

    .brand-name {
        font-size: 19px;
    }

    .brand-mark {
        width: 33px;
        height: 33px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 30px;
        border-top: 1px solid var(--border);
        margin-top: 12px;
    }

    .nav-link {
        padding: 12px 0 5px;
        font-size: 11px;
    }

    .nav-link.active::after {
        bottom: -1px;
    }

    .nav-actions {
        gap: 7px;
        margin-left: auto;
    }

    .user-chip {
        max-width: 100px;
    }

    .user-name {
        max-width: 70px;
    }

    .nav-actions .button-small {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .icon-button {
        width: 33px;
        height: 33px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        width: calc(100% - 36px);
        min-height: auto;
        padding: 52px 0 42px;
    }

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

    .hero h1 {
        font-size: clamp(37px, 8vw, 53px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-visual {
        display: none;
    }

    .stats-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: calc(100% - 36px);
        min-height: auto;
        padding: 22px 0;
    }

    .stat-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 18px;
    }

    .stat-item strong {
        font-size: 20px;
    }

    .stat-item div > span {
        font-size: 10px;
        line-height: 1.5;
    }

    .stat-divider {
        display: none;
    }

    .matches-section {
        width: calc(100% - 36px);
        padding: 47px 0 50px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .matches-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .match-card-top,
    .match-card-body,
    .match-card-footer {
        padding-right: 15px;
        padding-left: 15px;
    }

    .match-card-body {
        gap: 14px;
    }

    .bottom-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        width: calc(100% - 36px);
        min-height: 0;
        margin-bottom: 45px;
        padding: 27px 24px;
    }

    .cta-decoration {
        right: 0;
        font-size: 230px;
    }

    .cta-content h2 {
        font-size: 25px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        width: calc(100% - 36px);
        padding: 25px 0;
    }

    .footer-inner > p {
        margin: 0;
        text-align: left;
    }
}

@media (max-width: 390px) {
    .nav-container {
        width: calc(100% - 24px);
    }

    .brand {
        gap: 6px;
    }

    .brand-name {
        font-size: 17px;
    }

    .nav-actions {
        gap: 5px;
    }

    .nav-actions .button-small {
        padding: 7px 8px;
        font-size: 9px;
    }

    .user-chip {
        max-width: 35px;
    }

    .user-name {
        display: none;
    }

    .hero-inner,
    .stats-container,
    .matches-section,
    .bottom-cta {
        width: calc(100% - 28px);
    }

    .hero h1 {
        font-size: 35px;
        letter-spacing: -1.6px;
    }

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

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

    .stat-item strong {
        font-size: 18px;
    }

    .stat-item div > span {
        font-size: 9px;
    }

    .market-block {
        padding: 10px;
    }

    .option-card {
        padding: 9px;
    }
}

/* ACCESIBILIDAD: MENOS MOVIMIENTO */

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