/* assets/css/catastro.css */

/* --- RESET ESTRUCTURAL --- */
html,
body {
    background-color: #ffffff !important;
}

main.flex-grow-1,
.bg-light {
    background-color: #ffffff !important;
}

body,
.page-header-catastro,
.tramite-card {
    font-family: 'Montserrat', sans-serif;
}

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

.page-header-catastro::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(212, 175, 55, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 1;
}

/* --- ANIMACIÓN DE PARTÍCULAS --- */
.bg-animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

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

.particle:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 80%;
    animation-duration: 30s;
    background: rgba(255, 255, 255, 0.1);
}

.particle:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 30%;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 60%;
    animation-duration: 35s;
    background: rgba(212, 175, 55, 0.15);
}

.particle:nth-child(5) {
    width: 180px;
    height: 180px;
    top: 80%;
    left: 10%;
    animation-duration: 28s;
}

@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);
    }
}

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

.page-header-catastro h1 {
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header-catastro h1 span {
    color: #D4AF37 !important;
}

.header-badge {
    color: #D4AF37 !important;
    border: 1px solid #D4AF37;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 15px;
    display: inline-block;
}

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

/* --- TARJETAS DINÁMICAS --- */
.tramite-card {
    background-color: #ffffff;
    border: 1px solid #f2f2f2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    z-index: 1;
}

.tramite-card:hover {
    transform: translateY(-12px);
    border-color: #D4AF37;
}

.icon-circle-cat {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #198754, #125e3b);
    color: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.8rem;
    margin-bottom: 25px;
    box-shadow: 0 8px 15px rgba(25, 135, 84, 0.2);
    transition: transform 0.3s ease;
}

.tramite-card:hover .icon-circle-cat {
    transform: rotate(-10deg) scale(1.1);
}

.section-title-catastro {
    color: #125e3b !important;
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.section-title-catastro span {
    color: #D4AF37 !important;
}

.tramite-card h5 {
    color: #198754 !important;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

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

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

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

.btn-whatsapp-catastro {
    border: 2px solid #198754;
    color: #198754;
    transition: all 0.3s ease;
}

.btn-whatsapp-catastro:hover {
    background-color: #198754;
    color: #ffffff;
}

@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);
}

/* 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 */
}