/* ========================================
   FORZAR ANIMACIONES - PRODUCCIÓN
   ======================================== */

/* Optimización específica para dispositivos con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    
    /* ========================================
       TÍTULO INVOX - Resplandor estático
       ======================================== */
    .hero-title {
        animation: none !important;
        text-shadow: 0 0 20px rgba(74, 26, 74, 0.8) !important;
        transform: none !important;
    }
    
    .hero-subtitle {
        animation: none !important;
        text-shadow: 0 0 15px rgba(74, 26, 74, 0.6) !important;
        transform: none !important;
    }
    
    .hero-description {
        animation: none !important;
        text-shadow: 0 0 10px rgba(74, 26, 74, 0.4) !important;
        transform: none !important;
    }
    
    /* ========================================
       BOTONES - Efectos estáticos
       ======================================== */
    .btn,
    .btn-primary,
    .btn-secondary {
        animation: none !important;
        box-shadow: 0 0 15px rgba(74, 26, 74, 0.3) !important;
        transform: none !important;
    }
    
    .btn:hover {
        box-shadow: 0 0 25px rgba(74, 26, 74, 0.5) !important;
        transform: translateY(-2px) !important;
    }
    
    .btnmisionvision {
        animation: none !important;
        box-shadow: 0 0 20px rgba(74, 26, 74, 0.4) !important;
        transform: none !important;
    }
    
    .btnmisionvision:hover {
        box-shadow: 0 0 30px rgba(74, 26, 74, 0.6) !important;
        transform: translateY(-3px) !important;
    }
    
    /* ========================================
       TARJETAS - Sombras estáticas
       ======================================== */
    .card,
    .service-card,
    .team-card,
    .contact-card {
        animation: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        transform: none !important;
    }
    
    .card:hover,
    .service-card:hover,
    .team-card:hover,
    .contact-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
        transform: translateY(-5px) !important;
    }
    
    /* ========================================
       FORMULARIO - Efectos estáticos
       ======================================== */
    .form-modern .title {
        animation: none !important;
        text-shadow: 0 0 15px rgba(74, 26, 74, 0.6) !important;
        transform: none !important;
    }
    
    .form-modern .title::before,
    .form-modern .title::after {
        animation: none !important;
        box-shadow: 0 0 10px rgba(74, 26, 74, 0.5) !important;
        transform: none !important;
    }
    
    .form-modern label .input {
        animation: none !important;
        box-shadow: 0 0 10px rgba(74, 26, 74, 0.2) !important;
        transform: none !important;
    }
    
    .form-modern label .input:focus {
        box-shadow: 0 0 20px rgba(74, 26, 74, 0.4) !important;
        transform: none !important;
    }
    
    .form-modern .submit {
        animation: none !important;
        box-shadow: 0 0 15px rgba(74, 26, 74, 0.3) !important;
        transform: none !important;
    }
    
    .form-modern .submit:hover {
        box-shadow: 0 0 25px rgba(74, 26, 74, 0.5) !important;
        transform: translateY(-2px) !important;
    }
    
    /* ========================================
       PARTÍCULAS - Estáticas con resplandor
       ======================================== */
    .particle {
        animation: none !important;
        filter: brightness(1.2) !important;
        transform: none !important;
    }
    
    .contact-particles .particle {
        animation: none !important;
        filter: brightness(1.3) !important;
        transform: none !important;
    }
    
    /* ========================================
       NAVEGACIÓN LATERAL - Transiciones suaves
       ======================================== */
    .lateral-nav {
        animation: none !important;
        transition: transform 0.1s ease !important;
    }
    
    .nav-item {
        animation: none !important;
        transition: all 0.1s ease !important;
    }
    
    .nav-item:hover {
        transform: translateX(5px) !important;
    }
    
    .logo-collapsed,
    .logo-expanded {
        animation: none !important;
        transition: all 0.1s ease !important;
    }
    
    /* ========================================
       POPUP - Transiciones instantáneas
       ======================================== */
    .company-popup-overlay {
        animation: none !important;
        transition: opacity 0.1s ease !important;
    }
    
    .company-popup-container {
        animation: none !important;
        transition: transform 0.1s ease !important;
    }
    
    .popup-header {
        animation: none !important;
        text-shadow: 0 0 15px rgba(74, 26, 74, 0.6) !important;
    }
    
    .popup-title {
        animation: none !important;
        text-shadow: 0 0 20px rgba(74, 26, 74, 0.8) !important;
    }
    
    .popup-close {
        animation: none !important;
        box-shadow: 0 0 15px rgba(74, 26, 74, 0.3) !important;
    }
    
    .popup-close:hover {
        box-shadow: 0 0 25px rgba(74, 26, 74, 0.5) !important;
        transform: scale(1.1) !important;
    }
    
    .popup-tabs {
        animation: none !important;
    }
    
    .tab-btn {
        animation: none !important;
        transition: all 0.1s ease !important;
    }
    
    .tab-btn:hover {
        transform: translateY(-2px) !important;
    }
    
    .tab-content {
        animation: none !important;
        transition: opacity 0.1s ease !important;
    }
    
    .content-icon {
        animation: none !important;
        filter: brightness(1.2) !important;
    }
    
    .tab-content h4 {
        animation: none !important;
        text-shadow: 0 0 15px rgba(74, 26, 74, 0.6) !important;
    }
    
    .value-card {
        animation: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    }
    
    .value-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
        transform: translateY(-5px) !important;
    }
    
    .value-icon {
        animation: none !important;
        filter: brightness(1.2) !important;
    }
    
    /* ========================================
       ELEMENTOS DE CONTACTO - Efectos estáticos
       ======================================== */
    .info-item-compact {
        animation: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    }
    
    .info-item-compact:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(-2px) !important;
    }
    
    .social-link {
        animation: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    }
    
    .social-link:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(-2px) !important;
    }
    
    .hours-item-compact {
        animation: none !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
    }
    
    .hours-item-compact:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(-1px) !important;
    }
    
    /* ========================================
       NOTA: Efecto Parallax se mantiene intacto
       ======================================== */
}

