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

/* Paleta de Colores Suaves */
:root {
    --bg-color: #f8f9fa;
    --text-color: #495057;
    --primary-color: #5d9cec;
    --card-bg: #ffffff;
    --footer-bg: #343a40;
}

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

html {
    height: 100%;
}

body {
    font-family: 'Comfortaa', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

main {
    flex-grow: 1;
}

/* ---- NUEVO CÓDIGO PARA ARREGLAR EL INDEX ---- */
.main-home {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
}
/* ---- FIN DEL ARREGLO ---- */


/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo a {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- SECCIÓN PRINCIPAL (HERO) --- */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to right, #e3f2fd, #e8eaf6);
}

.hero-content {
    max-width: 800px;
    margin: auto; /* Asegura el centrado horizontal */
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #4a8bd9;
    transform: translateY(-3px);
}

/* --- PIE DE PÁGINA --- */
footer {
    background-color: var(--footer-bg);
    color: #f8f9fa;
    text-align: center;
    padding: 2.5rem 5%;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* --- ESTILOS PARA PÁGINAS DE CONTENIDO LEGAL --- */
.content-page {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 1rem;
}

.content-page h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

.content-page ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* ===============================================
--- NUEVOS ESTILOS PARA LA PÁGINA DE CAPTCHA --- 
===============================================
*/

.captcha-container {
    max-width: 500px;
    margin: 4rem auto; /* Centrado vertical y horizontal */
    padding: 2.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.captcha-container h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.captcha-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Espacio entre el check y el texto */
    padding: 1.25rem;
    background-color: var(--bg-color); /* Fondo gris claro */
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 2rem;
    cursor: pointer;
}
.captcha-box input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.captcha-box label {
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

/* Estilo para el botón deshabilitado */
.cta-button.disabled {
    background-color: #bdc3c7; /* Color gris */
    color: #6c757d;
    cursor: not-allowed; /* Cambia el cursor */
    pointer-events: none; /* Esto deshabilita el clic en el enlace <a> */
}

.cta-button.disabled:hover {
    background-color: #bdc3c7; /* Mantiene el color en hover */
    transform: none; /* Sin animación en hover */
}
