/* =========================
   HEADER / NAVEGACIÓN
========================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: #eff6ff;
    color: #1d4ed8;
}

/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #111827;
}

body {
    min-height: 100vh;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.page-shell {
    padding: 32px 0 60px;
}

a {
    color: inherit;
}

p {
    line-height: 1.6;
}

/* =========================
   ALERTAS
========================= */

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

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

.hero-card {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin: 10px 0 18px;
    letter-spacing: -0.03em;
}

.hero-text {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 780px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

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

.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-list {
    margin: 12px 0 0;
    padding-left: 18px;
}

/* =========================
   BOTONES
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: #2563eb;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-outline {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-outline-danger {
    background: #ffffff;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-warning {
    background: #f59e0b;
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* =========================
   FORMULARIOS
========================= */

.auth-section {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stack-form {
    display: grid;
    gap: 14px;
}

.label {
    font-weight: 700;
    color: #374151;
    margin-bottom: -6px;
}

.input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #ffffff;
}

.input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-helper {
    margin-top: 18px;
    color: #6b7280;
}

.auth-helper a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

/* =========================
   UTILIDADES
========================= */

.muted {
    color: #6b7280;
}

.mt-24 {
    margin-top: 24px;
}

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

@media (max-width: 900px) {
    .hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 1100px);
    }

    .header-row {
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav a {
        padding: 8px 10px;
    }

    .card,
    .auth-card {
        padding: 18px;
        border-radius: 16px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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