/* ========================================
   INVOX - Sistema de Diseño Gótico
   ======================================== */

/* Variables CSS */
:root {
    /* Colores Góticos - Neon Oscuro */
    --color-black: #0a0a0a;
    --color-dark-gray: #1a1a1a;
    --color-gray: #2a2a2a;
    --color-light-gray: #3a3a3a;
    --color-white: #ffffff;
    --color-purple-dark: #4a1a4a;
    --color-purple-medium: #5a2a5a;
    --color-purple-light: #6a3a6a;
    --color-purple-bright: #7a4a7a;
    
    /* Gradientes - Neon Oscuro */
    --gradient-primary: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple-medium) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-purple-medium) 0%, var(--color-purple-bright) 100%);
    
    /* Tipografía */
    --font-primary: 'Inter', sans-serif;
    --font-gothic: 'Orbitron', monospace;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sombras - Neon Oscuro */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-purple: 0 0 20px rgba(74, 26, 74, 0.4);
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Navegación Lateral */
.lateral-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 80px;
    height: auto;
    background: var(--gradient-secondary);
    border-radius: 0 20px 20px 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-purple-dark);
    transition: var(--transition-normal);
}

.lateral-nav:hover {
    width: 200px;
    box-shadow: var(--shadow-purple);
}

.nav-container {
    padding: var(--spacing-md) var(--spacing-sm);
}

.nav-logo {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-purple-dark);
}

.nav-logo h2 {
    font-family: var(--font-gothic);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-purple-bright);
    text-shadow: 0 0 10px var(--color-purple-bright);
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo-collapsed {
    transition: opacity 0.3s ease, width 0.3s ease;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

.logo-expanded {
    transition: opacity 0.3s ease, width 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateX(-8px);
    position: absolute;
    left: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Cuando el nav se expande: ocultar JFM y mostrar Juan F */
.lateral-nav:hover .logo-collapsed {
    opacity: 0;
    width: 0;
    min-width: 0;
}

.lateral-nav:hover .logo-expanded {
    opacity: 1;
    transform: translateX(0);
    width: auto;
    min-width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-white);
    border-radius: 10px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: var(--transition-normal);
    z-index: -1;
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
    left: 0;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--color-white);
    transform: translateX(5px);
}

.nav-icon {
    font-size: 1.2rem;
    margin-right: var(--spacing-sm);
    min-width: 20px;
}

.nav-text {
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.lateral-nav:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-indicator {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-purple);
}

/* Contenedor Principal */
.main-container {
    position: relative;
    width: 400vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Secciones */
.section {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.section-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    padding: var(--spacing-xl);
    text-align: center;
}

/* Sección Inicio */
.inicio-section {
    background: var(--gradient-secondary);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-gothic);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 0 30px var(--color-purple-bright);
}

.title-line {
    display: block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.title-subtitle {
    display: block;
    font-size: 0.6em;
    color: var(--color-white);
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--color-purple-bright);
    }
    to {
        text-shadow: 0 0 30px var(--color-purple-bright), 0 0 40px var(--color-purple-bright);
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Botones */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 26, 74, 0.5);
}

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

.btn-secondary:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

/* Sección Nosotros */
.nosotros-section {
    background: var(--gradient-secondary);
}

.section-header {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 60vh;
}

.section-title {
    font-family: var(--font-gothic);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.team-card {
    background: var(--gradient-secondary);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--color-purple-dark);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

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

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-purple);
    border-color: var(--color-purple-medium);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.team-card h3 {
    font-family: var(--font-gothic);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-purple-bright);
}

