/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: none;
    transition: var(--transition);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.6) 50%, transparent 100%);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.navbar {
    padding: 0.75rem 0 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0;
    padding-left: 20px;
}

.logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

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

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    font-family: 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
    background: linear-gradient(135deg, #0099cc 0%, #1e40af 50%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(0, 153, 204, 0.4));
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Estilo especial para el logo con el mismo diseño que servicios */
.logo-text.services-style {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 15px rgba(37, 99, 235, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(37, 99, 235, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
}

.logo-text.services-style::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    border-radius: 10px;
    z-index: -1;
    filter: blur(15px);
    animation: logoBackground 4s ease-in-out infinite alternate;
}

.logo-text.services-style::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -2;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0% {
        text-shadow: 
            0 0 15px rgba(37, 99, 235, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 4px 8px rgba(37, 99, 235, 0.2);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(37, 99, 235, 0.6),
            0 3px 6px rgba(0, 0, 0, 0.4),
            0 6px 12px rgba(37, 99, 235, 0.3);
    }
}

@keyframes logoBackground {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }
    100% {
        opacity: 0.4;
        transform: scale(1.03);
    }
}

@keyframes logoPulse {
    0% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.logo-text:hover {
    filter: drop-shadow(0 0 16px rgba(0, 153, 204, 0.6));
    transform: scale(1.02);
}

.logo-text.services-style:hover {
    filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.6));
    transform: scale(1.05);
    animation: logoGlow 1.5s ease-in-out infinite alternate;
}

.logo-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #0099cc 0%, #1e40af 50%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(2px);
    opacity: 0.7;
    z-index: -1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: blur(2px) brightness(1);
    }
    to {
        filter: blur(3px) brightness(1.2);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-right: 0;
    padding-right: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: transparent;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    border-radius: 6px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff 0%, #3b82f6 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
    margin-top: -1px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/hero-image.jpg') center/cover no-repeat;
    z-index: -1;
    opacity: 0.4;
    filter: brightness(0.9) contrast(1.1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.3) 100%);
    z-index: -1;
}

.hero-top-gradient {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 0.3) 100%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-color);
    opacity: 0.3;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 2.5rem;
    line-height: 1.5;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

.btn-full {
    width: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Secciones generales */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Servicios */
.services {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.service-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00d4ff, #3b82f6, #1e40af);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon::before {
    opacity: 1;
    animation: iconGlow 2s ease-in-out infinite;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s ease;
}

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

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

@keyframes iconGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--success-color);
    font-size: 0.875rem;
}

/* Estilos especiales para la sección de servicios */
.services-title {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-weight: 800;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 20px rgba(37, 99, 235, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(37, 99, 235, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.services-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    border-radius: 15px;
    z-index: -1;
    filter: blur(20px);
    animation: titleBackground 4s ease-in-out infinite alternate;
}

.services-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -2;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 20px rgba(37, 99, 235, 0.4),
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 8px 16px rgba(37, 99, 235, 0.2);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(37, 99, 235, 0.6),
            0 6px 12px rgba(0, 0, 0, 0.4),
            0 12px 24px rgba(37, 99, 235, 0.3);
    }
}

@keyframes titleBackground {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes titlePulse {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
}

.services-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    animation: subtitleFloat 4s ease-in-out infinite;
}

.services-subtitle::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite alternate;
}

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

@keyframes underlineGlow {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
    }
}

/* Estilos especiales para la sección de productos */
.products-title {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-weight: 800;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 20px rgba(37, 99, 235, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(37, 99, 235, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    animation: productsTitleGlow 3s ease-in-out infinite alternate;
}

.products-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    border-radius: 15px;
    z-index: -1;
    filter: blur(20px);
    animation: productsTitleBackground 4s ease-in-out infinite alternate;
}

.products-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -2;
    animation: productsTitlePulse 2s ease-in-out infinite;
}

@keyframes productsTitleGlow {
    0% {
        text-shadow: 
            0 0 20px rgba(37, 99, 235, 0.4),
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 8px 16px rgba(37, 99, 235, 0.2);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(37, 99, 235, 0.6),
            0 6px 12px rgba(0, 0, 0, 0.4),
            0 12px 24px rgba(37, 99, 235, 0.3);
    }
}

@keyframes productsTitleBackground {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes productsTitlePulse {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
}

.products-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    animation: productsSubtitleFloat 4s ease-in-out infinite;
}

.products-subtitle::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    border-radius: 2px;
    animation: productsUnderlineGlow 2s ease-in-out infinite alternate;
}

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

@keyframes productsUnderlineGlow {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
    }
}

