/* ==========================================================================
   Módulo Historia de Peribán - H. Ayuntamiento de Peribán
   ========================================================================== */

:root {
    --color-guinda: #6b1d37;
    --color-guinda-dark: #4a1224;
    --color-guinda-light: #8c2849;
    --color-gold: #d4af37;
}

/* Banner Superior */
.page-header-banner {
    background: linear-gradient(135deg, var(--color-guinda-dark) 0%, var(--color-guinda) 100%) !important;
}

.page-header-banner h1,
.page-header-banner .breadcrumb-item,
.page-header-banner .breadcrumb-item a {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tarjetas de Historia y Reseña */
.history-card {
    border-radius: 16px;
    background: #ffffff;
    border-top: 5px solid var(--color-guinda);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(107, 29, 55, 0.12);
}

/* Tarjetas de Tenencias */
.tenencia-card {
    border: none;
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.tenencia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-guinda);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.tenencia-card:hover::before {
    width: 8px;
    background-color: var(--color-gold);
}

.tenencia-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.tenencia-icon {
    width: 50px;
    height: 50px;
    background: rgba(107, 29, 55, 0.08);
    color: var(--color-guinda);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Tabla de Presidentes */
.presidentes-table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.table-presidentes thead {
    background: linear-gradient(90deg, var(--color-guinda) 0%, var(--color-guinda-light) 100%);
    color: #ffffff;
}

.table-presidentes tbody tr {
    transition: background-color 0.2s ease;
}

.table-presidentes tbody tr:hover {
    background-color: rgba(107, 29, 55, 0.04);
}

.badge-actual {
    background-color: var(--color-guinda);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 50rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}