.team-card p {
    opacity: 0.9;
    line-height: 1.3;
    font-size: 0.9rem;
}

/* Sección Servicios */
.servicios-section {
    background: var(--gradient-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.service-card {
    background: var(--gradient-secondary);
    padding: var(--spacing-xl);
    border-radius: 20px;
    border: 1px solid var(--color-purple-dark);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-purple);
    border-color: var(--color-purple-medium);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.service-icon {
    font-size: 2.5rem;
    margin-right: var(--spacing-md);
}

.service-card h3 {
    font-family: var(--font-gothic);
    font-size: 1.5rem;
    color: var(--color-purple-bright);
}

.service-features {
    list-style: none;
    margin-top: var(--spacing-md);
}

.service-features li {
    padding: var(--spacing-xs) 0;
    opacity: 0.8;
    position: relative;
    padding-left: var(--spacing-md);
}

.service-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--color-purple-medium);
}

/* Sección Contacto */
.contacto-section {
    background: var(--gradient-secondary);
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Layout Principal de Contacto */
.contacto-main-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
    min-height: 40vh;
    padding-top: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

/* Header de Contacto (IZQUIERDA) */
.contacto-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: 0;
    animation: slideInFromLeft 0.8s ease-out;
    position: relative;
}

.contacto-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(107, 44, 107, 0.1), transparent);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contacto-header:hover::before {
    opacity: 1;
}

/* Formulario de Contacto Compacto */
.contact-form-compact {
    background: var(--gradient-secondary);
    padding: var(--spacing-xs);
    border-radius: 8px;
    border: 1px solid var(--color-purple-dark);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-xs);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 44, 107, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 44, 107, 0.3);
    border-color: var(--color-purple-medium);
}

.contact-form-compact:hover::before {
    left: 100%;
}

.form-group {
    position: relative;
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 6px var(--spacing-xs);
    background: transparent;
    border: 1px solid var(--color-purple-dark);
    border-radius: 5px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-group input::after,
.form-group textarea::after,
.form-group select::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(107, 44, 107, 0.1), transparent);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-purple-medium);
    box-shadow: 0 0 15px rgba(107, 44, 107, 0.5), 0 0 25px rgba(107, 44, 107, 0.3);
    transform: scale(1.02);
    animation: glowPulse 2s infinite;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--color-purple-light);
    box-shadow: 0 0 8px rgba(107, 44, 107, 0.4);
}

.form-group label {
    position: absolute;
    top: 6px;
    left: var(--spacing-xs);
    color: var(--color-white);
    opacity: 0.7;
    transition: var(--transition-normal);
    pointer-events: none;
    font-size: 0.8rem;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: -8px;
    left: var(--spacing-xs);
    font-size: 0.7rem;
    color: var(--color-purple-bright);
    background: var(--color-dark-gray);
    padding: 0 var(--spacing-xs);
}

.form-group select option {
    background: var(--color-dark-gray);
    color: var(--color-white);
    padding: var(--spacing-xs);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--gradient-secondary);
    border-radius: 15px;
    border: 1px solid var(--color-purple-dark);
    transition: var(--transition-normal);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-purple);
    border-color: var(--color-purple-medium);
}

.info-icon {
    font-size: 2rem;
    margin-right: var(--spacing-md);
    min-width: 60px;
}

.info-content h4 {
    font-family: var(--font-gothic);
    color: var(--color-purple-bright);
    margin-bottom: var(--spacing-xs);
}

.info-content p {
    opacity: 0.9;
}

/* Panel Lateral de Contacto (DERECHA) */
.contacto-lateral {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: var(--spacing-md);
    animation: slideInFromRight 0.8s ease-out 0.2s both;
    position: relative;
}

.contacto-lateral::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    background: linear-gradient(135deg, transparent, rgba(107, 44, 107, 0.1), transparent);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contacto-lateral:hover::before {
    opacity: 1;
}

/* Información de Contacto Compacta */
.contact-info-compact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    animation: fadeInStagger 0.6s ease-out 0.4s both;
}

.contact-info-compact .info-item-compact:nth-child(1) {
    animation-delay: 0.5s;
}

.contact-info-compact .info-item-compact:nth-child(2) {
    animation-delay: 0.6s;
}

.contact-info-compact .info-item-compact:nth-child(3) {
    animation-delay: 0.7s;
}

.info-item-compact {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--gradient-secondary);
    border-radius: 12px;
    border: 1px solid var(--color-purple-dark);
    transition: var(--transition-normal);
    min-height: 60px;
}

.info-item-compact:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 5px 15px rgba(107, 44, 107, 0.4);
    border-color: var(--color-purple-medium);
}

.info-item-compact {
    animation: fadeInStagger 0.5s ease-out both;
}

