/* =========================================
   ESTILOS PERSONALIZADOS - BOMBEROS LAS GRUTAS
   Corrige colores para coincidir con diseño original
   ========================================= */

/* Variables de colores principales */
:root {
    --bomberos-red: #dc2626;      /* Rojo principal */
    --bomberos-red-dark: #b91c1c; /* Rojo oscuro hover */
    --bomberos-orange: #f97316;   /* Naranja botones */
    --bomberos-gray: #4b5563;     /* Gris navegación */
}

/* Barra superior - Forzar fondo rojo intenso y texto blanco */
header .bg-red-600 {
    background-color: var(--bomberos-red) !important;
}

header .bg-red-600 span,
header .bg-red-600 div {
    color: white !important;
}

header .bg-red-600 svg {
    fill: white !important;
}

/* Header - Barra roja superior ya está bien en el HTML */

/* Navegación - Asegurar contraste */
header nav a {
    color: var(--bomberos-gray);
    font-weight: 500;
}

header nav a:hover {
    color: var(--bomberos-red);
}

/* Botón "¡Únete a la Academia!" - debe ser NARANJA */
.btn-academia {
    background-color: var(--bomberos-orange) !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-academia:hover {
    background-color: #ea580c !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

/* Hero Section - Todo el texto en BLANCO */
#inicio {
    color: white !important;
}

#inicio h2,
#inicio p,
#inicio .max-w-4xl {
    color: white !important;
}

/* Título principal del hero - primera línea en BLANCO */
#inicio h2 {
    color: white !important;
    font-weight: 700;
}

/* Título "Nuestra Comunidad" en ROJO */
.hero-title-red {
    color: var(--bomberos-red) !important;
    font-weight: 700;
}

/* Párrafo descripción en BLANCO */
#inicio p {
    color: white !important;
    opacity: 1 !important;
}

/* Botón "¡Únete Como Voluntario!" - ROJO con gradiente */
.btn-voluntario {
    background: linear-gradient(135deg, var(--bomberos-red) 0%, #ef4444 100%) !important;
    color: white !important;
    font-weight: 600;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-voluntario:hover {
    background: linear-gradient(135deg, var(--bomberos-red-dark) 0%, var(--bomberos-red) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

/* Botón "Conoce Nuestra Labor" - Gris oscuro con borde blanco */
.btn-conocer {
    background-color: rgba(75, 85, 99, 0.9) !important;
    color: white !important;
    font-weight: 600;
    border: 2px solid white !important;
    transition: all 0.3s ease;
}

.btn-conocer:hover {
    background-color: rgba(55, 65, 81, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Tarjetas de estadísticas - Fondo rojo semi-transparente */
.stat-card {
    background: rgba(220, 38, 38, 0.75) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.5) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(220, 38, 38, 0.85) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Iconos en estadísticas - Color rojo */
.stat-icon {
    color: var(--bomberos-red);
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
    
    .btn-academia,
    .btn-voluntario,
    .btn-conocer {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   SECCIONES - FONDOS ALTERNADOS
   ========================================= */

/* Sección Hero - Ya tiene imagen de fondo */
#inicio {
    /* Mantiene su fondo con imagen */
}

/* Sección Quiénes Somos - Gris muy claro */
#quienes-somos {
    background: #f9fafb !important;
}

/* Sección Capacitaciones - Blanco puro */
#capacitaciones {
    background: #ffffff !important;
}

/* Sección CFP - Gris claro con toque rojo */
#cfp {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%) !important;
}

/* Sección Academia - Blanco puro */
#academia {
    background: #ffffff !important;
}

/* Sección Galería - Gris muy claro */
#galeria {
    background: #f9fafb !important;
}

/* Sección Contacto - Gradiente sutil */
#contacto {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%) !important;
}

/* Bordes sutiles entre secciones */
.section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animaciones suaves */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sombras personalizadas */
.shadow-bomberos {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
}

.shadow-bomberos-lg {
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

/* Títulos de sección con línea decorativa */
.section-title {
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bomberos-red) 0%, var(--bomberos-orange) 100%);
    border-radius: 2px;
}

/* Hero overlay mejorado */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(220, 38, 38, 0.2) 100%
    );
}

/* =========================================
   SECCIÓN CONTACTO - BOTÓN ENVIAR
   ========================================= */

#contacto form button[type="submit"] {
    background: linear-gradient(135deg, var(--bomberos-red) 0%, #ef4444 100%) !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

#contacto form button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--bomberos-red-dark) 0%, var(--bomberos-red) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

#contacto form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

/* =========================================
   FOOTER - GRIS OSCURO CON LETRAS BLANCAS
   ========================================= */

footer {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
    color: white !important;
    border-top: 3px solid var(--bomberos-red);
}

footer h4 {
    color: white !important;
    font-weight: 700;
}

footer p,
footer ul,
footer li,
footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: white !important;
    text-decoration: underline;
}

/* Línea de copyright en footer */
footer .text-center {
    color: rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}
