/**
 * Styles Views - Base para futuras vistas
 * GAMC - Gobierno Autónomo Municipal de Caranavi
 */

:root {
    /* Colores institucionales */
    --color-primario: #1e3a8a;
    --color-secundario: #059669;
    --color-acento: #d97706;
    
    /* Verde y amarillo (estilo Bolivia) */
    --verde-oscuro: #006341;
    --verde-claro: #009A44;
    --amarillo: #DD0000;
    --rojo: #E0115F;
    
    /* Escala de grises */
    --gris-100: #f3f4f6;
    --gris-200: #e5e7eb;
    --gris-300: #d1d5db;
    --gris-400: #9ca3af;
    --gris-500: #6b7280;
    --gris-600: #4b5563;
    --gris-700: #374151;
    --gris-800: #1f2937;
    --gris-900: #111827;
    
    /* Colores base */
    --blanco: #ffffff;
    --negro: #000000;
    
    /* Tipografía */
    --familia-fuente: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Espaciado */
    --espaciado-xs: 0.25rem;
    --espaciado-sm: 0.5rem;
    --espaciado-md: 1rem;
    --espaciado-lg: 1.5rem;
    --espaciado-xl: 2rem;
    --espaciado-2xl: 3rem;
    --espaciado-3xl: 4rem;
    
    /* Bordes */
    --radio-borde: 0.5rem;
    --radio-borde-lg: 1rem;
    
    /* Sombras */
    --sombra-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sombra: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sombra-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sombra-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transiciones */
    --transicion: all 0.3s ease;
}

/* ============================================
   BANNER PRINCIPAL
   ============================================ */
.tramites-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 0;
}

.tramites-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tramites-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(30, 58, 138, 0.4) 0%,
        rgba(30, 58, 138, 0.6) 50%,
        rgba(30, 58, 138, 0.8) 100%
    );
}

.tramites-banner__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--blanco);
    z-index: 10;
    padding: var(--espaciado-xl);
    animation: tramitesFadeIn 0.8s ease;
}

.tramites-banner__title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--espaciado-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tramites-banner__subtitle {
    font-size: 1.6rem;
    opacity: 0.95;
    max-width: 700px;
}

/* ============================================
   BANNER DE RECAUDACIONES
   ============================================ */
.recaudaciones-banner {
    width: 100%;
    padding: var(--espaciado-xl) 0;
    background: linear-gradient(135deg, #f0f9e8 0%, #d4e6c3 40%, #c5d99a 60%, #d4e6c3 100%);
    position: relative;
    overflow: hidden;
}

.recaudaciones-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

.recaudaciones-banner__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--espaciado-lg);
    animation: slideUp 1s ease-out;
}

.recaudaciones-banner__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radio-borde-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.recaudaciones-banner__image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SLIDER DE TRÁMITES
   ============================================ */
.tramites-slider {
    padding: var(--espaciado-3xl) 0;
    background: var(--gris-100);
    position: relative;
    overflow: hidden;
}

.tramites-slider__shape {
    position: absolute;
    border-radius: 50%;
    animation: floatAround 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.tramites-slider__shape--green {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #006341 0%, #009A44 100%);
    opacity: 0.5;
    top: -120px;
    left: 80%;
    animation-delay: 0s;
}

.tramites-slider__shape--red {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #FAB8C4 0%, #FAB8C4 100%);
    opacity: 0.7;
    top: 20%;
    left: 20%;
    animation-delay: 5s;
}

.tramites-slider__shape--yellow {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFDC60 0%, #FFDC60 100%);
    opacity: 0.7;
    top: 70%;
    left: 70%;
    animation-delay: 10s;
}

@keyframes floatAround {
    0% {
        top: -120px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        top: 100%;
        transform: translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

.tramites-slider__shape--green {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #006341 0%, #009A44 100%);
    opacity: 0.4;
    top: 5%;
    left: -100px;
    animation-delay: 0s;
}

.tramites-slider__shape--yellow {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    opacity: 0.4;
    top: 50%;
    left: -50px;
    animation-delay: 6s;
}

.tramites-slider__shape--red {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #DD0000 0%, #E0115F 100%);
    opacity: 0.5;
    bottom: 10%;
    right: -70px;
    animation-delay: 3s;
}

.tramites-slider__shape--yellow {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    opacity: 0.1;
    top: 50%;
    left: -50px;
    animation-delay: 6s;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(calc(100vw - 200px), 50px) rotate(90deg);
    }
    50% {
        transform: translate(calc(100vw - 150px), calc(100% - 150px)) rotate(180deg);
    }
    75% {
        transform: translate(100px, calc(100% - 100px)) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.tramites-slider__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espaciado-lg);
    position: relative;
    z-index: 2;
}

.tramites-slider__header {
    text-align: center;
    margin-bottom: var(--espaciado-2xl);
}

.tramites-slider__title {
    font-size: 3rem;
    color: var(--verde-oscuro);
    margin-bottom: var(--espaciado-sm);
    font-weight: 700;
}

.tramites-slider__description {
    font-size: 1.3rem;
    color: var(--gris-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Slider */
.tramites-slider__wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radio-borde-lg);
    box-shadow: var(--sombra-xl);
    max-width: 900px;
    margin: 0 auto;
}

.tramites-slider__track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.tramites-slider__slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.tramites-slider__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 550px;
}

.tramites-slider__slide:hover .tramites-slider__image {
    transform: scale(1.02);
}

.tramites-slider__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--espaciado-xl);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    color: var(--blanco);
}