.info-item-compact .info-icon {
    font-size: 1.5rem;
    margin-right: var(--spacing-sm);
    min-width: 40px;
}

.info-item-compact .info-content h4 {
    font-family: var(--font-gothic);
    color: var(--color-purple-bright);
    margin-bottom: 4px;
    font-size: 1rem;
}

.info-item-compact .info-content p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Redes Sociales Compactas */
.social-links-compact {
    animation: fadeInStagger 0.6s ease-out 0.8s both;
}

.social-links-compact h4 {
    font-family: var(--font-gothic);
    color: var(--color-purple-bright);
    margin-bottom: var(--spacing-xs);
    font-size: 0.85rem;
}

.social-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
}

.social-grid-compact .social-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--gradient-secondary);
    border-radius: 12px;
    border: 1px solid var(--color-purple-dark);
    text-decoration: none;
    color: var(--color-white);
    transition: var(--transition-normal);
    font-size: 0.9rem;
    min-height: 50px;
}

.social-grid-compact .social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(107, 44, 107, 0.5);
    border-color: var(--color-purple-medium);
}

.social-grid-compact .social-link {
    animation: fadeInStagger 0.4s ease-out both;
}

.social-grid-compact .social-link:nth-child(1) { animation-delay: 0.9s; }
.social-grid-compact .social-link:nth-child(2) { animation-delay: 1.0s; }
.social-grid-compact .social-link:nth-child(3) { animation-delay: 1.1s; }
.social-grid-compact .social-link:nth-child(4) { animation-delay: 1.2s; }

.social-grid-compact .social-icon {
    margin-right: var(--spacing-xs);
    font-size: 1.2rem;
}

/* Horarios de Atención Compactos */
.business-hours-compact {
    animation: fadeInStagger 0.6s ease-out 1.3s both;
}

.business-hours-compact h4 {
    font-family: var(--font-gothic);
    color: var(--color-purple-bright);
    margin-bottom: var(--spacing-xs);
    font-size: 0.85rem;
}

.hours-list-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hours-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs);
    background: var(--gradient-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-purple-dark);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    animation: fadeInStagger 0.4s ease-out both;
    min-height: 40px;
}

.hours-item-compact:nth-child(1) { animation-delay: 1.4s; }
.hours-item-compact:nth-child(2) { animation-delay: 1.5s; }
.hours-item-compact:nth-child(3) { animation-delay: 1.6s; }

.hours-item-compact:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 3px 10px rgba(107, 44, 107, 0.3);
    border-color: var(--color-purple-medium);
}

.hours-item-compact.emergency {
    border-color: var(--color-purple-medium);
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-purple-medium) 100%);
    box-shadow: 0 0 10px rgba(107, 44, 107, 0.4);
}

.hours-item-compact.emergency:hover {
    transform: translateX(8px) scale(1.05);
    box-shadow: 0 5px 15px rgba(107, 44, 107, 0.6);
}

.hours-item-compact .day {
    color: var(--color-white);
    opacity: 0.9;
}

.hours-item-compact .time {
    color: var(--color-purple-bright);
    font-weight: 500;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones específicas para Contacto */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(107, 44, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(107, 44, 107, 0.6), 0 0 30px rgba(107, 44, 107, 0.4);
    }
}

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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

/* Partículas específicas para Contacto */
.contact-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.contact-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-purple-medium);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-purple-medium);
}

/* Estilos para mensajes del formulario */
.form-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.3s ease-out;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Estilos para botón de carga */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== FORMULARIO MODERNO MEJORADO ===== */
.form-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(15px);
    color: #fff;
    border: 1px solid rgba(74, 26, 74, 0.3);
    box-shadow: 
        0 0 20px rgba(74, 26, 74, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(106, 58, 106, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-modern:hover {
    box-shadow: 
        0 0 30px rgba(74, 26, 74, 0.5),
        0 8px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(106, 58, 106, 0.2);
    transform: translateY(-2px);
}

.form-modern .title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 25px;
    color: var(--color-purple-medium);
    margin: 0 0 8px 0;
    z-index: 2;
    text-shadow: 
        0 0 5px rgba(74, 26, 74, 0.6),
        0 0 10px rgba(74, 26, 74, 0.4),
        0 0 15px rgba(74, 26, 74, 0.3);
    transition: all 0.3s ease;
}

.form-modern:hover .title {
    text-shadow: 
        0 0 8px rgba(74, 26, 74, 0.9),
        0 0 15px rgba(74, 26, 74, 0.6),
        0 0 25px rgba(74, 26, 74, 0.4);
    transform: scale(1.02);
}

.form-modern .title::before {
    width: 18px;
    height: 18px;
}

.form-modern .title::after {
    width: 18px;
    height: 18px;
    animation: pulse 1s linear infinite;
}

.form-modern .title::before,
.form-modern .title::after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    border-radius: 50%;
    left: 0px;
    background: radial-gradient(circle, var(--color-purple-medium) 0%, var(--color-purple-dark) 100%);
    box-shadow: 
        0 0 8px rgba(74, 26, 74, 0.7),
        0 0 16px rgba(74, 26, 74, 0.5),
        inset 0 1px 2px rgba(106, 58, 106, 0.3);
    transition: all 0.3s ease;
}

