@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #10B981;
    --dark: #0F172A;
    --light: #F8FAFC;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--light); color: var(--dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

header {
    background-color: var(--white); padding: 1.5rem 5%; display: flex;
    justify-content: space-between; align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 100;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--primary); }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav a { font-weight: 600; color: var(--text-muted); transition: color 0.3s; }
nav a:hover { color: var(--primary); }
.btn-primary { background-color: var(--primary); color: var(--white); padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; transition: background 0.3s; display: inline-block; }
.btn-primary:hover { background-color: var(--primary-hover); color: var(--white); }

.hero { text-align: center; padding: 5rem 5%; background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%); }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--dark); max-width: 800px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem auto; }

/* CARRUSEL Y BOTONES */
.carousel-section { padding: 4rem 5%; text-align: center; overflow: hidden; }

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-btn {
    background-color: var(--white);
    border: 1px solid #E2E8F0;
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover { background-color: var(--primary); color: var(--white); }
.prev-btn { left: -22px; }
.next-btn { right: -22px; }

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0; 
    width: 100%;
    /* Ocultamos la barra de scroll porque ahora tenemos botones */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 100%; /* Ocupa 100% del contenedor visible para centrar perfecto */
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background-color: var(--white);
    border-radius: 12px;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ESTO ARREGLA QUE SE VEA CORTADO */
    display: block;
}

/* Dots (Puntitos) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #CBD5E1;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

.features { padding: 5rem 5%; background-color: var(--white); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--dark); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.feature-card { background: var(--light); padding: 2rem; border-radius: 12px; border: 1px solid #E2E8F0; transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--dark); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

.video-section { padding: 5rem 5%; background-color: var(--dark); color: var(--white); text-align: center; }
.video-section .section-title { color: var(--white); }
.video-container { max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; background-color: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.video-container iframe { width: 100%; height: 100%; border: none; }

.faq-section { padding: 5rem 5%; background-color: var(--light); }
.faq-container { max-width: 800px; margin: 0 auto; }
details { background-color: var(--white); margin-bottom: 1rem; border-radius: 8px; border: 1px solid #E2E8F0; overflow: hidden; }
summary { padding: 1.5rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
details[open] summary::after { content: '-'; }
details p { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-muted); }

.legal-content { max-width: 800px; margin: 4rem auto; padding: 2rem 5%; background: var(--white); border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.legal-content .date { color: var(--text-muted); margin-bottom: 2rem; font-style: italic; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--primary); }
.legal-content p, .legal-content ul { margin-bottom: 1rem; color: #334155; }
.legal-content ul { padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }

footer { background-color: var(--dark); color: var(--white); text-align: center; padding: 3rem 5%; }
footer p { color: #94A3B8; }
.footer-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; }
.footer-links a { color: #94A3B8; }
.footer-links a:hover { color: var(--white); }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav ul { display: none; }
    /* Ocultamos flechas en móvil, ya que el usuario puede hacer swipe */
    .carousel-btn { display: none; }
}