/* Variables CSS personalizadas */
:root {
    --bg-dark: #111827;
    --text-light: #F9FAFB;
    --primary-accent: #6366F1;
    --secondary-accent: #8B5CF6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
}

/* Estilos base */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navegación activa */
.nav-active {
    color: var(--primary-accent) !important;
    font-weight: 600;
}

/* Menú móvil - estilos básicos */
#mobile-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0.5rem 0.75rem 0;
}

/* Forzar comportamiento correcto del menú móvil */
@media (max-width: 768px) {
    #main-nav {
        display: none !important;
    }
    
    #mobile-menu-button {
        display: block !important;
    }
}

@media (min-width: 769px) {
    #main-nav {
        display: flex !important;
    }
    
    #mobile-menu-button {
        display: none !important;
    }
    
    #mobile-menu {
        display: none !important;
    }
}

/* Forzar estilos base para evitar problemas de cache */
body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%) !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    min-height: 100vh;
}

/* Evitar elementos duplicados */
nav {
    position: relative !important;
}

/* Asegurar que solo haya una navegación visible */
#main-nav {
    display: flex !important;
}

#mobile-menu {
    display: none !important;
}

/* Forzar estilos del header */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
}

/* Animaciones suaves */
* {
    transition: all 0.3s ease;
}

/* Efectos de hover mejorados */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Alineación de tarjetas de métricas en paneles */
.stat-card {
    min-height: 5.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Gradientes personalizados */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline personalizado */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    width: 2px;
    height: 100%;
    background-color: #374151;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 1.25rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary-accent);
    border-radius: 9999px;
    transform: translate(-45%, 50%);
    box-shadow: 0 0 15px var(--primary-accent);
}

/* FAQ Accordion */
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary span {
    transform: rotate(45deg);
}

/* Formularios mejorados */
.form-input {
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* Botones personalizados */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid #374151;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

/* Cards mejoradas */
.card {
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Loading spinner */
.spinner {
    border: 2px solid #374151;
    border-top: 2px solid var(--primary-accent);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--error-color);
}

.notification.warning {
    background-color: var(--warning-color);
}

/* ===== RESPONSIVE DESIGN COMPLETO ===== */

/* Breakpoints personalizados */
@media (max-width: 640px) {
    /* Móviles pequeños */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .text-5xl {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .text-6xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .text-7xl {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    /* Header móvil */
    #header .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    #header .bg-gray-900\/60 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Logo más pequeño */
    #header img {
        width: 2rem !important;
        height: 2rem !important;
    }
    
    /* Menú móvil */
    #mobile-menu {
        left: 0.5rem !important;
        right: 0.5rem !important;
        margin-top: 0.25rem !important;
    }
    
    #mobile-menu > div {
        padding: 0.75rem !important;
    }
    
    #mobile-menu a {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    /* Móviles grandes */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-7xl {
        font-size: 3.5rem;
    }
    
    /* Header tablet */
    #header .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    #header .bg-gray-900\/60 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Logo tablet */
    #header img {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablets */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .text-5xl {
        font-size: 3rem;
    }
    
    .text-6xl {
        font-size: 3.5rem;
    }
    
    .text-7xl {
        font-size: 4rem;
    }
}

@media (min-width: 1025px) {
    /* Desktop */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ===== MENÚ MÓVIL OPTIMIZADO ===== */
@media (max-width: 768px) {
    /* Ocultar menú desktop */
    #main-nav {
        display: none !important;
    }
    
    /* Mostrar botón móvil */
    #mobile-menu-button {
        display: block !important;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: background-color 0.3s ease;
    }
    
    #mobile-menu-button:hover {
        background-color: rgba(99, 102, 241, 0.1);
    }
    
    /* Menú móvil */
    #mobile-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        z-index: 1000 !important;
        margin-top: 0.5rem !important;
        display: none !important;
    }
    
    #mobile-menu.show {
        display: block !important;
        animation: slideDown 0.3s ease-out !important;
    }
    
    #mobile-menu > div {
        background: rgba(17, 24, 39, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(99, 102, 241, 0.3) !important;
        border-radius: 1rem !important;
        padding: 1rem !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    }
    
    #mobile-menu a {
        display: block !important;
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0 !important;
        border-radius: 0.5rem !important;
        transition: all 0.3s ease !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
    }
    
    #mobile-menu a:hover {
        background: rgba(99, 102, 241, 0.1) !important;
        color: #a5b4fc !important;
    }
    
    #mobile-menu a:last-child {
        background: #6366f1 !important;
        color: white !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
    }
    
    #mobile-menu a:last-child:hover {
        background: #4f46e5 !important;
    }
}