.form-modern:hover .title::before,
.form-modern:hover .title::after {
    box-shadow: 
        0 0 12px rgba(74, 26, 74, 0.9),
        0 0 24px rgba(74, 26, 74, 0.7),
        0 0 36px rgba(74, 26, 74, 0.5),
        inset 0 1px 2px rgba(106, 58, 106, 0.5);
    transform: scale(1.1);
}

.form-modern .message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
    z-index: 2;
    position: relative;
    text-shadow: 0 0 3px rgba(107, 44, 107, 0.3);
    transition: all 0.3s ease;
}

.form-modern:hover .message {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(107, 44, 107, 0.4);
}

.form-modern label {
    position: relative;
    z-index: 2;
}

.form-modern label .input {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    width: 100%;
    padding: 14px 12px 8px 12px;
    outline: 0;
    border: 1px solid rgba(74, 26, 74, 0.4);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 0 10px rgba(74, 26, 74, 0.2),
        inset 0 1px 0 rgba(106, 58, 106, 0.1);
}

/* Estilos específicos para inputs de texto (nombre, email, mensaje) */
.form-modern label input[type="text"].input,
.form-modern label input[type="email"].input,
.form-modern label textarea.input {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(107, 44, 107, 0.3);
    box-shadow: 
        0 0 10px rgba(107, 44, 107, 0.1),
        inset 0 1px 0 rgba(139, 92, 246, 0.1);
    padding: 12px 10px 6px 10px;
    margin: 0;
    border-radius: 12px;
}

.form-modern label .input:hover {
    border-color: rgba(74, 26, 74, 0.6);
    box-shadow: 
        0 0 15px rgba(74, 26, 74, 0.3),
        inset 0 1px 0 rgba(106, 58, 106, 0.2);
    transform: translateY(-1px);
}

/* Estilos específicos para selects */
.form-modern label select.input {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B2C6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    border: 1px solid rgba(107, 44, 107, 0.3);
    box-shadow: 
        0 0 10px rgba(107, 44, 107, 0.1),
        inset 0 1px 0 rgba(139, 92, 246, 0.1);
}

.form-modern label select.input:hover {
    border-color: rgba(107, 44, 107, 0.5);
    box-shadow: 
        0 0 15px rgba(107, 44, 107, 0.2),
        inset 0 1px 0 rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

.form-modern label select.input option {
    background: #333;
    color: #fff;
    padding: 8px;
}

/* Estilos adicionales para selects en diferentes navegadores */
.form-modern label select.input:focus {
    border-color: var(--color-purple-medium);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-modern label select.input:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

/* Para Firefox */
@-moz-document url-prefix() {
    .form-modern label select.input {
        background: #333;
        color: #fff;
    }
    
    .form-modern label select.input option {
        background: #333;
        color: #fff;
    }
}

/* Para Safari */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .form-modern label select.input {
            background: #333;
            color: #fff;
        }
        
        .form-modern label select.input option {
            background: #333;
            color: #fff;
        }
    }
}

.form-modern label .input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(107, 44, 107, 0.05) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.form-modern label .input:focus {
    border-color: var(--color-purple-medium);
    box-shadow: 
        0 0 20px rgba(74, 26, 74, 0.5),
        0 0 40px rgba(74, 26, 74, 0.3),
        0 0 0 2px rgba(106, 58, 106, 0.4),
        inset 0 1px 0 rgba(106, 58, 106, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1f1f1f 0%, #2f2f2f 50%, #1f1f1f 100%);
}

.form-modern label .input:focus::before {
    opacity: 1;
}

.form-modern label .input:hover::before {
    opacity: 0.5;
}

.form-modern label .input + span {
    color: rgba(139, 92, 246, 0.7);
    position: absolute;
    left: 10px;
    top: 0px;
    font-size: 0.9em;
    cursor: text;
    transition: 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.form-modern label .input:placeholder-shown + span {
    top: 6px;
    font-size: 0.9em;
    color: rgba(139, 92, 246, 0.7);
}

.form-modern label .input:focus + span,
.form-modern label .input:valid + span {
    color: var(--color-purple-light);
    top: 0px;
    font-size: 0.7em;
    font-weight: 600;
}

.form-modern label .textarea {
    min-height: 60px;
    resize: vertical;
    font-family: inherit;
}

.form-modern .submit {
    border: none;
    outline: none;
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--color-purple-medium) 0%, var(--color-purple-dark) 50%, var(--color-purple-medium) 100%);
    background-size: 200% 200%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 2;
    border: 1px solid rgba(74, 26, 74, 0.5);
    box-shadow: 
        0 0 15px rgba(74, 26, 74, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(106, 58, 106, 0.3);
    text-shadow: 0 0 5px rgba(74, 26, 74, 0.6);
}

.form-modern .submit:hover {
    background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-purple-medium) 50%, var(--color-purple-light) 100%);
    background-position: 100% 0%;
    transform: translateY(-3px);
    box-shadow: 
        0 0 25px rgba(74, 26, 74, 0.7),
        0 0 50px rgba(74, 26, 74, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(106, 58, 106, 0.5);
    text-shadow: 
        0 0 8px rgba(74, 26, 74, 0.9),
        0 0 15px rgba(74, 26, 74, 0.6);
    border-color: rgba(74, 26, 74, 0.7);
}