/* Productos */
.products {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.products-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.products-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.products-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.benefits-list i {
    color: var(--accent-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Nosotros */
.about {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.experience-highlight {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.highlight-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Contacto */
.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Formulario */
.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Formulario Avanzado */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.form-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-block;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link:nth-child(1):hover { background: #1877f2; } /* Facebook */
.social-link:nth-child(2):hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); } /* Instagram */
.social-link:nth-child(3):hover { background: #0077b5; } /* LinkedIn */
.social-link:nth-child(4):hover { background: #25d366; } /* WhatsApp */
.social-link:nth-child(5):hover { background: #ff0000; } /* YouTube */

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--text-light);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero {
        min-height: 80vh;
    }

    .nav-container {
        padding: 0 20px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .logo-text.services-style {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .products-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .services-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .services-subtitle {
        font-size: 1.1rem;
    }
    
    .products-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .products-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .services-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .products-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .products-subtitle {
        font-size: 1rem;
    }
    
    .logo-text.services-style {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

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

.service-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estados de carga */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mensajes de éxito/error */
.message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
} 

/* === WhatsApp Flotante Mejorado === */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  animation: whatsapp-fadein-bounce 1.1s cubic-bezier(.23,1.12,.62,1.01);
}
@keyframes whatsapp-fadein-bounce {
  0% { opacity: 0; transform: scale(0.7) translateY(60px); }
  60% { opacity: 1; transform: scale(1.1) translateY(-10px); }
  80% { transform: scale(0.95) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.whatsapp-link {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: linear-gradient(135deg, #25d366 60%, #128c7e 100%);
  color: #fff;
  border-radius: 50px;
  padding: 0.7em 1.3em 0.7em 1em;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 4px 24px 0 rgba(37,211,102,0.18);
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  position: relative;
  outline: none;
}
.whatsapp-link:focus {
  box-shadow: 0 0 0 3px #25d36655, 0 4px 24px 0 rgba(37,211,102,0.18);
}
.whatsapp-link:hover, .whatsapp-link:focus {
  transform: scale(1.08);
  box-shadow: 0 8px 32px 0 rgba(37,211,102,0.28);
  background: linear-gradient(135deg, #128c7e 60%, #25d366 100%);
}
.whatsapp-link .fab.fa-whatsapp {
  font-size: 2.1rem;
  background: #fff;
  color: #25d366;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 rgba(37,211,102,0.13);
  margin-right: 0.5em;
}
.whatsapp-text {
  display: inline-block;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.whatsapp-tooltip {
  display: none;
  position: absolute;
  right: 0;
  bottom: 110%;
  background: #222;
  color: #fff;
  padding: 0.6em 1em;
  border-radius: 8px;
  font-size: 0.98rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  transform: translateY(8px) scale(0.98);
}
.whatsapp-link:hover .whatsapp-tooltip,
.whatsapp-link:focus .whatsapp-tooltip {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
/* Vibración suave periódica */
@keyframes whatsapp-vibrate {
  0%, 100% { transform: none; }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.whatsapp-float.vibrate {
  animation: whatsapp-vibrate 0.4s linear 1;
}
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 12px;
  }
  .whatsapp-link {
    font-size: 1rem;
    padding: 0.6em 1em 0.6em 0.8em;
  }
  .whatsapp-link .fab.fa-whatsapp {
    font-size: 1.5rem;
    width: 34px;
    height: 34px;
  }
} 

/* Responsive WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
        padding: 0 15px;
    }
    
    .whatsapp-text {
        display: none;
    }
} 

/* Responsive Form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
} 

/* === ¿Por qué elegirnos? Moderno === */
.why-title {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
}
.why-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #00c3ff 0%, #3a7bd5 100%);
  border-radius: 2px;
  margin: 0 auto 2em auto;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin-bottom: 2em;
}
.why-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(58,123,213,0.08), 0 1.5px 6px 0 rgba(0,0,0,0.04);
  padding: 2em 1.5em 1.5em 1.5em;
  text-align: center;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.why-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(58,123,213,0.16), 0 3px 12px 0 rgba(0,0,0,0.08);
  background: linear-gradient(120deg, #f0f7ff 60%, #e6f0fa 100%);
}
.why-icon {
  font-size: 2.7rem;
  color: #3a7bd5;
  margin-bottom: 0.7em;
  background: #e6f0fa;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px 0 rgba(58,123,213,0.08);
}
.why-card h4 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #222;
  letter-spacing: 0.5px;
}
.why-card p {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .why-title {
    font-size: 1.3rem;
  }
  .why-card {
    padding: 1.2em 0.7em 1em 0.7em;
  }
  .why-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
  }
} 

/* === Contacto Moderno === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5em;
  align-items: flex-start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.3em;
}
.contact-card {
  background: #f7faff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(58,123,213,0.07);
  display: flex;
  align-items: center;
  padding: 1.2em 1.3em;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
  cursor: pointer;
}
.contact-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(58,123,213,0.13);
  background: linear-gradient(120deg, #e6f0fa 60%, #f0f7ff 100%);
}
.contact-icon {
  font-size: 2.1rem;
  color: #3a7bd5;
  background: #e6f0fa;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1em;
  box-shadow: 0 1px 4px 0 rgba(58,123,213,0.08);
}
.contact-details h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.2em;
  color: #222;
}
.contact-details p {
  font-size: 0.98rem;
  color: #4a4a4a;
  margin-bottom: 0;
}
.contact-form-modern {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(58,123,213,0.08), 0 1.5px 6px 0 rgba(0,0,0,0.04);
  padding: 2.2em 2em 1.5em 2em;
  transition: box-shadow 0.18s;
}
.contact-form-modern:hover {
  box-shadow: 0 8px 32px 0 rgba(58,123,213,0.16), 0 3px 12px 0 rgba(0,0,0,0.08);
}
.modern-btn {
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(58,123,213,0.08);
  transition: background 0.18s, transform 0.18s;
}
.modern-btn:hover {
  background: linear-gradient(90deg, #00c3ff 0%, #3a7bd5 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  .contact-form-modern {
    padding: 1.2em 0.7em 1em 0.7em;
  }
} 