/* =========================================
   drv.fan — estilos
   ========================================= */

:root {
    --bg: #0b1220;
    --bg-elev: #131c2e;
    --bg-card: #172238;
    --border: #283752;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --accent: #e63946;
    --accent-2: #ff6b74;
    --navy: #0e1a2b;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --max-w: 1040px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(230, 57, 70, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(230, 57, 70, 0.08), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 18, 32, 0.8);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.logo:hover {
    text-decoration: none;
}

.logo-mark {
    width: 120px;
    height: 48px;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(230, 57, 70, 0.3));
}

.logo-text {
    display: none;
}

/* Mini DRV mark next to each brand card title */
.card-mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: block;
    border-radius: 6px;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-dim);
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--bg-elev);
    text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 40px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0;
}

/* ---------- Sections ---------- */
.section {
    padding: 40px 0 80px;
}

.section-title {
    font-size: 1.5rem;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ---------- Card ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-title {
    margin: 0;
    font-size: 1.35rem;
}

.card-url {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.card-url:hover {
    color: var(--accent-2);
}

.badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-2);
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.4);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.card-description {
    color: var(--text);
    margin: 0 0 20px;
}

/* ---------- Referral box ---------- */
.referral-box {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(230, 57, 70, 0.04));
    border: 1px solid rgba(230, 57, 70, 0.35);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 28px;
}

.referral-text {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 0.98rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #c92a36);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.4);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.55);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

/* ---------- Table ---------- */
.table-title {
    margin: 8px 0 14px;
    font-size: 1.05rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 640px;
}

.tier-table thead {
    background: var(--bg-elev);
}

.tier-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-dim);
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.tier-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.tier-table tbody tr:last-child td {
    border-bottom: none;
}

.tier-table tbody tr:hover {
    background: rgba(230, 57, 70, 0.06);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 30px 0 50px;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.site-footer p {
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
    .hero {
        padding: 48px 0 24px;
    }

    .site-nav a {
        padding: 6px 8px;
        font-size: 0.88rem;
    }

    .card {
        padding: 18px;
    }

    .referral-box {
        padding: 14px;
    }

    .btn {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* Tabla responsive: se convierte en tarjetas apiladas */
    .table-wrapper {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }

    .tier-table {
        min-width: 0;
        border: none;
    }

    .tier-table thead {
        display: none;
    }

    .tier-table,
    .tier-table tbody,
    .tier-table tr,
    .tier-table td {
        display: block;
        width: 100%;
    }

    .tier-table tr {
        background: var(--bg-elev);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    .tier-table tbody tr:hover {
        background: var(--bg-elev);
    }

    .tier-table td {
        padding: 8px 0;
        border-bottom: 1px dashed var(--border);
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        text-align: right;
    }

    .tier-table td:last-child {
        border-bottom: none;
    }

    .tier-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dim);
        text-align: left;
        flex: 0 0 45%;
    }
}

@media (max-width: 420px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