@media (min-width: 769px) {
    /* Ocultar menú móvil en desktop */
    #mobile-menu-button {
        display: none !important;
    }
    
    #mobile-menu {
        display: none !important;
    }
    
    /* Mostrar menú desktop */
    #main-nav {
        display: flex !important;
    }
}

/* Animación del menú móvil */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEJORAS ADICIONALES ===== */

/* Mejoras para botones y enlaces */
.btn-mobile {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mejoras para cards */
.card-responsive {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .card-responsive {
        padding: 1rem;
        border-radius: 0.75rem;
    }
}

/* Mejoras para grid */
.grid-responsive {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 641px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Asegurar que no haya elementos flotantes problemáticos */
body {
    position: relative;
    overflow-x: hidden;
}

/* Corregir elementos que pueden estar causando problemas de layout */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para accesibilidad */
.focus-visible:focus {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-accent);
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Efectos de partículas (opcional) */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary-accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Nuevos efectos visuales y animaciones */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

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

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

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

/* Efectos de glassmorphism mejorados */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Efectos de hover mejorados */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hover-glow:hover {
    animation: glow 2s ease-in-out infinite;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ===== SISTEMA DE ANIMACIONES SUTILES ===== */

/* Estados iniciales - Solo elementos específicos empiezan ocultos */
.slide-in-left,
.slide-in-right,
.slide-in-top,
.slide-in-bottom,
.fade-in,
.zoom-in,
.bounce-in,
.animate-on-scroll {
    opacity: 1 !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Solo aplicar animaciones a elementos que las necesiten */
.slide-in-left:not(.animated) {
    opacity: 0.3 !important;
    transform: translateX(-30px) !important;
}

.slide-in-right:not(.animated) {
    opacity: 0.3 !important;
    transform: translateX(30px) !important;
}

.slide-in-top:not(.animated) {
    opacity: 0.3 !important;
    transform: translateY(-20px) !important;
}

.slide-in-bottom:not(.animated) {
    opacity: 0.3 !important;
    transform: translateY(20px) !important;
}

.fade-in:not(.animated) {
    opacity: 0.3 !important;
    transform: translateY(10px) !important;
}

.zoom-in:not(.animated) {
    opacity: 0.3 !important;
    transform: scale(0.95) !important;
}

/* Estados animados - cuando se activan */
.slide-in-left.animated {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.slide-in-right.animated {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.slide-in-top.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.slide-in-bottom.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.zoom-in.animated {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.bounce-in.animated {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.animate-on-scroll.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Transformaciones iniciales específicas */
.slide-in-left {
    transform: translateX(-150px) !important;
}

.slide-in-right {
    transform: translateX(150px) !important;
}

.slide-in-top {
    transform: translateY(-150px) !important;
}

.slide-in-bottom {
    transform: translateY(150px) !important;
}

.fade-in {
    transform: translateY(50px) !important;
}

.zoom-in {
    transform: scale(0.3) !important;
}

.bounce-in {
    transform: scale(0.1) !important;
}

.animate-on-scroll {
    transform: translateY(100px) !important;
}

/* Efectos especiales para contadores */
.counter {
    transition: all 0.3s ease !important;
}

.counter.counted {
    color: #6366f1 !important;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5) !important;
}

/* Efectos de hover mejorados */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
}

/* Efectos de glassmorphism */
.glass-effect,
.glass-effect-strong {
    backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s ease !important;
}

.glass-effect:hover,
.glass-effect-strong:hover {
    backdrop-filter: blur(30px) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* ===== SUBMENÚ SUTIL PARA FAQ ===== */

.submenu-container {
    position: relative;
    display: inline-block;
}

/* Asegurar que el header permita que los submenús se muestren */
header {
    overflow: visible !important;
}

header .container {
    overflow: visible !important;
}

header .bg-gray-900\/60 {
    overflow: visible !important;
}

/* Estilos específicos para el blog */
#header {
    overflow: visible !important;
}

#header .container {
    overflow: visible !important;
}

#header .bg-gray-900\/60 {
    overflow: visible !important;
}

/* Asegurar que la navegación principal permita submenús */
#main-nav {
    overflow: visible !important;
}

.submenu-trigger {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submenu-trigger:hover {
    color: #a5b4fc !important;
}

.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: none;
    pointer-events: none;
}

.submenu-container:hover .submenu,
.submenu-container:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    pointer-events: auto;
}

.submenu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #d1d5db;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* ===== SISTEMA DE BOTÓN DE DERRAME VISCOSO ===== */
.viscous-container {
    position: relative;
    display: inline-block;
}

.viscous-button {
    position: relative;
    overflow: visible;
    transition: all 0.4s ease;
    transform-origin: center;
    will-change: transform, border-radius, box-shadow;
    min-width: 200px;
    min-height: 50px;
    z-index: 10;
}

.viscous-button:hover:not(.active) {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.6);
}

.viscous-button.active {
    border-radius: 50px 50px 15px 15px;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    animation: viscousMelting 0.4s ease-in-out;
}

.viscous-form {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    width: 350px;
    height: 0;
    overflow: hidden;
    border-radius: 25px 25px 30px 30px;
    margin-top: -10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scaleY(0);
    transform-origin: top center;
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.4);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    z-index: 9999;
}

.viscous-form::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 0 0 50px 50px;
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.viscous-form.active {
    height: 450px;
    transform: translateX(-50%) scaleY(1);
    padding: 35px;
    animation: viscousFormDrop 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.viscous-form.active::before {
    opacity: 1;
}

/* Contenido del formulario viscoso */
.viscous-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease 0.2s;
}

.viscous-form.active .viscous-form-content {
    opacity: 1;
    transform: translateY(0);
}

.viscous-form-group {
    margin-bottom: 8px;
}

.viscous-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.viscous-form-group input,
.viscous-form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.viscous-form-group input::placeholder,
.viscous-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.viscous-form-group input:focus,
.viscous-form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
}

