/* Estilos generales */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 2rem 0;
}

.container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.app-page-logo {
    max-height: 90px;
    margin-bottom: 25px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* --- NUEVA ESTRUCTURA DE TARJETAS --- */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.info-card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #0056b3;
    text-align: center;
    font-size: 1.5rem;
}

/* Tarjeta de Requisitos */
.requirements-list {
    list-style: none;
    padding: 0;
    font-size: 1rem;
}

.requirements-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.requirements-list li:last-child {
    border-bottom: none;
}

.requirements-list strong {
    color: #333;
}

/* Tarjeta de Descarga */
.download-card {
    text-align: center;
}

.download-card p {
    margin-bottom: 1.5rem;
}


/* --- ESTILOS DEL CARRUSEL (Ajustados para la tarjeta) --- */
/* --- ESTILOS DEL CARRUSEL (MÁS ROBUSTOS) --- */
.carousel {
    position: relative;
    width: 100%; /* Ocupa el 100% del ancho de la tarjeta */
    aspect-ratio: 16 / 9; /* IMPORTANTE: Mantiene una proporción de video (16:9) */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden; /* Oculta cualquier cosa que se salga */
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    /* CRÍTICO: Esta es la propiedad clave. Ajusta el contenido para que quepa sin deformarse ni cortarse. */
    object-fit: contain;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.carousel-button.prev { left: 10px; }
.carousel-button.next { right: 10px; }
.carousel-button:hover { background-color: rgba(0, 0, 0, 0.8); }


/* --- ESTILOS DEL BOTÓN DE DESCARGA (SIN CAMBIOS) --- */
/* Pega aquí el CSS del .download-button, .download-button:hover, etc. que ya tenías */
.download-button:not(.clicked):hover {
    background-image: linear-gradient(45deg, #007bff, #0056b3);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    transform: translateY(-3px);
}
.download-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #007bff;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.download-button .button-icon {
    display: flex;
    align-items: center;
    transition: transform 0.4s ease-in-out;
}
.download-button .button-text {
    transition: all 0.3s ease-in-out;
}
.download-button:hover .button-icon {
    transform: scale(1.1);
}
.download-button.clicked {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    background-color: #28a745;
    gap: 0;
}
.download-button.clicked .button-text,
.download-button.clicked .button-icon {
    opacity: 0;
    width: 0;
}
.download-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 12px;
    height: 24px;
    border: solid #fff;
    border-width: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out 0.3s;
}
.download-button.clicked::after {
    opacity: 1;
}