.form-modern .submit:active {
    transform: translateY(0);
}

.form-modern .submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@keyframes pulse {
    from {
        transform: scale(0.9);
        opacity: 1;
    }
    to {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Animaciones para el formulario */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.6;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
}

@keyframes formParticleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-8px) translateX(4px) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-4px) translateX(-3px) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-12px) translateX(2px) scale(1.05);
        opacity: 0.18;
    }
}

@keyframes formBackgroundParticles {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 30% 70%, 70% 30%;
    }
    25% {
        background-position: 25% 25%, 75% 75%, 60% 40%, 40% 60%, 80% 20%;
    }
    50% {
        background-position: 50% 50%, 50% 50%, 70% 30%, 50% 50%, 30% 70%;
    }
    75% {
        background-position: 75% 25%, 25% 75%, 40% 60%, 60% 40%, 20% 80%;
    }
    100% {
        background-position: 100% 0%, 0% 100%, 30% 70%, 70% 30%, 70% 30%;
    }
}

/* Estilos específicos para el contenedor del formulario moderno */
.contact-form-modern {
    width: 100%;
    max-width: 800px;
    position: relative;
}


/* Responsive para el formulario moderno */
@media (max-width: 768px) {
    .form-modern {
        padding: 20px;
        gap: 12px;
    }
    
    .form-modern .title {
        font-size: 24px;
        padding-left: 25px;
    }
    
    .form-modern .title::before,
    .form-modern .title::after {
        height: 14px;
        width: 14px;
    }
    
    .form-modern label .input {
        padding: 18px 8px 8px 8px;
        font-size: 15px;
    }
    
    .form-modern .submit {
        padding: 12px;
        font-size: 15px;
    }
}

.contact-particles .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.contact-particles .particle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.contact-particles .particle:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.contact-particles .particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.contact-particles .particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.contact-particles .particle:nth-child(6) {
    top: 70%;
    left: 30%;
    animation-delay: 5s;
    animation-duration: 7s;
}

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

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

/* Utilidades */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

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

::-webkit-scrollbar-track {
    background: var(--color-dark-gray);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple-bright);
}

/* ========================================
   BOTÓN DE INFORMACIÓN CORPORATIVA
   ======================================== */

.btnmisionvision-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

.btnmisionvision {
    background: var(--gradient-accent) !important;
    border: 2px solid var(--color-purple-bright) !important;
    border-radius: 40px !important;
    padding: 12px 24px !important;
    color: var(--color-white) !important;
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-purple) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    margin: 0 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.btnmisionvision::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.btnmisionvision:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(74, 26, 74, 0.6) !important;
    border-color: var(--color-purple-light) !important;
    background: var(--gradient-primary) !important;
}

.btnmisionvision:hover::before {
    left: 0;
}

.btnmisionvision:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(74, 26, 74, 0.4) !important;
}

