:root {
    --primary: #3b82f6;
    --secondary: #10b981;
    --accent: #8b5cf6;
    --dark: #1e293b;
    --light: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
}

/* Estilos para megamenu */
.megamenu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: none;
}

.megamenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Fix para el ancho del megamenu - evita scroll horizontal */
.megamenu-container {
    position: static;
}

.megamenu-wrapper {
    position: relative;
}

/* Prevenir scroll horizontal */
.megamenu {
    left: auto;
    right: 0;
    transform-origin: top right;
}

/* Para pantallas grandes, centrar el megamenu */
@media (min-width: 1280px) {
    .megamenu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        transform-origin: top center;
    }

    .megamenu.active {
        transform: translateX(-50%) translateY(0);
    }

    /* Excepción para megamenu alineado a la derecha */
    .megamenu-right {
        left: auto !important;
        right: 0 !important;
        transform: translateY(10px) !important;
        transform-origin: top right !important;
    }

    .megamenu-right.active {
        transform: translateY(0) !important;
    }
}

/* Animaciones */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8); }
    100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.glowing {
    animation: glow 3s ease-in-out infinite;
}

/* Efectos tarjetas */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card:nth-child(1):hover { border-bottom-color: #3b82f6; }
.service-card:nth-child(2):hover { border-bottom-color: #10b981; }
.service-card:nth-child(3):hover { border-bottom-color: #8b5cf6; }
.service-card:nth-child(4):hover { border-bottom-color: #f59e0b; }

/* Badge popular */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 20px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Optimizacion SEO para headings */
.seo-heading {
    line-height: 1.2;
    margin-bottom: 1rem;
}