.tramites-slider__caption-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--espaciado-sm);
}

.tramites-slider__caption-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navegación del slider */
.tramites-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--blanco);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-lg);
    transition: var(--transicion);
    z-index: 10;
}

.tramites-slider__nav:hover {
    background: var(--verde-oscuro);
    color: var(--blanco);
}

.tramites-slider__nav--prev {
    left: 20px;
}

.tramites-slider__nav--next {
    right: 20px;
}

.tramites-slider__nav i {
    font-size: 1.25rem;
    color: var(--verde-oscuro);
    transition: var(--transicion);
}

.tramites-slider__nav:hover i {
    color: var(--blanco);
}

/* Indicadores (puntos) */
.tramites-slider__dots {
    display: flex;
    justify-content: center;
    gap: var(--espaciado-sm);
    margin-top: var(--espaciado-xl);
}

.tramites-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gris-300);
    border: none;
    cursor: pointer;
    transition: var(--transicion);
}

.tramites-slider__dot:hover {
    background: var(--verde-oscuro);
    transform: scale(1.2);
}

.tramites-slider__dot--active {
    background: var(--verde-oscuro);
    transform: scale(1.2);
}

/* ============================================
   MODAL PARA IMAGEN AMPLIADA
   ============================================ */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: var(--espaciado-xl);
}

.image-modal.active {
    display: flex;
}

.image-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blanco);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
    z-index: 10;
}

.image-modal__close:hover {
    background: #e74c3c;
    color: var(--blanco);
    transform: rotate(90deg);
}

.image-modal__close i {
    font-size: 1.5rem;
    color: var(--gris-700);
    transition: var(--transicion);
}

.image-modal__close:hover i {
    color: var(--blanco);
}

.image-modal__content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

.image-modal__image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radio-borde-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal__title {
    color: var(--blanco);
    margin-top: var(--espaciado-lg);
    font-size: 1.5rem;
    font-weight: 600;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes tramitesFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tramitesFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tramitesSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.tramites-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espaciado-lg);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .tramites-banner {
        height: 350px;
    }
    
    .tramites-banner__title {
        font-size: 2.5rem;
    }
    
    .tramites-slider__wrapper {
        max-width: 800px;
    }
    
    .tramites-slider__image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .tramites-banner {
        height: 300px;
    }
    
    .tramites-banner__title {
        font-size: 2rem;
    }
    
    .tramites-banner__subtitle {
        font-size: 1rem;
    }
    
    .tramites-slider__wrapper {
        max-width: 95%;
    }
    
    .tramites-slider__title {
        font-size: 2rem;
    }
    
    .tramites-slider__image {
        max-height: 420px;
    }
    
    .tramites-slider__caption-title {
        font-size: 1.5rem;
    }
    
    .tramites-slider__nav {
        width: 40px;
        height: 40px;
    }
    
    .tramites-slider__nav--prev {
        left: 10px;
    }
    
    .tramites-slider__nav--next {
        right: 10px;
    }
    
    .tramites-cards__grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal responsive */
    .image-modal__close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .tramites-banner {
        height: 250px;
    }
    
    .tramites-banner__title {
        font-size: 1.5rem;
    }
    
    .tramites-banner__content {
        padding: var(--espaciado-md);
    }
    
    .tramites-slider__image {
        max-height: 300px;
    }
    
    .tramites-slider__wrapper {
        max-width: 100%;
    }
    
    .tramites-slider__caption {
        padding: var(--espaciado-md);
    }
    
    .tramites-slider__caption-title {
        font-size: 1.25rem;
    }
    
    .tramites-slider__nav {
        width: 35px;
        height: 35px;
    }
    
    .tramites-slider__nav i {
        font-size: 1rem;
    }
    
    .tramites-slider__nav--prev {
        left: 5px;
    }
    
    .tramites-slider__nav--next {
        right: 5px;
    }
    
    /* Modal responsive */
    .image-modal__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .image-modal__title {
        font-size: 1.2rem;
    }
    
    /* Recaudaciones banner responsive */
    .recaudaciones-banner {
        padding: var(--espaciado-md) 0;
    }
    
    .recaudaciones-banner__container {
        padding: 0 var(--espaciado-sm);
    }
    
    .recaudaciones-banner__image {
        border-radius: var(--radio-borde);
    }
}

