/* ==========================================
   VARIABLES CSS
========================================== */
:root {
    --primary: #FCD34D;
    --primary-dark: #F59E0B;
    --secondary: #DC2626;
    --secondary-dark: #991B1B;
    --whatsapp: #25D366;
    --text: #1F2937;
    --text-light: #6B7280;
    --bg-gray: #F9FAFB;
    --white: #FFFFFF;
    --border: #E5E7EB;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--bg-gray);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   CONTENEDOR PRINCIPAL
========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================
   TIPOGRAFÍA
========================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.category-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

/* ==========================================
   GRADIENTES
========================================== */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

/* ==========================================
   BADGES Y ETIQUETAS
========================================== */
.category-badge {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ==========================================
   EFECTOS DE ANIMACIÓN
========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* ==========================================
   SECCIÓN DE CONTACTO MEJORADA
========================================== */
.section-contact {
    background: linear-gradient(135deg, var(--bg-gray) 0%, rgba(220, 38, 38, 0.05) 100%);
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.section-contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 60%, rgba(252, 211, 77, 0.05), transparent);
    pointer-events: none;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 500;
}

.btn-whatsapp-main {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--whatsapp) 0%, #1FA853 100%);
    color: var(--white);
    font-weight: 700;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-whatsapp-main:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

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

.btn-whatsapp-main i {
    font-size: 1.3rem;
}

/* ==========================================
   BOTÓN WHATSAPP FLOTANTE MEJORADO
========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--whatsapp) 0%, #1FA853 100%);
    color: var(--white);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* ==========================================
   FOOTER MEJORADO
========================================== */
footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: var(--white);
    padding: 4rem 1rem 1.5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.05), transparent),
        radial-gradient(circle at 80% 20%, rgba(252, 211, 77, 0.05), transparent);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: #D1D5DB;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.footer-section p:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-section i {
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary);
}

.footer-social a:nth-child(1):hover {
    background: linear-gradient(135deg, #1877F2, #0A66C2);
}

.footer-social a:nth-child(2):hover {
    background: linear-gradient(135deg, #E4405F, #C13584);
}

.footer-social a:nth-child(3):hover {
    background: linear-gradient(135deg, var(--whatsapp), #1FA853);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.footer-social a:nth-child(2):hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: #9CA3AF;
}

.footer-dev {
    color: #6B7280;
    font-size: 0.875rem;
}

/* ==========================================
   UTILIDADES
========================================== */
.mb-16 {
    margin-bottom: 4rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

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