/* css/main.css - Archivo CSS principal modular */

/* =========================================
   IMPORTACIONES BASE
   ========================================= */

/* Variables y reset */
@import 'base/variables.css';
@import 'base/reset.css';

/* Componentes */
@import 'components/buttons.css';
@import 'components/modal.css';
@import 'components/projects.css';

/* Layout */
@import 'layout/navigation.css';

/* Secciones */
@import 'sections/projects.css';
/* @import 'sections/hero.css'; - Archivo no existe, usando estilos en style.css */
@import 'sections/services.css';
@import 'sections/about.css';
@import 'sections/contact.css';
@import 'sections/footer.css';

/* =========================================
   ESTILOS GENERALES
   ========================================= */

/* Secciones generales */
.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Texto con gradiente verde vibrante */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

/* Gradiente verde para botones */
.btn-gradient-green {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    background-size: 200% 200%;
    animation: gradient-animation 3s ease infinite;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);
    transition: all 0.3s ease;
}

.btn-gradient-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.4);
    animation-duration: 1.5s;
}

/* Animaciones para gradientes */
@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Espaciado */
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

/* Texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { 
    color: var(--primary); 
    text-shadow: 0 0 20px rgba(0, 208, 132, 0.3);
}
.text-secondary { color: var(--secondary); }
.text-success { 
    color: var(--success);
    text-shadow: 0 0 15px rgba(0, 208, 132, 0.4);
}
.text-danger { color: var(--danger); }

/* Efectos de brillo verde */
.glow-green {
    box-shadow: 0 0 20px rgba(0, 208, 132, 0.4);
    border: 1px solid rgba(0, 208, 132, 0.3);
}

.glow-green:hover {
    box-shadow: 0 0 30px rgba(0, 208, 132, 0.6);
    border-color: var(--primary);
}

/* Elementos destacados con verde vibrante */
.highlight-green {
    background: linear-gradient(135deg, var(--primary-soft), rgba(0, 208, 132, 0.1));
    border-left: 4px solid var(--primary);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.highlight-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 208, 132, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

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

/* Efectos especiales para elementos destacados */
.pulse-green {
    animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 208, 132, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 208, 132, 0.8), 0 0 60px rgba(0, 208, 132, 0.6);
    }
}

/* Texto con efecto de escritura */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* =========================================
   ESTILOS DE CONTACTO Y MAPA
   ========================================= */

/* Sección de ubicación */
.location-section {
    margin-top: var(--spacing-xl);
}

.location-section h4 {
    margin-bottom: var(--spacing-lg);
    color: var(--gray-800);
    font-size: var(--font-size-xl);
}

.map-container {
    margin-top: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.2);
}

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

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

/* Animación del contador de proyectos */
@keyframes countUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

#projects-counter {
    animation: countUp 2s ease-out;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

.hero-feature:hover #projects-counter {
    text-shadow: 0 0 10px rgba(0, 208, 132, 0.6);
    transform: scale(1.05);
    color: var(--primary);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
}