/* ============================================
   RPC - GESTIÓN TRANSPARENTE
   ============================================ */
.rpc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--espaciado-lg);
}

.rpc-section {
    padding: var(--espaciado-3xl) 0;
}

.rpc-section__header {
    text-align: center;
    margin-bottom: var(--espaciado-2xl);
}

.rpc-section__title {
    font-size: 3rem;
    color: var(--verde-oscuro);
    margin-bottom: var(--espaciado-sm);
    font-weight: 700;
}

.rpc-section__subtitle {
    font-size: 1.4rem;
    color: var(--gris-500);
    max-width: 700px;
    margin: 0 auto;
}

/* BANNER */
.rpc-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 0;
}

.rpc-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rpc-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.rpc-banner__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--blanco);
    z-index: 10;
    padding: var(--espaciado-xl);
    animation: rpcFadeIn 1s ease;
}

.rpc-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--espaciado-sm);
    background: rgba(255, 255, 255, 0.15);
    padding: var(--espaciado-sm) var(--espaciado-lg);
    border-radius: 50px;
    margin-bottom: var(--espaciado-lg);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.rpc-banner__badge i {
    font-size: 1.3rem;
}

.rpc-banner__title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: var(--espaciado-md);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.rpc-banner__subtitle {
    font-size: 1.8rem;
    opacity: 0.95;
    margin-bottom: var(--espaciado-sm);
}

.rpc-banner__description {
    font-size: 1.3rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

.rpc-banner__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rpc-banner__scroll:hover {
    color: #f59e0b;
}

.rpc-banner__scroll i {
    animation: rpcBounce 2s infinite;
}

@keyframes rpcBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* OBJETIVO */
.rpc-objetivo {
    background: var(--blanco);
}

.rpc-objetivo__content {
    display: flex;
    gap: var(--espaciado-2xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.rpc-objetivo__icon {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-claro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 99, 65, 0.2);
}

.rpc-objetivo__icon i {
    font-size: 4rem;
    color: var(--blanco);
}

.rpc-objetivo__text {
    flex: 1;
}

.rpc-objetivo__text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--gris-600);
    margin-bottom: var(--espaciado-md);
}

.rpc-objetivo__text p:last-child {
    margin-bottom: 0;
}

.rpc-objetivo__text strong {
    color: var(--verde-oscuro);
}

/* FUNCIONES */

.rpc-funciones__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--espaciado-xl);
}

.rpc-funcion-card {
    background: var(--blanco);
    padding: var(--espaciado-2xl);
    border-radius: var(--radio-borde-lg);
    text-align: center;
    box-shadow: var(--sombra);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rpc-funcion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-oscuro), var(--verde-claro));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.rpc-funcion-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-xl);
}

.rpc-funcion-card:hover::before {
    transform: scaleX(1);
}

.rpc-funcion-card__icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 99, 65, 0.1), rgba(0, 154, 68, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--espaciado-lg);
    transition: all 0.4s ease;
}

.rpc-funcion-card:hover .rpc-funcion-card__icon {
    background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-claro));
    transform: scale(1.1);
}

.rpc-funcion-card__icon i {
    font-size: 2.8rem;
    color: var(--verde-oscuro);
    transition: color 0.4s ease;
}

.rpc-funcion-card:hover .rpc-funcion-card__icon i {
    color: var(--blanco);
}

.rpc-funcion-card__title {
    font-size: 1.6rem;
    color: var(--gris-800);
    margin-bottom: var(--espaciado-md);
    font-weight: 700;
}

.rpc-funcion-card__text {
    font-size: 1.2rem;
    color: var(--gris-500);
    line-height: 1.7;
}

