/* ===================================
   VARIABLES Y RESET
   =================================== */

:root {
    /* Colores principales - Azul brillante */
    --primary-blue: #0EA5E9;
    --primary-blue-dark: #0284C7;
    --primary-blue-light: #38BDF8;
    --accent-blue: #7DD3FC;
    
    /* Naranja para acentos y CTAs */
    --accent-orange: #F59E0B;
    --accent-orange-dark: #D97706;
    --accent-orange-light: #FBBF24;
    
    /* Colores oscuros - Gris pizarra */
    --dark-bg: #1E293B;
    --dark-surface: #334155;
    --dark-surface-light: #475569;
    
    /* Colores neutros */
    --white: #FFFFFF;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-500: #94A3B8;
    --gray-700: #64748B;
    --gray-800: #475569;
    
    /* Tipografía */
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Barlow', sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-blue: 0 8px 32px rgba(14, 165, 233, 0.35);
    --shadow-orange: 0 8px 32px rgba(245, 158, 11, 0.35);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--dark-bg);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 1);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-brand i {
    font-size: 2rem;
    animation: cogSpin 8s ease-in-out infinite, cogColors 6s ease-in-out infinite;
}

/* Rotación con velocidad variable */
@keyframes cogSpin {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(90deg); }
    15% { transform: rotate(90deg); } /* Pausa */
    25% { transform: rotate(180deg); }
    40% { transform: rotate(270deg); }
    45% { transform: rotate(270deg); } /* Pausa */
    60% { transform: rotate(450deg); } /* Giro rápido */
    75% { transform: rotate(540deg); }
    80% { transform: rotate(540deg); } /* Pausa */
    100% { transform: rotate(720deg); }
}

/* Cambio de colores */
@keyframes cogColors {
    0%, 100% { color: var(--primary-blue); }
    25% { color: var(--accent-blue); }
    50% { color: var(--accent-orange); }
    75% { color: var(--primary-blue-light); }
}

/* Botón hamburguesa - oculto por defecto */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: var(--transition-normal);
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--gray-200);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    transition: var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--white);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-blue);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.4);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(2, 132, 199, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark-bg) 0%, #1a0505 100%);
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, transparent 0%, var(--dark-bg) 100%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(14, 165, 233, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(245, 158, 11, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(14, 165, 233, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(2, 132, 199, 0.2), transparent);
    background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -2px;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-blue) 50%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--gray-200);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--accent-orange);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    min-width: 150px;
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-blue);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--gray-300);
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray-300);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===================================
   SECCIONES GENERALES
   =================================== */

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--primary-blue);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray-300);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   SERVICIOS
   =================================== */

.servicios {
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.servicios::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    transform: scaleX(0);
    transition: var(--transition-slow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-blue);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--gray-200);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features i {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

/* ===================================
   VENTAJAS
   =================================== */

.ventajas {
    background: var(--dark-bg);
    position: relative;
}

.ventajas-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ventaja-item {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid transparent;
    transition: var(--transition-normal);
}

.ventaja-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    background: rgba(26, 26, 26, 0.7);
}

.ventaja-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(2, 132, 199, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-normal);
}

.ventaja-item:hover .ventaja-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    transform: scale(1.15);
}

.ventaja-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
    transition: var(--transition-normal);
}

.ventaja-item:hover .ventaja-icon i {
    color: var(--white);
}

.ventaja-item h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.ventaja-item p {
    color: var(--gray-300);
    line-height: 1.6;
}

/* ===================================
   CONTACTO
   =================================== */

.contacto {
    background: var(--dark-surface);
    position: relative;
}

.contacto::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.contacto-info h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contacto-info p {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: var(--transition-normal);
}

.info-item:hover {
    border-color: var(--primary-blue);
    transform: translateX(10px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

.info-item h4 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.info-item a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-item a:hover {
    color: var(--primary-blue);
}

.info-item p {
    color: var(--gray-300);
    margin: 0;
}

.contacto-form {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    color: var(--gray-200);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--dark-bg);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--primary-blue);
    font-size: 2rem;
}

.footer-text {
    color: var(--gray-300);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
}

.footer-bottom p {
    color: var(--gray-300);
    font-size: 0.9rem;
}

/* ===================================
   WHATSAPP FLOAT
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

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

/* Animaciones de entrada básicas */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
}

