/* Estilos para la página de bienvenida */

/* Variables CSS para consistencia */
:root {
    --primary-color: #28a745;
    --secondary-color: #007bff;
    --header-footer-color: #121632;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --background-overlay: rgba(0, 0, 0, 0.5);
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --card-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --orange-gradient: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    --red-gradient: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
    --dark-gradient: linear-gradient(135deg, #121632 0%, #1e3d72 100%);
}

/* Reset y base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--gradient-bg);
    min-height: 100vh;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    background: var(--header-footer-color) !important;
    box-shadow: 0 2px 10px rgba(18, 22, 50, 0.3);
    padding: 1rem 0;
    min-height: 80px;
}

.site-header .navbar-brand {
    margin-right: auto;
}

.site-header .custom-logo {
    max-height: 45px;
    width: auto;
    filter: brightness(1.1);
    transition: var(--transition);
}

.site-header .custom-logo:hover {
    transform: scale(1.05);
}

.site-header .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.site-header .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
}

.site-header .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.site-header .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--header-footer-color);
    border-color: var(--white);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Hero Section */
.hero-section {
    background-image: url('/public/img/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 90vh;
    position: relative;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

/* Main Content */
.main-content {
    padding-top: 80px; /* Compensar navbar fijo */
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.9) 0%, rgba(233, 236, 239, 0.8) 100%);
    min-height: 100vh;
}

.section-title {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    margin-bottom: 3rem !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Secciones con fondos alternativos */
.denuncias-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.medios-section {
    background: linear-gradient(135deg, rgba(18, 22, 50, 0.05) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cards personalizadas */
.denuncia-item.card {
    transition: var(--transition);
    border: none !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px !important;
    overflow: hidden;
}

.denuncia-item.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover) !important;
    background: linear-gradient(145deg, #ffffff 0%, #e3f2fd 100%);
}

.denuncia-item.card .card-body {
    padding: 2rem 1.5rem !important;
}

.medio-item.card {
    transition: var(--transition);
    border: none !important;
    background: linear-gradient(145deg, #ffffff 0%, #f1f8e9 100%);
    border-radius: 15px !important;
    overflow: hidden;
}

.medio-item.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover) !important;
    background: linear-gradient(145deg, #ffffff 0%, #e8f5e8 100%);
}

/* Botón principal personalizado */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    font-weight: 600;
    transition: var(--transition) !important;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.5) !important;
}

.cta-section {
    margin: 2rem 0;
}

/* Footer */
.site-footer {
    background: var(--header-footer-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(18, 22, 50, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
}

.footer-section a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        min-height: 70px;
        padding: 0.5rem 0;
    }
    
    .site-header .custom-logo {
        max-height: 35px;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-text .lead {
        font-size: 1.1rem;
    }
    
    .hero-text .fs-5 {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .site-header .custom-logo {
        max-height: 30px;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Estados de focus mejorados */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .btn-primary {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--text-color) !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Estilos adicionales para modales */
.modal-content {
    border-radius: 15px !important;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 2rem 1rem;
}

.modal-body {
    padding: 1rem 2rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem 1.5rem;
}

.list-group-item {
    border: none !important;
    background: transparent;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

/* Mejoras en tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
}

.lead {
    font-weight: 400;
    color: var(--text-light);
}

/* Efectos adicionales para tarjetas */
.card img {
    transition: var(--transition);
}

.card:hover img {
    transform: scale(1.05);
}

/* Mejoras para botones */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.card:nth-child(5) { animation-delay: 0.4s; }

/* Gradientes para elementos interactivos */
.denuncia-item.card {
    position: relative;
    overflow: hidden;
}

.denuncia-item.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.denuncia-item.card:hover::before {
    transform: scaleX(1);
}

/* Estilos especiales para el botón de denuncia en navbar */
.navbar .btn-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14) !important;
    border: none !important;
    color: #212529 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3) !important;
    transition: all 0.3s ease !important;
    border-radius: 25px !important;
}

.navbar .btn-warning:hover {
    background: linear-gradient(45deg, #fd7e14, #dc3545) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4) !important;
    color: white !important;
}

.navbar .btn-warning:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5) !important;
}

/* Estilos para el hero section mejorado */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.hero-intro {
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.integrity-section {
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.security-info {
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.cta-circle {
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.cta-circle:hover {
    transform: scale(1.05);
    border-color: rgba(255, 193, 7, 0.5);
}

.badges .badge {
    font-size: 0.85rem;
    font-weight: 500;
}

.cta-section .btn:hover {
    background: linear-gradient(45deg, #fd7e14, #dc3545) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4) !important;
}

/* Animaciones para elementos del hero */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.hero-title {
    animation: fadeInDown 0.8s ease-out;
}

.hero-intro {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.feature-card:nth-child(1) {
    animation: fadeInLeft 1s ease-out 0.4s both;
}

.feature-card:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.feature-card:nth-child(3) {
    animation: fadeInRight 1s ease-out 0.6s both;
}

/* Estilos para la sección de información adicional */
.info-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.info-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.info-card .icon-wrapper {
    transition: transform 0.3s ease;
}

.info-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.integrity-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.integrity-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.security-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.final-cta {
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.final-cta:hover {
    background: rgba(13, 110, 253, 0.15) !important;
    transform: translateY(-2px);
}

.final-cta .btn:hover {
    background: linear-gradient(45deg, #fd7e14, #dc3545) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4) !important;
}

.cta-circle {
    transition: all 0.3s ease;
}

.cta-circle:hover {
    transform: scale(1.05);
    background: rgba(255, 193, 7, 0.2) !important;
}

.badges .badge {
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badges .badge:hover {
    transform: scale(1.05);
}

/* Animaciones para la nueva sección */
.info-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Estilos para sección de estadísticas */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.stat-item {
    position: relative;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item .stat-icon {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon i {
    transform: scale(1.1);
}

/* Estilos para proceso de denuncia */
.proceso-step {
    transition: all 0.3s ease;
}

.proceso-step:hover {
    transform: translateY(-5px);
}

.proceso-step .step-number {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.proceso-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mejoras para medios de denuncia */
.medio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.medio-item:hover .medio-overlay {
    opacity: 1 !important;
}

.medio-item:hover .icon-container i {
    transform: scale(1.1) !important;
    filter: brightness(1.2);
}

.medio-item .icon-container {
    transition: all 0.3s ease;
}

.medio-item .icon-container i {
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.medio-item:hover .contact-info {
    color: var(--header-footer-color) !important;
}

/* Estilos para testimonios */
.testimonio-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.testimonio-card .avatar {
    transition: all 0.3s ease;
}

.testimonio-card:hover .avatar {
    transform: scale(1.1);
}

.stars i {
    transition: all 0.2s ease;
    margin: 0 2px;
}

.testimonio-card:hover .stars i {
    transform: scale(1.1);
}

/* Animación de aparición gradual */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animación a las nuevas secciones */
.stats-section,
.proceso-section,
.testimonios-section {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .proceso-step {
        margin-bottom: 2rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    .testimonio-card {
        margin-bottom: 1.5rem;
    }
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras en accesibilidad */
.proceso-step:focus,
.stat-item:focus,
.testimonio-card:focus {
    outline: 3px solid rgba(255, 193, 7, 0.5);
    outline-offset: 2px;
}

/* Gradientes profesionales para botones y elementos interactivos */
.gradient-orange {
    background: var(--orange-gradient) !important;
}

.gradient-red {
    background: var(--red-gradient) !important;
}

.gradient-dark {
    background: var(--dark-gradient) !important;
}

.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.2s; }
.info-card:nth-child(4) { animation-delay: 0.3s; }