:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #0077b6;
    --max-width: 800px; /* Corregido: de 800_px a 800px */
    --font-main: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
}

/* --- Estilos del Carrusel --- */
.carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.carousel-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Controles */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 15px; }
.next { right: 15px; }

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
}

/* Botón Descargar */
.download-anchor {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 15;
    transition: background 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.download-anchor:hover {
    background: var(--accent-color);
}

.download-anchor svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* --- Sección Inferior --- */
.cta-section {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-ruta {
    font-family: var(--font-mono);
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0px #005f91;
    text-decoration: none;
    display: inline-block;
}

.btn-ruta:hover {
    background-color: #005f91;
    transform: translateY(2px);
    box-shadow: 0 2px 0px #004a70;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    main {
        padding: 0 0 60px 0;
    }

    .carousel-wrapper {
        border-radius: 0;
        margin-bottom: 25px;
    }

    .cta-section {
        padding: 0 20px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}