/*
 * SENSEI LÚDICO - HOJA DE ESTILO PRINCIPAL (v1.1)
 * Versión: 1.0
 * Descripción: Estilos para la landing page, páginas legales y formularios.
 * Incluye diseño responsivo, animaciones y clases de accesibilidad.
 */

/* ---------------------------------- */
/* 1. Variables y Estilos Globales
/* ---------------------------------- */
:root {
    --primary-color: #F26B21;
    --secondary-color: #1E75B7;
    --text-color: #333;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #ddd;
    --success-bg: #d4edda;
    --success-text: #155724;
    --error-bg: #f8d7da;
    --error-text: #721c24;

    --font-family: 'Poppins', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajuste para el header fijo */
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--secondary-color);
    line-height: 1.3;
    font-weight: 700;
}

.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* ---------------------------------- */
/* 2. Componentes (Botones, Formularios)
/* ---------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    background-color: #5a52e0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.5);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2c2a3e;
    transform: translateY(-3px);
}

.form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none; /* Se muestra con JS */
    text-align: center;
}

.form-message.success { background-color: var(--success-bg); color: var(--success-text); }
.form-message.error { background-color: var(--error-bg); color: var(--error-text); }


/* ---------------------------------- */
/* 3. Layout (Header, Footer)
/* ---------------------------------- */
.header {
    background-color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    display: block;
    height: 40px; /* O el tamaño que prefieras */
    width: auto;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--white);
}


/* ---------------------------------- */
/* 4. Secciones de la Página
/* ---------------------------------- */

/* a) Secciones de la Landing (Hero, Features, Plans) */
.hero { padding: 60px 0; text-align: center; }
.hero-container { display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: 3rem; }
.hero-subtitle { font-size: 1.2rem; max-width: 600px; margin: 1rem auto; color: var(--text-light); }
.hero-slogan { margin-top: 1rem; font-size: 1.1rem; }
.cta-buttons { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-subtitle { color: #555; }
/* Estilos para el contenedor de mockups (con placeholders o imágenes reales) */
.hero-image-container { margin-top: 3rem; position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.hero-mockup { max-width: 45%; height: auto; border-radius: 50px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); transition: transform 0.4s ease-out; }
.mockup-primary { transform: translateX(15%) rotate(-5deg); z-index: 1; }
.mockup-secondary { transform: translateX(28%) rotate(5deg); z-index: 2; }
.mockup-tertiary { transform: translateX(25%) rotate(8deg); z-index: 3; }
.hero-image-container:hover .mockup-primary { transform: translateX(5%) rotate(-8deg) scale(1.05); }
.hero-image-container:hover .mockup-secondary { transform: translateX(-5%) rotate(8deg) scale(1.05); }

.features-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.feature-item p { flex-grow: 1; }
.feature-icon { height: 60px; margin-bottom: 1rem; color: var(--primary-color); }
.feature-item h3 { margin-bottom: 0.5rem; }

.feature-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
}
.feature-showcase:last-child { margin-bottom: 0; }
.feature-showcase-image { flex: 1; max-width: 300px; }
.feature-showcase-image img { width: 100%; height: auto; border-radius: 50px; box-shadow: var(--shadow); }
.feature-showcase-content { flex: 1; max-width: 550px; text-align: center; }
.feature-showcase-content h3 { font-size: 2rem; margin-bottom: 1rem; }

.plans-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 3rem; }
.plan-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%; max-width: 380px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #eef;
}
.plan-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }
.plan-card.plan-pro { border: 2px solid var(--primary-color); }
.pro-badge { position: absolute; top: 20px; right: -55px; background: var(--primary-color); color: var(--white); padding: 5px 50px; transform: rotate(45deg); font-size: 0.8rem; font-weight: 600; }
.plan-card h3 { font-size: 1.5rem; }
.plan-price { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin: 1rem 0; }
.plan-card ul { margin: 1.5rem 0; text-align: left; display: inline-block; }
.plan-card ul li { margin-bottom: 0.75rem; color: #555; }


/* b) Páginas de Contenido (Legal, Contacto, Error) - ¡NUEVOS ESTILOS! */
.page-wrapper {
    background-color: var(--bg-light); /* Fondo gris claro para que la tarjeta destaque */
    padding: 60px 0;
}

.content-card {
    background-color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #eef;
}

.content-card h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.content-card p, .content-card ul {
    margin-bottom: 1.5rem;
}

.last-updated {
    display: block;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 3rem;
}

/* Estilos específicos para páginas legales */
.legal-page h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}

