/* ===================================
   ESTILOS GLOBALES - MAQSA
   =================================== */

/* Variables CSS */
:root {
    --maqsa-green: #2D5016;
    --maqsa-lightgreen: #4A7C2C;
    --maqsa-lime: #7CB342;
    --maqsa-earth: #8B4513;
    --maqsa-gold: #FFB300;
    --maqsa-sky: #87CEEB;
    --maqsa-white: #FFFFFF;
    --maqsa-dark: #1A1A1A;
    --maqsa-gray: #F8F9FA;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--maqsa-dark);
    background-color: var(--maqsa-white);
    line-height: 1.6;
}

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

.section-padding {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--maqsa-green);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--maqsa-green) 0%, var(--maqsa-lightgreen) 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--maqsa-green);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--maqsa-green);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--maqsa-green);
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--maqsa-green);
    margin-bottom: 0.5rem;
}

.card-text {
    color: #666;
    font-size: 0.95rem;
}

/* Efectos de hover para imágenes */
.img-hover-zoom {
    overflow: hidden;
    background-color: #f8f9fa;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.img-hover-zoom:hover img {
    transform: scale(1.15);
}

/* Badge de marca */
.brand-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--maqsa-gray);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--maqsa-green);
}

/* Responsivo */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Animaciones AOS personalizadas */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(124, 179, 66, 0.3);
    border-top: 3px solid var(--maqsa-lime);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}


/* ===================================
   RESPALDO DE COLORES (FALLBACK)
   =================================== */

/* Forzar colores de fondo si Tailwind falla en cargar la config */
.bg-maqsa-green {
    background-color: #2D5016 !important;
}

.text-maqsa-green {
    color: #2D5016 !important;
}

/* Corrección para los gradientes del Hero si fallan */
section[class*="from-maqsa-green"] {
    background: linear-gradient(135deg, #2D5016 0%, #4A7C2C 100%);
}

/* Asegurar que el texto dentro de las cards sea visible por defecto */
.card h3, .group h3 {
    color: #1A1A1A; /* Color oscuro por defecto */
}

/* Solo aplicar color blanco si tiene fondo oscuro explícito */
.bg-maqsa-green h1, 
.bg-maqsa-green p,
section[class*="bg-gradient"] h1,
section[class*="bg-gradient"] p {
    color: white;
}