.btnmisionvision-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btnmisionvision-text {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btnmisionvision-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

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

.btnmisionvision:hover .btnmisionvision-arrow {
    transform: translateX(5px);
}

/* Estilos adicionales para forzar el diseño */
.btnmisionvision-container .btnmisionvision {
    background: linear-gradient(135deg, #5a2a5a 0%, #7a4a7a 100%) !important;
    border: 2px solid #7a4a7a !important;
    border-radius: 50px !important;
    padding: 15px 30px !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 20px rgba(74, 26, 74, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    margin: 0 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

.btnmisionvision-container .btnmisionvision:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(74, 26, 74, 0.6) !important;
    border-color: #6a3a6a !important;
    background: linear-gradient(135deg, #4a1a4a 0%, #5a2a5a 100%) !important;
}

/* ========================================
   POPUP MISIÓN, VISIÓN Y VALORES
   ======================================== */

.company-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 70%);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.company-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.company-popup-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 26, 74, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 26, 74, 0.02) 0%, transparent 50%);
    animation: overlayGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes overlayGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.company-popup-container {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(10, 10, 10, 0.9) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    border: 2px solid transparent;
    border-radius: 25px;
    box-shadow: 
        0 0 30px rgba(74, 26, 74, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(74, 26, 74, 0.2);
    backdrop-filter: blur(25px);
    max-width: 950px;
    width: 92%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.7) rotateX(15deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.company-popup-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #4a1a4a, 
        #5a2a5a, 
        #6a3a6a, 
        #4a1a4a);
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

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

.company-popup-overlay.active .company-popup-container {
    transform: scale(1) rotateX(0deg);
}

.popup-header {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(20, 20, 20, 0.8) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    padding: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #4a1a4a;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.popup-title {
    font-family: var(--font-gothic);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-white);
    text-shadow: 
        0 0 10px #4a1a4a,
        0 0 20px #4a1a4a,
        0 0 30px #4a1a4a;
    margin: 0;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.popup-close {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #4a1a4a;
    color: var(--color-white);
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.popup-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, #4a1a4a 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.popup-close:hover {
    background: #4a1a4a;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 
        0 0 25px #4a1a4a,
        0 0 50px #4a1a4a;
}

.popup-close:hover::before {
    width: 100px;
    height: 100px;
}

.popup-tabs {
    display: flex;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(15, 15, 15, 0.8) 100%);
    border-bottom: 2px solid #4a1a4a;
    position: relative;
}

.popup-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 26, 74, 0.05) 50%, 
        transparent 100%);
    animation: tabsGlow 4s ease-in-out infinite;
}

@keyframes tabsGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.tab-btn {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-gothic);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 4px solid transparent;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(74, 26, 74, 0.1) 0%, 
        rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #6a3a6a;
    transform: translateY(-2px);
    text-shadow: 0 0 10px #6a3a6a;
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn.active {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(20, 20, 20, 0.6) 100%);
    border-bottom-color: #4a1a4a;
    color: #4a1a4a;
    font-weight: 700;
    text-shadow: 
        0 0 10px #4a1a4a,
        0 0 20px #4a1a4a;
    box-shadow: 
        0 5px 15px rgba(74, 26, 74, 0.2),
        inset 0 1px 0 rgba(74, 26, 74, 0.1);
}

.tab-btn.active::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(74, 26, 74, 0.2) 0%, 
        rgba(0, 0, 0, 0.3) 100%);
}

.popup-content {
    padding: var(--spacing-xxl);
    max-height: 65vh;
    overflow-y: auto;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(10, 10, 10, 0.2) 100%);
    position: relative;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(74, 26, 74, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(74, 26, 74, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.tab-content.active {
    display: block;
}

.content-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    display: block;
    filter: drop-shadow(0 0 20px rgba(74, 26, 74, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

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

.tab-content h4 {
    font-family: var(--font-gothic);
    font-size: 2.2rem;
    color: var(--color-white);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    text-shadow: 
        0 0 10px rgba(74, 26, 74, 0.8),
        0 0 20px rgba(74, 26, 74, 0.6),
        0 0 30px rgba(74, 26, 74, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.tab-content h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(74, 26, 74, 0.6), 
        transparent);
    border-radius: 2px;
}

.tab-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    text-align: justify;
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-lg);
    border-radius: 15px;
    border: 1px solid rgba(74, 26, 74, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.value-card {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(15, 15, 15, 0.6) 100%);
    border: 2px solid #4a1a4a;
    border-radius: 20px;
    padding: var(--spacing-lg);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(74, 26, 74, 0.1), 
        transparent);
    transition: all 0.6s ease;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #4a1a4a;
    box-shadow: 
        0 20px 40px rgba(74, 26, 74, 0.3),
        0 0 20px rgba(74, 26, 74, 0.2),
        inset 0 1px 0 rgba(74, 26, 74, 0.1);
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(20, 20, 20, 0.8) 100%);
}

.value-card:hover::before {
    left: 100%;
}

.value-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    display: block;
    filter: drop-shadow(0 0 15px rgba(74, 26, 74, 0.6));
    animation: valueIconPulse 2s ease-in-out infinite;
}

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

.value-card h5 {
    font-family: var(--font-gothic);
    font-size: 1.4rem;
    color: #6a3a6a;
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 26, 74, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.value-card p {
    font-size: 1rem;
    color: var(--color-white);
    text-align: center;
    margin: 0;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-md);
    border-radius: 10px;
    border: 1px solid rgba(74, 26, 74, 0.2);
}

/* Scrollbar personalizada para el popup */
.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: var(--color-dark-gray);
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple-bright);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PERFIL POPUP - Juan Felipe Muñoz
   ======================================== */

.profile-popup-container {
    max-width: 720px;
}

