/* Page-specific styles for /frontend-web/index.html (excluding shared rules) */

header {
    text-align: center;
    padding: 60px 20px 30px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

main {
    flex: 1;
    text-align: center;
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}
main p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #444;
    line-height: 1.6;
}

.hero {
    max-width: 900px;
    margin: auto;
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 3em;           /* Mucho más grande */
    line-height: 1.2;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero h2 {
        font-size: 4em;        /* Más grande en pantallas grandes */
    }
}

.subtitle {
    font-size: 1.3em;
    color: #555;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 750px;
}

/* Botones */
.download-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 70px;
}
.download-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.download-links a:hover {
    transform: translateY(-3px);
}

/* NEW FEATURE BAND */
.new-feature-band {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(to right, #eef6ff, #ffffff);
    border-radius: 20px;
    margin: 60px auto 100px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.new-feature-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.new-feature-content img {
    max-width: 45%;
    border-radius: 20px;
    transition: transform 0.3s;
    cursor: pointer;
}
.new-feature-content img:hover {
    transform: scale(1.05);
}

.new-feature-text {
    max-width: 500px;
}

.new-feature-text h3 {
    font-size: 2.4em;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
}

.new-feature-text p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

/* NEW badge */
.new-badge {
    background: #ff4d4d;
    color: white;
    padding: 5px 14px;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 700px) {
    .new-feature-content {
        flex-direction: column;
        text-align: center;
    }
    .new-feature-content img {
        max-width: 100%;
    }
    .new-feature-text h3 {
        font-size: 1.8em;
    }
}

/* Features grid */
.features {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-top: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 200px;
    text-align: center;
}

/* Imagen */
.feature img {
    max-width: 35%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}
.feature img:hover { transform: scale(1.05); }

/* Texto */
.feature-text {
    max-width: 500px;
}
.feature-text h3 {
    font-size: 2em;
    font-weight: 800;
    color: #222;
    margin-bottom: 15px;
    text-align: left;
}
.feature-text p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

/* Desktop & Tablet: alternar izquierda/derecha */
@media (min-width: 600px) {
    .feature {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .feature:nth-child(even) {
        flex-direction: row-reverse; /* alterna */
    }
}
/* Para móviles (pantallas menores a 600px) */
@media (max-width: 600px) {
    .features {
        margin-top: 0;
    }

    .feature {
        flex-direction: column;  /* Columna en móvil */
        gap: 20px;
        text-align: center;
    }

    .feature img {
        max-width: 100%;
        height: auto;
    }

    .feature-text {
        order: -1;  /* El texto aparece primero */
        max-width: 100%;
    }

    .feature-text h3 {
        font-size: 1.6em;
    }

    .feature-text p {
        font-size: 1em;
        line-height: 1.5;
    }

    /* Para evitar que la alternancia afecte en móvil */
    .feature:nth-child(even) {
        flex-direction: column;
    }
}

/* Animación scroll */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    /** box-shadow: 0 6px 20px rgba(0,0,0,0.4);**/
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
.modal.active { display: flex; }
.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

footer {
    background: #f9f9f9;
    text-align: center;
    padding: 25px;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 50px;
}
