/* assets/css/licencias.css */

/* Reset Estructural */
body,
main,
.flex-grow-1 {
    background-color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
}

/* Banner con Identidad Institucional */
.page-header-licencias {
    position: relative;
    background: linear-gradient(135deg, rgba(12, 60, 38, 0.95) 0%, rgba(25, 135, 84, 0.85) 100%),
        url('../img/bg-licencias.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0 80px;
    margin-bottom: 50px;
    overflow: hidden;
    border-bottom: 8px solid #D4AF37;
    color: #ffffff !important;
}

.header-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.page-header-licencias h1 {
    color: #ffffff !important;
    text-transform: none;
}

.text-gold {
    color: #D4AF37 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.label-tramite {
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 5px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    background: rgba(20, 83, 45, 0.3);
}

/* Partículas de Fondo */
.bg-animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    filter: blur(40px);
    animation: move-particles 20s infinite linear;
}

@keyframes move-particles {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(100px, 50px) rotate(120deg);
    }

    66% {
        transform: translate(-50px, 100px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Diseño de Tarjetas de Trámite */
.licencia-item {
    background: #ffffff;
    border-radius: 25px;
    border: 1px solid #f0f0f0;
    padding: 35px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: flex-start;
    gap: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.licencia-item:hover {
    border-left: 10px solid #D4AF37;
    transform: translateX(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.step-number {
    background: #125e3b;
    color: #D4AF37;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 8px 15px rgba(18, 94, 59, 0.2);
}

.licencia-content h4 {
    color: #125e3b;
    font-weight: 800;
    margin-bottom: 5px;
}

.badge-tramite {
    background: #f8f9fa;
    color: #198754;
    border: 1px solid #e9ecef;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.requisitos-list {
    list-style: none;
    padding: 0;
}

.requisitos-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-size: 0.85rem;
    color: #555;
}

.requisitos-list li::before {
    content: "\f26a";
    font-family: bootstrap-icons;
    position: absolute;
    left: 0;
    color: #D4AF37;
}

/* Panel Lateral y Dividores */
.sticky-info {
    position: sticky;
    top: 110px;
}

.gold-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 25px auto;
}

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

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

.reveal-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes de Responsividad */
@media (max-width: 768px) {
    .licencia-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .page-header-licencias {
        padding: 100px 0 60px;
    }
}

/* Forzar color blanco en el encabezado de la tarjeta lateral */
.card .p-3.text-white {
    background-color: #125e3b !important;
}

.card .p-3.text-white h5,
.card .p-3.text-white h5 i {
    color: #ffffff !important;
    /* Asegura blanco puro */
    text-decoration: none !important;
    /* Por si es un link oculto */
}

/* Mejorar los textos internos de la tarjeta */
.card-body .fw-bold.small {
    color: #125e3b !important;
    /* Verde oscuro para los labels (Horario, Ubicación) */
}

.card-body .fs-4 i {
    color: #D4AF37 !important;
    /* Dorado institucional para los iconos de reloj y mapa */
}

/* ELIMINAR AZUL Y FORZAR COLORES INSTITUCIONALES */

/* Contenedor del encabezado lateral */
.sticky-info .card div[style*="background-color: #125e3b"] {
    background-color: #125e3b !important;
}

/* Forzar blanco en el título y el icono */
.sticky-info .card h5,
.sticky-info .card h5 i {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Cambiar las letras azules internas a Verde Atzalan */
.sticky-info .card-body span.fw-bold.small {
    color: #125e3b !important;
}

/* Iconos de la sección lateral (Reloj y Mapa) en Oro */
.sticky-info .card-body .fs-4 i,
.sticky-info .card-body i.bi-clock,
.sticky-info .card-body i.bi-geo-fill {
    color: #D4AF37 !important;
}