/* Variables CSS para gestión de colores */
:root {
    --color-primary: #007BFF;       
    --color-secondary: #0056b3;     
    --color-background: #f8f9fa;    
    --color-text: #343a40;          
    --color-light-text: #6c757d;    
}

/* Estilos Globales y Reset Básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* --- ENCABEZADO SIMPLIFICADO --- */
.main-header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center; /* Centramos el logo/título */
    align-items: center;
    position: sticky; 
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center; /* Aseguramos que el texto esté centrado */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Estilos de navegación eliminados */

/* --- CONTENIDO PRINCIPAL --- */
.content-container {
    max-width: 900px; 
    margin: 20px auto;
    padding: 0 15px;
}

.text-section {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* --- ESTILO DEL CONTENEDOR DE DESCARGA (Botones en línea) --- */
.download-link-wrapper {
    display: flex;
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin: 2rem 0;
}

.download-button {
    flex-grow: 1;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
    padding: 10px 15px; 
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap; 
}

.download-button:hover {
    background-color: var(--color-secondary);
}

/* --- PIE DE PÁGINA --- */
.main-footer {
    background-color: var(--color-text);
    color: var(--color-light-text);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 30px;
}

.main-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* ------------------------------------- */
/* --- ESTILOS DEL COOKIE BANNER (CORREGIDO: SE APLICAN EN TODAS LAS RESOLUCIONES) --- */
/* ------------------------------------- */

.contenedor-enlace {
    /* 1. Centra el texto y elementos en línea */
    text-align: center;
    /* (Opcional) Asegura que ocupe todo el ancho */
    width: 100%; 
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333; /* Fondo oscuro */
    color: white; /* Texto blanco */
    text-align: center;
    padding: 15px 20px;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

#cookie-banner p {
    margin: 0 20px 0 0;
    display: inline;
}

#cookie-banner a {
    color: #4CAF50; /* Color del enlace */
    text-decoration: none;
    font-weight: bold;
}

#cookie-banner button {
    background-color: #4CAF50; /* Botón verde */
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 20px;
    font-size: 14px;
}

#cookie-banner button:hover {
    background-color: #45a049;
}


/* --- MEDIA QUERY para Adaptación a Teléfonos (Responsive) --- */
@media (max-width: 600px) {
    .main-header {
        padding: 1rem 1rem;
    }

    .logo {
        /* Aseguramos que el título se ajuste en pantallas pequeñas */
        font-size: 1.2rem;
        word-break: break-word; 
    }
    
    .content-container {
        margin: 10px auto;
    }

    .text-section {
        padding: 15px;
    }
    
    /* En móviles, apilamos los botones de descarga */
    .download-link-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-button {
        width: 100%;
        white-space: normal;
    }
}