.legal-page ul {
    padding-left: 25px;
    list-style: disc;
}

.legal-page a {
    font-weight: 600;
    text-decoration: underline;
}

/* Estilos específicos para la página de contacto */
.contact-container {
    text-align: center;
}

.contact-container p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container .form {
    text-align: left; /* Para que los labels e inputs dentro del form no se centren */
}

/* Estilos específicos para la sección de Testers */
.tester-container {
    text-align: center;
}

.tester-container .form {
    text-align: left; /* Mantiene los labels e inputs del formulario alineados a la izquierda */
}

/* Estilos para la lista de beneficios/incentivos */
.incentive-list {
    list-style: none;
    padding: 0;
    max-width: 550px;
    margin: 2rem auto 2.5rem auto;
    text-align: left;
    color: var(--text-color);
}

.incentive-list li {
    position: relative;
    padding-left: 35px; /* Espacio para el icono */
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.incentive-list li::before {
    content: '⭐'; /* O puedes usar '✔' o un SVG como background-image */
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Página de Error */
.error-page { text-align: center; padding: 80px 20px; }


/* ---------------------------------- */
/* 5. Clases de Utilidad y Animaciones
/* ---------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fade-in, .slide-in { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; transition-delay: var(--delay, 0s); }
.slide-in { transform: translateY(30px); }
.visible.fade-in, .visible.slide-in { opacity: 1; transform: translateY(0); }


/* ---------------------------------- */
/* 6. Diseño Responsivo (Media Queries)
/* ---------------------------------- */
@media (min-width: 992px) {
    .hero { text-align: left; padding: 60px 0; }
    .hero-container { flex-direction: row; justify-content: space-between; gap: 2rem; align-items: center; }
    .hero-content { flex: 1; max-width: 50%; }
    .hero-image-container { flex: 1; margin-top: 0; }
    .hero-title { font-size: 3.8rem; }

    .mockup-primary { transform: translateY(-2%) scale(1.05); z-index: 1; }
    .mockup-secondary { transform: translateX(28%) rotate(-8deg); z-index: 2; }
    .mockup-tertiary { transform: translateX(-10%) rotate(8deg); z-index: 3; }
    .hero-image-container:hover .mockup-primary { transform: translateY(-4%) scale(1.1); }
    .hero-image-container:hover .mockup-secondary { transform: translateX(-40%) rotate(-12deg) scale(1.02); }
    .hero-image-container:hover .mockup-tertiary { transform: translateX(40%) rotate(12deg) scale(1.02); }

    .features-grid { grid-template-columns: repeat(4, 1fr); }

    .feature-showcase { flex-direction: row; gap: 4rem; }
    .feature-showcase.reverse { flex-direction: row-reverse; }
    .feature-showcase-content { text-align: left; }
}

@media (min-width: 769px) and (max-width: 991px) {
    /* Estilos para tablets */
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .nav { display: none; /* Simplificación para el ejemplo, idealmente aquí iría un menú hamburguesa */ }
    .mockup-tertiary { display: none; } /* Ocultar la tercera imagen en pantallas pequeñas para no sobrecargar */
    .mockup-primary { transform: translateX(10%) rotate(-5deg); }
    .mockup-secondary { transform: translateX(-10%) rotate(5deg); }
    .content-card { padding: 2rem 1.5rem; }
    .content-card h1 { font-size: 2.2rem; }
}