/* =========================
   VARIABLES
========================= */

:root {
    --bg: #f7f7f5;
    --card: #ffffff;
    --text: #222222;
    --muted: #6b6b6b;
    --link: #346231;
    --primary: #346231;
    --primary-dark: #274c25;
    --border: #e5e5e5;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}


/* =========================
   CONTENEDOR
========================= */

.wrap {
    width: min(900px, calc(100% - 32px));
    margin: 40px auto;
    padding: 32px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
}


/* =========================
   FECHA
========================= */

.date {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}


/* =========================
   TABLAS
========================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 8px;
}

th,
td {
    text-align: left;
    padding: 13px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

th {
    background: #f3f5f2;
    color: var(--primary-dark);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #fafbf9;
}


/* =========================
   TEXTOS
========================= */

.note {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
}


/* =========================
   BOTONES
========================= */

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

button {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(52, 98, 49, 0.2);
}

button:active {
    transform: translateY(0);
}

.secondary {
    background: #eeeeec;
    color: #222222;
}

.secondary:hover {
    background: #e2e2df;
    color: #222222;
}


/* =========================
   COOKIE BANNER
========================= */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: min(1100px, calc(100% - 40px));

    background: rgba(255, 255, 255, 0.97);
    color: var(--text);

    padding: 20px 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    border: 1px solid #ddddda;
    border-left: 5px solid var(--primary);
    border-radius: 12px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);


    font-size: 14px;
    line-height: 1.5;

    backdrop-filter: blur(8px);
}


/* Texto del aviso */

.cookie-banner p {
    margin: 0;
    padding-right: 10px;
    color: #444;
}

.cookie-banner p strong {
    color: var(--primary-dark);
}


/* Botones cookies */

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-buttons button {
    margin-left: 0;
    padding: 9px 16px;
    border: none;
    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 500;

    transition:
        background 0.25s ease,
        transform 0.2s ease;
}


/* Aceptar */

#accept-cookies {
    background: var(--primary);
    color: #ffffff;
}

#accept-cookies:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}


/* Rechazar */

#reject-cookies {
    background: transparent;
    color: #444;
    border: 1px solid #cccccc;
}

#reject-cookies:hover {
    background: #f1f1ef;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .wrap {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 22px 18px;
        border-radius: 10px;
    }

    /* Cookie */

    .cookie-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        z-index: 999999;
    }

    .cookie-banner p {
        padding-right: 0;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons button {
        flex: 1;
    }

    /* Tabla */

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 10px 8px;
    }

    /* Botones */

    .actions {
        flex-direction: column;
    }

    .actions button {
        width: 100%;
    }
}


/* =========================
   MÓVIL PEQUEÑO
========================= */

@media (max-width: 480px) {

    .cookie-banner {
        font-size: 13px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }

    th,
    td {
        padding: 9px 6px;
        font-size: 0.85rem;
    }
}