.viscous-submit-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 15px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-top: 15px;
}

.viscous-submit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.viscous-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
    font-weight: bold;
}

.viscous-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.15);
}

/* Efectos de partículas viscosas */
.viscous-particle {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: rgba(99, 102, 241, 0.3);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.close-accordion {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.close-accordion:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.1);
}

.rubber-form input,
.rubber-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.rubber-form input:focus,
.rubber-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(31, 41, 55, 0.9);
}

.rubber-form input::placeholder,
.rubber-form textarea::placeholder {
    color: #9ca3af;
}

.rubber-form button[type="submit"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rubber-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.rubber-form button[type="button"] {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #4b5563;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rubber-form button[type="button"]:hover {
    color: #ffffff;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.success-message {
    text-align: center;
    padding: 2rem;
    color: #10b981;
    font-weight: 600;
}

/* Animaciones de derrame viscoso */
@keyframes viscousMelting {
    0% { 
        border-radius: 50px;
        transform: scaleY(1);
    }
    25% { 
        border-radius: 50px 50px 40px 40px;
        transform: scaleY(0.85) scaleX(1.1);
    }
    50% { 
        border-radius: 50px 50px 25px 25px;
        transform: scaleY(1.1) scaleX(0.95);
    }
    75% { 
        border-radius: 50px 50px 20px 20px;
        transform: scaleY(0.95) scaleX(1.05);
    }
    100% { 
        border-radius: 50px 50px 15px 15px;
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes viscousFormDrop {
    0% {
        transform: translateX(-50%) scaleY(0);
        border-radius: 25px 25px 30px 30px;
    }
    50% {
        transform: translateX(-50%) scaleY(0.5);
        border-radius: 30px 30px 25px 25px;
    }
    100% {
        transform: translateX(-50%) scaleY(1);
        border-radius: 25px 25px 30px 30px;
    }
}

/* Efecto de rebote elástico */
.rubber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.rubber-button:hover::before {
    left: 100%;
}

.rubber-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Efecto de pulso elástico */
@keyframes elasticPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.rubber-button.pulsing {
    animation: elasticPulse 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== SISTEMA DE ACORDEÓN PARA BOTONES ===== */

.accordion-form {
    margin-top: 1rem;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.accordion-content {
    position: relative;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.close-accordion {
    background: rgba(75, 85, 99, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-accordion:hover {
    background: rgba(75, 85, 99, 0.8);
    color: #ffffff;
    transform: scale(1.1);
}

.accordion-form input,
.accordion-form textarea {
    background: rgba(31, 41, 55, 0.8) !important;
    border: 1px solid rgba(75, 85, 99, 0.5) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.accordion-form input:focus,
.accordion-form textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    outline: none !important;
}

.accordion-form input::placeholder,
.accordion-form textarea::placeholder {
    color: #9CA3AF !important;
}

.accordion-form button[type="submit"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.accordion-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3) !important;
}

.accordion-form button[type="button"] {
    background: transparent !important;
    border: 1px solid rgba(75, 85, 99, 0.8) !important;
    color: #9CA3AF !important;
    transition: all 0.3s ease !important;
}

.accordion-form button[type="button"]:hover {
    border-color: #9CA3AF !important;
    color: #ffffff !important;
    background: rgba(75, 85, 99, 0.2) !important;
}

.success-message {
    animation: slideInFromTop 0.5s ease;
}

/* Animación para el acordeón */
@keyframes accordionSlide {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.accordion-form {
    animation: accordionSlide 0.3s ease;
}

/* Suavizar animación de FAQ */
.faq-accordion details {
    transition: all 0.35s ease;
}

.faq-accordion details[open] > div {
    animation: fadeInUp 0.35s ease;
}

/* Efectos para botones de acordeón */
.accordion-button {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.accordion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.accordion-button:hover::before {
    left: 100%;
}

.accordion-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-top {
    animation: slideInFromTop 0.8s ease-out;
}

.animate-slide-in-bottom {
    animation: slideInFromBottom 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Efectos de contador */
.counter {
    animation: countUp 1s ease-out;
}

/* Efectos de shimmer */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Efectos de partículas */
.particle-effect {
    position: relative;
    overflow: hidden;
}

.particle-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Efectos de gradiente animado */
.animated-gradient {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Efectos de blur mejorados */
.backdrop-blur-strong {
    backdrop-filter: blur(25px);
}

.backdrop-blur-extra {
    backdrop-filter: blur(35px);
}

/* Efectos de borde animado */
.animated-border {
    position: relative;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Efectos de texto */
.text-glow {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.text-shimmer {
    background: linear-gradient(90deg, #fff, #6366f1, #fff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s ease-in-out infinite;
}

/* Animaciones modernas adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    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 zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

/* Efectos de ripple */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Efectos de tilt */
.tilt {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

/* Efectos magnéticos */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Efectos de parallax */
.parallax {
    will-change: transform;
}

/* Efectos de typing */
.typewriter {
    border-right: 2px solid #6366f1;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: #6366f1;
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* Efectos de hover mejorados */
.hover-bounce:hover {
    animation: bounceIn 0.6s ease;
}

.hover-pulse:hover {
    animation: pulse 2s infinite;
}

.hover-wiggle:hover {
    animation: wiggle 1s ease-in-out;
}

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

/* Efectos de gradiente animado */
.gradient-animated {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Efectos de neón */
.neon-glow {
    text-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1, 0 0 15px #6366f1, 0 0 20px #6366f1;
    animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1, 0 0 15px #6366f1, 0 0 20px #6366f1;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Efectos de morphing */
.morphing {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.morphing:hover {
    border-radius: 50%;
    transform: rotate(180deg);
}

/* Efectos de glassmorphism avanzado */
.glass-advanced {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.glass-advanced:hover::before {
    left: 100%;
}

/* Efectos de partículas avanzadas */
.particles-advanced {
    position: relative;
    overflow: hidden;
}

.particles-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: particle-float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Idioma switch overrides */
#lang-switcher button {
    line-height: 1.25rem;
}

/* Hacer el logo circular en header y footer */
header img[alt*="EV Solutions Logo"],
footer img[alt*="EV Solutions Logo"],
header a > img[alt*="EV Solutions"],
footer .flex img[alt*="EV Solutions"] {
    border-radius: 9999px; /* full */
}

/* Mobile menu fixes */
#mobile-menu {
    z-index: 9999 !important;
    position: absolute !important;
}

#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu:not(.hidden) {
    display: block !important;
}

/* Mobile menu button */
#mobile-menu-button {
    z-index: 10000 !important;
    position: relative !important;
}
