﻿:root {
    --bg: #FAF6ED;
    --ink: #2B2420;
    --muted: #6B5F4F;
    --muted-2: #8A7F6E;
    --border: #E8DFCF;
    --border-soft: #F0E9DB;
    --card: #FFFFFF;
    --accent: #C1572E;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Sans', sans-serif;
}

h1, h2, h3 {
    font-family: 'Newsreader', serif;
    font-weight: 600;
    color: var(--ink);
}

.navbar {
    background: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.navbar-brand {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--ink) !important;
}

.nav-link {
    color: var(--muted) !important;
}

    .nav-link:hover {
        color: var(--ink) !important;
    }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

    .btn-primary:hover {
        background: #A64620;
        border-color: #A64620;
    }

.card-paper {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(43, 36, 32, 0.08);
}

.auth-wrap {
    display: flex;
    justify-content: center;
    padding-top: 4rem;
}

.auth-card {
    width: 420px;
}

.auth-eyebrow {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

.form-control {
    border: none;
    border-bottom: 2px solid #D9CBB3;
    border-radius: 0;
    background: transparent;
    padding: .6rem .1rem;
}

    .form-control:focus {
        box-shadow: none;
        border-bottom-color: var(--accent);
    }

.table-paper {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

    .table-paper thead {
        background: var(--border-soft);
    }

    .table-paper th {
        font-family: 'Newsreader', serif;
        font-weight: 600;
        color: var(--ink);
        border-bottom: 1px solid var(--border);
    }

    .table-paper td {
        border-bottom: 1px solid var(--border-soft);
        color: var(--muted);
        vertical-align: middle;
    }

    .table-paper tr:last-child td {
        border-bottom: none;
    }

.badge-estado {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3rem .6rem;
    border-radius: 999px;
}

.badge-publicada {
    background: rgba(193, 87, 46, .12);
    color: var(--accent);
}

.badge-borrador {
    background: rgba(138, 127, 110, .12);
    color: var(--muted-2);
}

.hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 3rem 0 2rem;
}

.hero-text {
    flex: 1 1 360px;
}

.hero-eyebrow {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
    opacity: 0;
    animation: fadeInUp .6s ease-out forwards;
}

.hero-title {
    font-size: 2.6rem;
    margin: 0 0 1rem;
    opacity: 0;
    animation: fadeInUp .6s ease-out .1s forwards;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 1.75rem;
    max-width: 480px;
    opacity: 0;
    animation: fadeInUp .6s ease-out .2s forwards;
}

.hero-actions {
    display: flex;
    gap: .75rem;
    opacity: 0;
    animation: fadeInUp .6s ease-out .3s forwards;
}

.hero-illustration {
    flex: 0 0 280px;
    max-width: 280px;
    opacity: 0;
    animation: fadeIn .8s ease-out .2s forwards, floatY 4s ease-in-out 1s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow, .hero-title, .hero-subtitle, .hero-actions, .hero-illustration {
        animation: none;
        opacity: 1;
    }
}

/* pie de página pegado abajo */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    body > div.container {
        flex: 1 0 auto;
    }

footer.footer {
    flex-shrink: 0;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

/* botón "volver al inicio" */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

    .btn-back:hover {
        color: var(--accent);
    }

    .btn-back svg {
        width: 14px;
        height: 14px;
    }

/* botones de acción en las tablas (Editar / Publicar / Eliminar) */
.actions-cell {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.btn-row {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-row-edit {
    background: rgba(43, 36, 32, .06);
    color: var(--ink);
}

    .btn-row-edit:hover {
        background: rgba(43, 36, 32, .12);
    }

.btn-row-publish {
    background: rgba(193, 87, 46, .12);
    color: var(--accent);
}

    .btn-row-publish:hover {
        background: rgba(193, 87, 46, .2);
    }

.btn-row-delete {
    background: rgba(178, 45, 45, .08);
    color: #B22D2D;
}

    .btn-row-delete:hover {
        background: rgba(178, 45, 45, .15);
    }