body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/*.hero {
    background: #0057b8;
    color: white;
    padding: 60px;
    text-align: center;
}*/

:root {
    --primary: #00d2ff;
    --secondary: #0066ff;
    --dark: #0a0f1d;
    --text-muted: #8f9cae;
}

.hero-modern {
    background: radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.20), transparent 40%), 
            radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.20), transparent 40%),
            linear-gradient(135deg, #0a0f1d, #0f1a2d);

    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: #ffffff;
    font-family: system-ui, sans-serif;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.hero-modern h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin: 1.5rem 0 0.5rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;  
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
}

.description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
}









.btn {
    background: white;
    color: #0057b8;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}
/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #003f82;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.nav-links li a:hover {
    text-decoration: underline;
}

/* LOGO EN NAVBAR */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;   /* Ajusta el tamaño del logo */
    width: auto;
}

.logo span {
    color: white;
    font-size: 22px;
    font-weight: bold;
}

/* HAMBURGUESA */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #003f82;
        width: 200px;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

/* FOOTER */
.footer {
    background: #0a0f1d;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 10px;
}

.footer-logo h3 {
    margin: 0;
    font-size: 22px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
    font-size: 14px;
}

/* FOOTER RESPONSIVE */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo img {
        margin: auto;
    }
}

/* ZIGZAG SECTION */
.zigzag-section {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

.zigzag-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #0057b8;
    font-size: 28px;
}

.zigzag {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.zigzag.reverse {
    flex-direction: row-reverse;
}

.zigzag-img img {
    width: 140px;
    height: auto;
}

.zigzag-text h3 {
    color: #003f82;
    margin-bottom: 10px;
    font-size: 22px;
}

.zigzag-text p {
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .zigzag {
        flex-direction: column !important;
        text-align: center;
    }

    .zigzag-img img {
        width: 120px;
    }
}


/* Seccion de logos de clientes */
.clientes {
    padding: 5rem 2rem;
    background-color: #0a0f1d; /* Manteniendo el fondo oscuro del Hero Opción 1 */
    text-align: center;
    overflow: hidden;
}

.clientes h2 {
    color: #8f9cae;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3rem;
}

/* Contenedor que oculta lo que se sale de la pantalla */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 3rem;
    /* Difuminado elegante a los lados para que los logos aparezcan y desaparezcan suavemente */
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

/* Contenido que se mueve */
.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    gap: 3rem;
    min-width: 100%;
    animation: scroll-left 25s linear infinite;
}

/* Detener la animación cuando el usuario pasa el mouse por encima (opcional pero muy usado) */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Estilo individual de cada logo */
.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 60px;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Truco actual: Convierte logos de colores a escala de grises/blanco semi-transparente para que no desentonen */
    filter: grayscale(1) brightness(2) opacity(0.6);
    transition: filter 0.3s ease;
}

/* Al pasar el mouse por encima de un logo, recupera su color original */
.logo-item img:hover {
    filter: grayscale(0) brightness(1) opacity(1);
}

/* La animación clave */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(calc(-100% - 3rem)); /* Resta el tamaño del gap */
    }
}


/* ================================
   SECCIÓN DE DESCARGAS (compacta)
   ================================ */

.descargas-section {
    padding: 60px 20px;
    text-align: center;
    background: #f7f9fc;
}

.descargas-section h2 {
    font-size: 28px;
    color: #003f82;
    margin-bottom: 8px;
}

.descargas-subtitle {
    color: #555;
    font-size: 15px;
    margin-bottom: 30px;
}

/* Buscador */
.descargas-search {
    width: 100%;
    max-width: 350px;
    padding: 10px 14px;
    margin: 0 auto 25px;
    display: block;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* Grid más compacto */
.descargas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

/* Tarjetas más pequeñas */
.descarga-card {
    background: white;
    padding: 15px; /* antes 25px */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.descarga-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.10);
}

/* Icono más pequeño */
.descarga-icon {
    font-size: 28px; /* antes 40px */
    margin-bottom: 10px;
}

/* Título compacto */
.descarga-card h3 {
    color: #003f82;
    margin-bottom: 6px;
    font-size: 18px;
}

/* Texto más pequeño */
.descarga-card p {
    color: #555;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Botón más pequeño */
.btn-descargar {
    display: inline-block;
    padding: 8px 16px; /* antes 10px 20px */
    background: #0066ff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-descargar:hover {
    background: #004fcc;
}


/* ============================
   MODAL MINIMALISTA
   ============================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.modal-overlay.open {
    display: flex;
}

.modal-container {
    background: #ffffff;
    width: 95%;
    max-width: 600px;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    font-family: system-ui, sans-serif;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #777;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 25px;
}

/* FORMULARIO */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fafafa;
}

textarea {
    height: 90px;
    resize: none;
}

/* BOTONES */
.btn-next, .btn-prev, .btn-submit {
    margin-top: 20px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-next {
    background: #000;
    color: #fff;
}

.btn-prev {
    background: #e5e5e5;
    color: #333;
}

.btn-submit {
    background: #007aff;
    color: #fff;
}


/* ============================
   MODAL MINIMALISTA (scroll fix)
   ============================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    display: none;
    justify-content: center;
    align-items: flex-start; /* importante */
    backdrop-filter: blur(4px);
    z-index: 9999;
    overflow-y: auto; /* permite scroll en el modal */
    padding: 40px 0; /* espacio arriba y abajo */
}

.modal-overlay.open {
    display: flex;
}

.modal-container {
    background: #ffffff;
    width: 95%;
    max-width: 600px;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    font-family: system-ui, sans-serif;
    margin: auto; /* centra el modal incluso con scroll */
}


/* Loader Overlay */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loader-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
