/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: #000;
    line-height: 1.7;
    scroll-behavior: smooth;
}

/* Hero Section con Video */
.hero-video-header {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px;
    margin: 0 auto;
    animation: fadeIn 2s ease-in-out;
}

.hero-content-centered h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 30px;
    max-width: 800px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Botón principal */
.btn-primary {
    display: inline-block;
    background: #E50000;
    color: white;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.3);
}

.btn-primary:hover {
    background: #c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 0, 0, 0.4);
}

/* Botón grande para demostración */
.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
    margin-top: 20px;
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.whatsapp-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.whatsapp-logo:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 0, 0, 0.2);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    width: 150px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #E50000;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #E50000;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Botón de menú hamburguesa */
.menu-toggle {
    display: none;
    background: #E50000;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #c00;
    transform: scale(1.05);
}

/* Menú móvil desplegable */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-list li {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(229, 0, 0, 0.2);
}

.mobile-menu-list a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
    color: #E50000;
}

/* Acciones del navbar */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-nav-contact {
    background: #E50000;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav-contact:hover {
    background: #c00;
    transform: translateY(-2px);
}

/* Selector de idioma con ícono de mundo */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #111;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 6px;
    z-index: 100;
    overflow: hidden;
    top: 100%;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    text-align: left;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: #E50000;
}

.language-dropdown:hover .dropdown-content,
.dropdown-content[style*="block"] {
    display: block !important;
}

/* Secciones generales */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section h2 {
    font-size: 2.3rem;
    margin-bottom: 40px;
    color: #E50000;
    font-weight: 700;
}

.section p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Servicios - Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(229, 0, 0, 0.1);
    border: 1px solid rgba(229, 0, 0, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.service-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
}

.service-card p {
    color: #ddd;
    font-size: 1rem;
    margin-bottom: 15px;
}

.service-card strong {
    color: #E50000;
}

/* Iconos en tarjetas */
.service-card .icon {
    font-size: 2.5rem;
    color: #E50000;
    margin-bottom: 15px;
    background: rgba(229, 0, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Metodología - Camino visual */
.methodology-path {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    overflow-x: auto;
    padding: 10px 0;
}

.step {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
    border: 1px solid rgba(229, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step:hover {
    background: #1a0000;
    transform: scale(1.05);
    border-color: #E50000;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: #E50000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 10px;
    font-size: 1.2rem;
}

.step h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: #ccc;
}

.arrow {
    font-size: 1.5rem;
    color: #E50000;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Resultados - Cuadrícula impactante */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.result-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    background: rgba(229, 0, 0, 0.1);
}

.result-icon {
    font-size: 1.5rem;
    min-width: 40px;
    color: #E50000;
}

.result-item strong {
    color: #E50000;
    font-size: 1.3rem;
}

/* Tecnologías */
.logos-tech {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px auto;
    max-width: 900px;
}

.logos-tech img {
    max-width: 140px;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.3s ease;
}

.logos-tech img:hover {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.1);
}

/* Testimonio */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    backdrop-filter: blur(10px);
}

.testimonial-card p {
    margin: 15px 0;
    color: #ddd;
    line-height: 1.7;
}

/* Sección: Véalo en acción */
#demo-cta {
    background: #111;
    text-align: center;
    padding: 80px 20px;
    margin: 0 auto;
}

#demo-cta h2 {
    color: #E50000;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

#demo-cta p {
    font-size: 1.4rem;
    color: #ddd;
    margin: 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

#demo-cta .btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
    margin-top: 30px;
    display: inline-block;
}

/* Footer */
footer {
    background: #111;
    color: #777;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content-centered h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .nav-logo {
        width: 130px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .section {
        padding: 60px 20px;
    }
    .section h2 {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .methodology-path {
        flex-direction: column;
        gap: 20px;
    }
    .arrow {
        transform: rotate(90deg);
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-logo {
        width: 56px;
        height: 56px;
    }
    /* Estilo para el idioma en móvil */
    .mobile-lang-item {
        text-align: center;
        padding: 15px;
        border-top: 1px solid rgba(229, 0, 0, 0.2);
        font-size: 0.9rem;
        color: #ccc;
    }
}

/* Para pantallas grandes */
@media (min-width: 1200px) {
    .hero-content-centered h1 {
        font-size: 3.2rem;
    }
    .hero-content-centered p {
        font-size: 1.4rem;
    }
}