.fade-in-up.animated {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
}

.fade-in.animated {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.fade-in-left.animated {
    animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
}

.fade-in-right.animated {
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Escala con rebote */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.scale-in.animated {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotación de entrada */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
}

.rotate-in.animated {
    animation: rotateIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes rotateIn {
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Staggered animations para grupos */
.stagger-1 { animation-delay: 0.1s !important; }
.stagger-2 { animation-delay: 0.2s !important; }
.stagger-3 { animation-delay: 0.3s !important; }
.stagger-4 { animation-delay: 0.4s !important; }
.stagger-5 { animation-delay: 0.5s !important; }
.stagger-6 { animation-delay: 0.6s !important; }

/* ===================================
   ANIMACIONES CONTINUAS (LOOP)
   =================================== */

/* Flotación suave */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Pulso suave */
@keyframes softPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.pulse-animation {
    animation: softPulse 2s ease-in-out infinite;
}

/* Brillo deslizante */
@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shine-animation {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shine 3s ease-in-out infinite;
}

/* Rebote suave */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

.bounce-animation {
    animation: bounce 2s ease infinite;
}

/* Giro del icono */
@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Parpadeo de atención */
@keyframes attention {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
}

/* ===================================
   ANIMACIONES DE HOVER Y TOUCH
   =================================== */

/* Efecto ripple para botones (funciona en móvil con touch) */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Cards con efecto 3D en hover/touch */
.service-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.service-card:hover,
.service-card:active {
    transform: translateY(-15px) rotateX(5deg);
}

/* Iconos con animación continua */
.service-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}

.service-card:hover .service-icon,
.service-card:active .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
}

.service-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i,
.service-card:active .service-icon i {
    animation: iconSpin 0.6s ease;
}

/* Ventajas con efecto de elevación */
.ventaja-item {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.ventaja-item:hover,
.ventaja-item:active {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ventaja-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.4s ease;
}

.ventaja-item:hover .ventaja-icon,
.ventaja-item:active .ventaja-icon {
    transform: scale(1.2) rotate(-5deg);
}

.ventaja-icon i {
    transition: color 0.3s ease, transform 0.3s ease;
}

.ventaja-item:hover .ventaja-icon i,
.ventaja-item:active .ventaja-icon i {
    animation: bounce 0.6s ease;
}

/* Stats del hero con animación */
.stat-item {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.4s ease;
}

.stat-item:hover,
.stat-item:active {
    transform: translateY(-8px) scale(1.05);
    background: rgba(14, 165, 233, 0.15);
}

.stat-item i {
    transition: transform 0.4s ease, color 0.3s ease;
}

.stat-item:hover i,
.stat-item:active i {
    transform: scale(1.3);
    color: var(--accent-orange);
}

/* Navbar links con subrayado animado */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

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

/* CTA con efecto glow */
.nav-cta {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
}

/* Input focus con animación */
.form-group input:focus,
.form-group textarea:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* ===================================
   ANIMACIONES ESPECIALES MÓVIL
   =================================== */

/* Animación de entrada del menú móvil */
@keyframes slideInMenu {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutMenu {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* WhatsApp flotante con animación mejorada */
.whatsapp-float {
    animation: floatWhatsapp 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

@keyframes floatWhatsapp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===================================
   CONTADORES ANIMADOS
   =================================== */

.counter {
    display: inline-block;
}

.counter.counting {
    animation: countPop 0.3s ease;
}

@keyframes countPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===================================
   ANIMACIONES DE TEXTO
   =================================== */

/* Typing effect para títulos */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Gradiente animado en títulos */
.title-line {
    display: block;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-blue) 50%, var(--accent-orange) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 4s ease infinite;
}

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

/* ===================================
   PARALLAX SUAVE
   =================================== */

.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-medium {
    will-change: transform;
    transition: transform 0.1s linear;
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, 
        var(--dark-surface) 25%, 
        var(--dark-surface-light) 50%, 
        var(--dark-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

@media (max-width: 768px) {
    /* Animaciones más sutiles en móvil para mejor rendimiento */
    .service-card:active {
        transform: translateY(-8px) scale(1.02);
    }
    
    .ventaja-item:active {
        transform: translateY(-6px) scale(1.01);
    }
    
    /* Touch feedback visual */
    .btn:active {
        transform: scale(0.95);
    }
    
    .nav-cta:active {
        transform: scale(0.95);
    }
    
    /* Animación del menú hamburguesa */
    .menu-toggle span {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ===================================
   TOUCH FEEDBACK PARA MÓVIL
   =================================== */

.touch-active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
}

.service-card.touch-active {
    transform: translateY(-5px) scale(0.98) !important;
    box-shadow: var(--shadow-blue) !important;
}

.ventaja-item.touch-active {
    transform: translateY(-5px) scale(0.98) !important;
    background: rgba(14, 165, 233, 0.1) !important;
}

/* ===================================
   REVEAL ANIMATIONS
   =================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ===================================
   SCROLL PROGRESS BAR
   =================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    width: 0%;
    z-index: 10001;
    transition: width 0.1s ease;
}

/* ===================================
   GLOW EFFECTS
   =================================== */

.glow-blue {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4),
                0 0 40px rgba(14, 165, 233, 0.2),
                0 0 60px rgba(14, 165, 233, 0.1);
}

.glow-orange {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4),
                0 0 40px rgba(245, 158, 11, 0.2),
                0 0 60px rgba(245, 158, 11, 0.1);
}

/* Hover glow en iconos */
.service-icon:hover,
.ventaja-icon:hover {
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(14, 165, 233, 0.35);
    }
    50% { 
        box-shadow: 0 8px 40px rgba(14, 165, 233, 0.6),
                    0 0 20px rgba(14, 165, 233, 0.3);
    }
}

/* Respeta preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   VISIBILIDAD MÓVIL/DESKTOP
   =================================== */

/* Por defecto: ocultar móvil, mostrar desktop */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-flex !important;
}

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

@media (max-width: 768px) {
    /* Invertir visibilidad móvil/desktop */
    .mobile-only {
        display: inline-flex !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    /* Mostrar botón hamburguesa en móvil */
    .menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* Mostrar solo el nav-cta de móvil */
    .nav-cta.mobile-only {
        display: flex !important;
    }
    
    /* Menú móvil */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 2rem 2rem;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        border-right: 2px solid rgba(14, 165, 233, 0.3);
        z-index: 999;
    }
    
    /* Mostrar menú cuando está activo */
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* Overlay para cerrar el menú */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Ajustes generales móvil */
    .navbar .container {
        padding: 1rem 1.5rem;
    }
    
    .nav-brand span {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .services-grid,
    .ventajas-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-brand span {
        font-size: 1rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
}

/* ===================================
   AVISO DE COOKIES
   =================================== */

.cookie-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cookie-overlay.hidden {
    display: none !important;
}

.cookie-modal {
    background: linear-gradient(145deg, #334155, #1E293B) !important;
    border: 2px solid rgba(14, 165, 233, 0.4) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    max-width: 420px !important;
    width: 90% !important;
    text-align: center !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(14, 165, 233, 0.15) !important;
    position: relative !important;
    animation: cookieAppear 0.5s ease-out !important;
}

@keyframes cookieAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
    animation: cookieWiggle 2s ease-in-out infinite !important;
}

.cookie-icon i {
    color: #F59E0B !important;
}

@keyframes cookieWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.cookie-modal h3 {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 1rem 0 !important;
}

.cookie-modal p {
    color: #d4d4d4 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 0 1.5rem 0 !important;
}

.cookie-buttons {
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 1rem !important;
}

.cookie-btn {
    padding: 0.85rem 1.75rem !important;
    border-radius: 50px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.cookie-accept {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35) !important;
}

.cookie-accept:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.45) !important;
}

.cookie-reject {
    background: transparent !important;
    color: #CBD5E1 !important;
    border: 2px solid #64748B !important;
}

.cookie-reject:hover {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: #0EA5E9 !important;
    color: #ffffff !important;
}

.cookie-link {
    color: #7DD3FC !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
}

.cookie-link:hover {
    text-decoration: underline !important;
    color: #F59E0B !important;
}

@media (max-width: 480px) {
    .cookie-modal {
        padding: 1.5rem !important;
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
    }
    
    .cookie-icon {
        font-size: 2.5rem !important;
    }
    
    .cookie-modal h3 {
        font-size: 1.3rem !important;
    }
    
    .cookie-buttons {
        flex-direction: column !important;
    }
    
    .cookie-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}