/* RENDICIÓN DE CUENTAS */
.rpc-rendicion {
    background: var(--blanco);
    position: relative;
    overflow: hidden;
}

.rpc-rendicion .rpc-container {
    position: relative;
    z-index: 1;
}

.rpc-rendicion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--espaciado-xl);
}

/* FUNCIONES */
.rpc-funciones {
    background: #ECF2F6;
    position: relative;
    overflow: hidden;
}

.rpc-funciones .contact__backshapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.rpc-funciones .backshapes__item {
    position: absolute;
    z-index: 0;
}

.rpc-funciones .backshapes--shape1 {
    top: 0;
    left: 25%;
}

.rpc-funciones .backshapes--shape2 {
    top: 10%;
    left: 10%;
    animation: moveShape4 25s infinite;
}

.rpc-funciones .backshapes--shape3 {
    bottom: 15%;
    left: 30%;
    animation: moveShape5 20s infinite;
}

.rpc-funciones .backshapes--shape4 {
    top: 20%;
    left: 25%;
    opacity: 0.7;
    animation: moveShape3 30s infinite;
}

.rpc-funciones .backshapes--shape5 {
    bottom: 25%;
    right: 8%;
    opacity: 0.5;
    animation: moveShape5 35s infinite;
}

.rpc-funciones .backshapes--shape6 {
    top: 30%;
    right: 15%;
    opacity: 0.9;
    animation: moveShape4 35s infinite;
}

.rpc-funciones .backshapes--shape7 {
    top: 40%;
    left: 35%;
    opacity: 0.6;
    animation: moveShape3 20s infinite;
}

.rpc-funciones .rpc-container {
    position: relative;
    z-index: 1;
}

.rpc-rendicion-card {
    background: var(--blanco);
    border-radius: var(--radio-borde-lg);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.rpc-rendicion-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-xl);
}

.rpc-rendicion-card--actual {
    border: 3px solid #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), var(--sombra-lg);
}

.rpc-rendicion-card--actual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    animation: goldShine 2s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.rpc-rendicion-card__badge-actual {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.rpc-rendicion-card__badge-actual i {
    font-size: 0.75rem;
}

.rpc-rendicion-card__image {
    position: relative;
    height: 370px;
    overflow: hidden;
    background: var(--gris-200);
    cursor: pointer;
    flex-shrink: 0;
}

.rpc-rendicion-card__content {
    padding: var(--espaciado-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rpc-rendicion-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.rpc-rendicion-card__image:hover img {
    transform: scale(1.05);
}

.rpc-rendicion-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: var(--espaciado-md);
}

.rpc-rendicion-card__badge {
    background: #e74c3c;
    color: var(--blanco);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rpc-rendicion-card__zoom {
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.rpc-rendicion-card__zoom i {
    color: var(--verde-oscuro);
    font-size: 1.1rem;
}

.rpc-rendicion-card__image:hover .rpc-rendicion-card__zoom {
    opacity: 1;
    transform: scale(1);
}

/* MODAL IMAGEN */
.rpc-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: var(--espaciado-xl);
}

.rpc-image-modal.active {
    display: flex;
}

.rpc-image-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blanco);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.rpc-image-modal__close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

.rpc-image-modal__close i {
    font-size: 1.5rem;
    color: var(--gris-700);
}

.rpc-image-modal__close:hover i {
    color: var(--blanco);
}

.rpc-image-modal__content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

.rpc-image-modal__image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radio-borde-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rpc-image-modal__title {
    color: var(--blanco);
    margin-top: var(--espaciado-lg);
    font-size: 1.5rem;
    font-weight: 600;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rpc-rendicion-card__content {
    padding: var(--espaciado-xl);
}

.rpc-rendicion-card__title {
    font-size: 1.3rem;
    color: var(--gris-800);
    font-weight: 700;
    margin-bottom: var(--espaciado-sm);
    line-height: 1.3;
}

.rpc-rendicion-card__text {
    font-size: 1.05rem;
    color: var(--gris-500);
    line-height: 1.6;
    margin-bottom: var(--espaciado-md);
    flex-grow: 1;
    text-align: justify;
}

.rpc-rendicion-card__meta {
    display: flex;
    gap: var(--espaciado-lg);
    margin-bottom: var(--espaciado-md);
    font-size: 1rem;
    color: var(--gris-500);
}

.rpc-rendicion-card__meta span {
    display: flex;
    align-items: center;
    gap: var(--espaciado-xs);
}

.rpc-rendicion-card__meta i {
    color: var(--verde-oscuro);
}

.rpc-rendicion-card__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--espaciado-sm);
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-claro) 100%);
    color: var(--blanco);
    padding: var(--espaciado-md) var(--espaciado-lg);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 99, 65, 0.3);
}

