* {
    box-sizing: border-box;
}

body {

    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: white;

}

html {
    scroll-behavior: smooth;
}

.container {

    width: 90%;
    max-width: 1100px;
    margin: auto;

}


/* HEADER */

header {

    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);

    padding: 15px 0;

    position: sticky;
    top: 0;

    z-index: 1000;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}

.header {

    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo img {

    height: 55px;

}

nav a {

    color: white;
    text-decoration: none;
    margin-left: 22px;

    font-weight: 500;

    position: relative;
    transition: 0.3s;

}

nav a:hover {

    color: #38bdf8;

}

nav a::after {

    content: "";
    position: absolute;

    width: 0;
    height: 2px;

    bottom: -4px;
    left: 0;

    background: #38bdf8;

    transition: 0.3s;

}

nav a:hover::after {

    width: 100%;

}

/* HERO */

.hero {

    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #020617, #0f172a);

}

.hero h1 {
    font-size: 48px;
}

.hero span {

    color: #38bdf8;

}


@keyframes blink {

    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }

}

.hero p {

    max-width: 600px;
    margin: auto;
    margin-top: 20px;

}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BOTÓN PRINCIPAL */

.btn-main {

    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    padding: 16px 34px;
    border-radius: 10px;

    color: white;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);

    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}

/* HOVER PRINCIPAL */

.btn-main:hover {

    transform: translateY(-3px);

    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.45);

    background: linear-gradient(135deg, #0ea5e9, #0284c7);

}


/* BOTÓN SECUNDARIO */

.btn-secondary {

    border: 1.5px solid rgba(56, 189, 248, 0.7);

    padding: 16px 34px;
    border-radius: 10px;

    color: white;
    text-decoration: none;
    font-weight: 500;

    background: rgba(255, 255, 255, 0.02);

    transition:
        background 0.25s ease,
        border 0.25s ease,
        transform 0.2s ease;

}

/* HOVER SECUNDARIO */

.btn-secondary:hover {

    background: rgba(56, 189, 248, 0.08);
    border-color: #38bdf8;

    transform: translateY(-2px);

}



/* BENEFITS */

.benefits {

    padding: 20px 0;
    text-align: center;

}

.benefits-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;

}

.benefit {

    background: #1e293b;
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s;

}

.benefit:hover {

    transform: translateY(-6px);

}



/* FEATURES */

.features {

    padding: 80px 0;
    text-align: center;

}

.features-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;

}

.feature {

    background: #1e293b;
    padding: 20px;
    border-radius: 8px;

}


/* DOWNLOAD */

.download {

    text-align: center;
    padding: 100px 20px;
    background: #020617;

}

.hero-note {
    margin-top: 15px;
    font-size: 14px;
    color: #94a3b8;
}
/* FOOTER */

footer {

    text-align: center;
    padding: 30px;
    background: #020617;

}

.section-subtitle {
    max-width: 600px;
    margin: 20px auto 40px;
    color: #cbd5f5;
}

.icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.benefit {
    background: #1e293b;
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature {
    background: #1e293b;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq {
    padding: 80px 20px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: auto;
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s;
}

.faq-question {
    width: 100%;
    padding: 18px;
    background: #1e293b;
    border: none;
    color: white;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* flecha */

.faq-question::after {
    content: "▼";
    font-size: 12px;
    transition: 0.3s;
}

/* cuando está abierto */

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

/* respuesta animada */

.faq-answer {

    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    background: #0f172a;
    color: #cbd5f5;

    transition:
        max-height 0.4s ease,
        padding 0.3s ease;

}

/* estado abierto */

.faq-item.active .faq-answer {

    max-height: 200px;
    padding: 18px;

}

/* imágenes */

.screens-grid img {
    width: 450px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.screens-grid img:hover {
    transform: scale(1.05);
}


/* MODAL */

.image-modal {

    display: none;
    position: fixed;
    z-index: 999999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);

}

.modal-content {

    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;

}

.close {

    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    cursor: pointer;

}

/* SCREENS */

.screens {

    padding: 80px;
    text-align: center;

}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.screens-grid img {
    width: 100%;
    border-radius: 10px;
}

.whatsapp-btn {

    position: fixed;
    bottom: 25px;
    right: 25px;

    background: #25D366;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

    transition: 0.3s;

    z-index: 999;

}

.whatsapp-btn:hover {

    transform: scale(1.1);

}
.contact-header {

    font-size: 14px;
    color: #94a3b8;

}

.video-demo {
    text-align: center;
}

.video-demo h2 {

    font-size: 32px;
    margin-bottom: 10px;

}

.video-demo p {

    color: #94a3b8;
    margin-bottom: 30px;

}

.video-container {
    max-width: 900px;
    margin: auto;
    position: relative;
    aspect-ratio: 16/9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
.video-demo {
    text-align: center;
    margin-bottom: 80px;
}

#download-msg {

    display: none;
    margin-top: 15px;

    color: #38bdf8;
    font-weight: 500;

}

.modal-datos {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content-datos {
    background: #111827;
    /* más cálido y amistoso */
    padding: 35px 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content-datos h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #f0f3f9;
    /* azul más amistoso */
    font-weight: 700;
}

.modal-content-datos p {
    font-size: 15px;
    margin-bottom: 25px;
    color: #cbd5f5;
    line-height: 1.5;
}

.modal-content-datos form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-content-datos input {
    width: 90%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #1e293b;
    color: #e0e7ff;
    font-size: 14px;
    text-align: center;
}

.modal-content-datos input::placeholder {
    color: #94a3b8;
    text-align: center;
}

.modal-content-datos button {
    width: 92%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content-datos button:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.close-download {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #38bdf8;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-download:hover {
    transform: scale(1.2);
}

#downloadIndicator {
    position: fixed;
    top: 20px;
        /* esquina superior */
        right: 20px;
        /* esquina derecha */
        width: 120px;
        /* ajustá según tu logo */
        height: 60px;
    background: url('logo.png') no-repeat center center;
    background-size: contain;
    z-index: 10000;
    display: none;
    /* inicialmente oculto */
    animation: bounce 1s ease infinite alternate;
    padding-left: 70px;
    /* espacio para texto si el logo es a la izquierda */
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: bold;
}

@keyframes bounce {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}



/* ========================= */
/* 📱 MOBILE OPTIMIZADO */
/* ========================= */

@media (max-width: 768px) {

    /* HERO */
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.2;
    }
    .hero h2 {
        font-size: 20px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 14px;
    }

    /* BOTONES */
    .btn-main,
    .btn-secondary {
        width: 100%;
        padding: 14px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* HEADER */
    .header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 45px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav a {
        margin: 0;
        font-size: 13px;
        padding: 5px 8px;
    }

    /* SECCIONES */
    .features,
    .benefits,
    .screens,
    .download,
    .faq {
        padding: 50px 15px;
    }

    /* SCREENS (ARREGLADO) */
    .screens-grid {
        grid-template-columns: 1fr;
    }

    .screens-grid img {
        width: 100%;
        border-radius: 10px;
    }

    /* VIDEO (ARREGLADO - SIN padding-bottom) */
    .video-container {
        width: 100%;
        aspect-ratio: 16/9;
    }

    /* MODAL */
    .modal-content-datos {
        width: 100%;
        max-width: 95%;
        padding: 25px 20px;
    }

    .modal-content-datos input,
    .modal-content-datos button {
        width: 100%;
    }

    /* WHATSAPP */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    /* INDICADOR DESCARGA */
    #downloadIndicator {
        width: 100px;
        height: 50px;
        font-size: 12px;
        padding-left: 50px;
    }

}

#typing {
    color: #38bdf8;
    font-weight: 600;

    height: 62px;
    /* altura fija */
    width: 960px;
    /* ancho fijo CLAVE */

    margin: 10px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 768px) {

    #typing {
        font-size: 22px;
        width: 320px;
        /* un poco más chico */
        height: 26px;
    }

    .hero h1 {
        font-size: 26px;
        line-height: 1.2;
    }

}

.download-info {
    margin-top: 12px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .download-info {
        font-size: 12px;
    }
}