/*
 * CUSTOM STYLES PARA GRUPOS 24 HORAS AA NEZAHUALCÓYOTL
 * Estilos complementarios a Tailwind CSS
 */

/* ==================== FUENTES Y CONFIGURACIÓN BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #1e293b;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* ==================== GRADIENTES Y BACKGROUNDS ==================== */

/* Gradiente azul moderno para hero sections */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

/* Efecto de patrón moderno con orbes de luz */
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(147, 197, 253, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Efecto de onda sutil en el fondo */
.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

/* ==================== NAVEGACIÓN ==================== */

/* Enlaces de navegación modernos */
.nav-link {
    position: relative;
    color: #1e40af;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* ==================== BOTONES ==================== */

/* Botón principal con efecto moderno */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25), 0 4px 8px rgba(37, 99, 235, 0.15);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35), 0 6px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1);
}

/* Botón secundario elegante */
.btn-secondary {
    background: white;
    color: #1e40af;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.2);
    letter-spacing: 0.025em;
}

.btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(1);
}

/* ==================== TARJETAS CON EFECTOS HOVER ==================== */

/* Efecto hover elegante para tarjetas */
.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(59, 130, 246, 0.15),
        0 12px 24px -8px rgba(59, 130, 246, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.card-hover:hover::before {
    opacity: 1;
}

/* ==================== ÍCONOS SOCIALES ==================== */

/* Enlaces de redes sociales */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.1);
}

/* ==================== ANIMACIONES ==================== */

/* Fade in para hero */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ==================== UTILIDADES PERSONALIZADAS ==================== */

/* Contenedor con límite de ancho */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sombra suave personalizada */
.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Transición suave universal */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== FORMULARIOS ==================== */

/* Estilos para inputs en focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* ==================== RESPONSIVE UTILITIES ==================== */

/* Ocultar scroll horizontal en móvil */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    /* Ajuste de padding para móvil */
    .hero-gradient {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* ==================== EFECTOS ESPECIALES ==================== */

/* Backdrop blur para elementos flotantes */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Efecto de vidrio esmerilado */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==================== ACCESIBILIDAD ==================== */

/* Focus visible para navegación con teclado */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip to content link (oculto pero accesible) */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: #1e3a8a;
    color: white;
    padding: 1rem;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

/* ==================== PRINT STYLES ==================== */

@media print {
    /* Ocultar navegación y footer al imprimir */
    header,
    footer,
    .no-print {
        display: none !important;
    }

    /* Ajustar colores para impresión */
    body {
        color: #000;
        background: #fff;
    }

    /* Evitar saltos de página dentro de elementos */
    .card-hover,
    .bg-white {
        page-break-inside: avoid;
    }
}

/* ==================== LOADING STATES ==================== */

/* Spinner de carga */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== UTILIDADES ADICIONALES ==================== */

/* Texto con gradiente moderno */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Línea divisoria decorativa moderna */
.divider-decorative {
    height: 4px;
    width: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    margin: 1rem auto;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Mejoras en títulos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ==================== MENSAJES DE ESTADO ==================== */

/* Mensaje de éxito */
.message-success {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Mensaje de error */
.message-error {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Mensaje de información */
.message-info {
    background-color: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e3a8a;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* ==================== OPTIMIZACIONES DE RENDIMIENTO ==================== */

/* Utilizar GPU para animaciones */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* ==================== DARK MODE SUPPORT (FUTURO) ==================== */

/* Preparación para modo oscuro */
@media (prefers-color-scheme: dark) {
    /* Los estilos de modo oscuro se pueden agregar aquí en el futuro */
}