.rpc-rendicion-card__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 99, 65, 0.4);
}

.rpc-rendicion-card__btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 99, 65, 0.3);
}

/* MODAL PDF - Estilo Gaceta */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal__content {
    background: var(--blanco);
    border-radius: var(--radio-borde-lg);
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.pdf-modal__header {
    background: var(--gris-100);
    padding: 16px 24px;
    border-bottom: 1px solid var(--gris-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.pdf-modal__title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-modal__icon {
    font-size: 1.5rem;
    color: var(--verde-oscuro);
}

.pdf-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin: 0;
}

.pdf-modal__subtitle {
    font-size: 13px;
    color: var(--gris-500);
    font-weight: 400;
}

.pdf-modal__actions {
    display: flex;
    gap: 8px;
}

.pdf-modal__btn {
    background: var(--gris-200);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--gris-700);
    font-size: 16px;
    text-decoration: none;
}

.pdf-modal__btn:hover {
    background: var(--verde-oscuro);
    color: var(--blanco);
    transform: scale(1.1);
}

.pdf-modal__btn--download {
    background: var(--verde-oscuro);
    color: var(--blanco);
}

.pdf-modal__btn--download:hover {
    background: var(--verde-claro);
}

.pdf-modal__close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gris-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--gris-700);
    font-size: 18px;
}

.pdf-modal__close:hover {
    background: #e74c3c;
    color: var(--blanco);
    transform: rotate(90deg);
}

.pdf-modal__body {
    flex: 1;
    overflow: hidden;
}

.pdf-modal__body iframe {
    border: none;
}

.pdf-modal__body::-webkit-scrollbar {
    width: 8px;
}

.pdf-modal__body::-webkit-scrollbar-track {
    background: var(--gris-200);
}

.pdf-modal__body::-webkit-scrollbar-thumb {
    background: var(--verde-oscuro);
    border-radius: 4px;
}

/* ANIMACIONES */
@keyframes rpcFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .rpc-banner__title {
        font-size: 3rem;
    }
    
    .rpc-funciones__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rpc-rendicion__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rpc-banner {
        height: 400px;
    }
    
    .rpc-banner__title {
        font-size: 2.2rem;
    }
    
    .rpc-banner__subtitle {
        font-size: 1.1rem;
    }
    
    .rpc-banner__description {
        font-size: 0.95rem;
    }
    
    .rpc-section__title {
        font-size: 2rem;
    }
    
    .rpc-objetivo__content {
        flex-direction: column;
        text-align: center;
    }
    
    .rpc-objetivo__icon {
        width: 120px;
        height: 120px;
    }
    
    .rpc-objetivo__icon i {
        font-size: 3rem;
    }
    
    .rpc-funciones__grid {
        grid-template-columns: 1fr;
    }
    
    .rpc-funciones .contact__backshapes {
        display: none;
    }
    
    .rpc-rendicion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pdf-modal__content {
        width: 95%;
        height: 85%;
    }
}

@media (max-width: 480px) {
    .rpc-banner {
        height: 350px;
    }
    
    .rpc-banner__title {
        font-size: 1.8rem;
    }
    
    .rpc-banner__badge {
        font-size: 0.75rem;
        padding: var(--espaciado-xs) var(--espaciado-md);
    }
    
    .rpc-objetivo__icon {
        width: 100px;
        height: 100px;
    }
    
    .rpc-objetivo__icon i {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .rpc-rendicion-grid {
        grid-template-columns: 1fr;
    }
    
    .rpc-rendicion-card__image {
        height: 150px;
    }
}


/* SECCIÓN REDES SOCIALES - NUEVO DISEÑO PROFESIONAL */
/* =============================================
   REDES SOCIALES — versión mejorada
   ============================================= */

.rpc-redes {
    background: #f0f4f8;
    padding: var(--espaciado-3xl) 0;
    position: relative;
    overflow: hidden;
}

/* fondo decorativo con círculos */
.rpc-redes::before,
.rpc-redes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.rpc-redes::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 99, 65, 0.06) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.rpc-redes::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 99, 65, 0.05) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* ── Intro ── */
.rpc-redes__intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--espaciado-2xl);
}

.rpc-redes__intro-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-claro) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--espaciado-md);
    box-shadow: 0 12px 32px rgba(0, 99, 65, 0.25);
    transform: rotate(-6deg);
}