.profile-popup-header {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-popup-header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.profile-popup-avatar-wrap {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-popup-avatar-wrap:hover {
    transform: scale(1.05);
}

.profile-popup-avatar-wrap:focus {
    outline: 2px solid rgba(106, 58, 106, 0.8);
    outline-offset: 2px;
}

.profile-popup-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(106, 58, 106, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: block;
}

.profile-popup-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.profile-popup-title {
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 1px;
    text-transform: none;
}

.profile-popup-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}

.profile-popup-content {
    max-height: 60vh;
}

/* Bloque de descripción del perfil */
.profile-description-block {
    padding: 0.25rem 0;
}

.profile-description-block p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.profile-intro {
    font-weight: 500;
}

.profile-list-title {
    font-family: var(--font-gothic);
    font-size: 1.15rem;
    color: #8a5a8a;
    margin: 1.25rem 0 0.75rem;
    letter-spacing: 0.5px;
}

.profile-skills-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.profile-skills-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.profile-skills-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #6a3a6a, #8a5a8a);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(106, 58, 106, 0.6);
}

.profile-closing {
    margin-bottom: 0 !important;
    font-style: italic;
    opacity: 0.9;
}

/* Tarjetas de formación */
.formation-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.formation-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 20, 20, 0.4) 100%);
    border: 1px solid rgba(74, 26, 74, 0.4);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
}

.formation-card:hover {
    border-color: rgba(106, 58, 106, 0.6);
    box-shadow: 0 8px 24px rgba(74, 26, 74, 0.2);
}

.formation-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.formation-badge {
    font-weight: 700;
    font-size: 1rem;
    color: #8a5a8a;
    letter-spacing: 0.5px;
}

.formation-dates {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.formation-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

/* Tarjeta de referencia */
.reference-card {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(20, 20, 20, 0.4) 100%);
    border: 1px solid rgba(74, 26, 74, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.35s ease;
}

.reference-card:hover {
    border-color: rgba(106, 58, 106, 0.6);
    box-shadow: 0 8px 24px rgba(74, 26, 74, 0.2);
}

.reference-name {
    font-family: var(--font-gothic);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.reference-phone {
    display: inline-block;
    font-size: 1.1rem;
    color: #8a5a8a;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.25s ease;
}

.reference-phone:hover {
    color: #b07ab0;
    text-decoration: underline;
}

.reference-email {
    display: block;
    font-size: 1rem;
    color: #8a5a8a;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.25s ease;
    word-break: break-all;
}

.reference-email:hover {
    color: #b07ab0;
    text-decoration: underline;
}

.reference-role {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Lightbox foto de perfil */
.profile-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-photo-lightbox.active {
    display: flex;
    opacity: 1;
}

.profile-photo-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(106, 58, 106, 0.6);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.75rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 2;
}

.profile-photo-lightbox-close:hover {
    background: rgba(74, 26, 74, 0.8);
    transform: scale(1.05);
}

.profile-photo-lightbox-inner {
    max-width: 90vw;
    max-height: 85vh;
    padding: 2rem;
}

.profile-photo-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 3px solid rgba(106, 58, 106, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

/* Responsive para el popup */
@media (max-width: 768px) {
    .company-popup-container {
        width: 95%;
        max-height: 90vh;
        margin: var(--spacing-md);
    }
    
    .popup-header {
        padding: var(--spacing-md);
    }
    
    .popup-title {
        font-size: 1.2rem;
    }
    
    .popup-content {
        padding: var(--spacing-md);
    }
    
    .tab-content h4 {
        font-size: 1.4rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .value-card {
        padding: var(--spacing-sm);
    }
    
    .tab-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .profile-popup-avatar {
        width: 48px;
        height: 48px;
    }
    
    .profile-popup-title {
        font-size: 1.35rem;
    }
    
    .profile-popup-subtitle {
        font-size: 0.8rem;
    }
    
    .profile-description-block p,
    .profile-skills-list li {
        font-size: 0.95rem;
    }
    
    .formation-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .company-popup-container {
        width: 98%;
        margin: var(--spacing-sm);
    }
    
    .popup-header {
        padding: var(--spacing-sm);
    }
    
    .popup-title {
        font-size: 1rem;
    }
    
    .popup-content {
        padding: var(--spacing-sm);
    }
    
    .content-icon {
        font-size: 2rem;
    }
    
    .tab-content h4 {
        font-size: 1.2rem;
    }
    
    .tab-content p {
        font-size: 0.9rem;
    }
    
    .profile-popup-avatar {
        width: 44px;
        height: 44px;
    }
    
    .profile-popup-title {
        font-size: 1.2rem;
    }
    
    .profile-popup-subtitle {
        font-size: 0.75rem;
    }
    
    .reference-name {
        font-size: 1.1rem;
    }
    
    .profile-photo-lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .profile-photo-lightbox-inner {
        padding: 1rem;
    }
}