.rpc-redes__intro-icon i {
    font-size: 1.9rem;
    color: #fff;
    transform: rotate(6deg);
}

.rpc-redes__intro-label {
    display: inline-block;
    background: rgba(0, 99, 65, 0.1);
    color: var(--verde-oscuro);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.rpc-redes__intro-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 var(--espaciado-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.rpc-redes__intro-text {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
}

/* ── Grid ── */
.rpc-redes__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* ── Card ── */
.rpc-redes__card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.07);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
}

.rpc-redes__card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.04),
        0 24px 48px rgba(0,0,0,0.10);
}

/* ── Card top banner ── */
.rpc-redes__card-top {
    padding: 20px 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.rpc-redes__card-top--fb {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
}

.rpc-redes__card-top--yt {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
}

/* ── Platform pill ── */
.rpc-redes__card-platform {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1877f2;
    color: #fff;
    padding: 7px 18px;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.rpc-redes__card-platform--youtube {
    background: #ff0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.rpc-redes__card-platform i {
    font-size: 1rem;
}

.rpc-redes__card-header-right {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.rpc-redes__card-header-right .rpc-redes__stat {
    gap: 5px;
}

.rpc-redes__card-header-right .rpc-redes__stat i {
    font-size: 0.9rem;
    color: #1877f2;
}

.rpc-redes__card-header-right .rpc-redes__stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
}

/* ── Card info row ── */
.rpc-redes__card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rpc-redes__card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ── Badge ── */
.rpc-redes__card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 99px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.rpc-redes__card-badge--yt {
    background: rgba(255, 0, 0, 0.1);
    color: #cc0000;
}

/* pulso del punto rojo "en vivo" */
.rpc-redes__live-dot {
    font-size: 6px;
    color: #1877f2;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── Embed ── */
.rpc-redes__embed {
    position: relative;
    width: 100%;
    height: 360px;
    background: #0f172a;
    overflow: hidden;
}

.rpc-redes__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ── Stats (contador de visualizaciones) ── */
.rpc-redes__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 1px solid #e0f2fe;
}

.rpc-redes__stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpc-redes__stat i {
    font-size: 1.1rem;
    color: var(--verde-oscuro);
}

.rpc-redes__stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.rpc-redes__stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

/* ── Footer ── */
.rpc-redes__card-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.rpc-redes__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.rpc-redes__btn--facebook {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.rpc-redes__btn--facebook:hover {
    background: #1464d8;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
    transform: translateY(-2px);
}

.rpc-redes__btn--youtube {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.rpc-redes__btn--youtube:hover {
    background: #cc0000;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.rpc-redes__btn i:first-child {
    font-size: 1.1rem;
}

.rpc-redes__btn i:last-child {
    margin-left: auto;
    transition: transform 0.25s ease;
}

.rpc-redes__btn:hover i:last-child {
    transform: translateX(4px);
}

/* ── CTA ── */
.rpc-redes__cta {
    text-align: center;
    margin-top: var(--espaciado-2xl);
}

.rpc-redes__cta p {
    color: #64748b;
    font-size: 1.15rem;
    margin: 0;
}

.rpc-redes__cta a {
    color: var(--verde-oscuro);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.rpc-redes__cta a:hover {
    border-bottom-color: var(--verde-oscuro);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .rpc-redes__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rpc-redes__intro-title {
        font-size: 1.6rem;
    }

    .rpc-redes__embed {
        height: 300px;
    }

    .rpc-redes__card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .rpc-redes__intro-icon {
        width: 60px;
        height: 60px;
    }

    .rpc-redes__intro-title {
        font-size: 1.4rem;
    }

    .rpc-redes__card-top {
        padding: 16px 18px 14px;
    }

    .rpc-redes__embed {
        height: 260px;
    }
}
@media (max-width: 992px) {
    .rpc-redes__grid {
        grid-template-columns: 1fr;
        gap: var(--espaciado-lg);
    }
    
    .rpc-redes__embed-wrapper {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .rpc-redes__intro-title {
        font-size: 1.5rem;
    }
    
    .rpc-redes__intro-text {
        font-size: 1rem;
    }
    
    .rpc-redes__embed-wrapper {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .rpc-redes__intro-icon {
        width: 60px;
        height: 60px;
    }
    
    .rpc-redes__intro-icon i {
        font-size: 1.5rem;
    }
    
    .rpc-redes__card-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .rpc-redes__embed-wrapper {
        height: 240px;
    }
}
