/* ========================================================= */
/* 1. PALETA DE COLORES REFINADA (Variables CSS) */
/* ========================================================= */
:root {
    /* Rojos sofisticados con matices */
    --rojo-primario: #8A0303;      /* Rojo profundo (para acentos y bordes) */
    --rojo-secundario: #C1121F;    /* Rojo brillante (para links y títulos principales) */
    --rojo-intenso: #a01729;
    --rojo-claro: #d63384;
    --rojo-coral: #c94a65;

    /* Neutros */
    --crema-puro: #fefdfb;         /* Texto claro */
    --blanco-puro: #ffffff;
    --gris-neutro: #6c757d;        /* Texto sutil */
    --negro-suave: #000000;

    /* Fondos y texto definidos */
    --fondo-cuerpo: #121212;       /* Fondo muy oscuro para el body */
    --fondo-contenedor: #1c1c1c;   /* Fondo ligeramente más claro para el contenido */
    --texto-principal: var(--crema-puro);
    --texto-secundario: #dddddd;
}

/* ========================================================= */
/* 2. ESTILOS GENERALES Y CUERPO */
/* ========================================================= */
body {
    background-color: var(--fondo-cuerpo);
    color: var(--texto-principal);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7; 
    margin: 0;
    padding: 3rem 1rem;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#terminos-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--fondo-contenedor);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                0 0 0 3px var(--rojo-primario);
    border: 1px solid var(--rojo-primario);
}

/* ========================================================= */
/* 3. IMAGEN DEL LOGO */
/* ========================================================= */
.logo-header {
    text-align: center;
    margin-bottom: 0.5rem; /* Espacio antes del título */
}

.brand-logo {
    /* Ajuste de tamaño para imágenes 1080x180 */
    max-height: 180px; /* Máximo 180px de alto (como indicaste) */
    width: auto;      /* Mantiene la proporción */
    display: block;
    margin: 0 auto;
    /* Efecto sutil para que se integre al diseño oscuro */
    filter: drop-shadow(0 0 8px rgba(138, 3, 3, 0.7)); 
}


/* ========================================================= */
/* 4. TÍTULOS Y ENCABEZADOS */
/* ========================================================= */
h1 {
    color: var(--rojo-secundario);
    font-size: 2.8rem; /* Reducido ligeramente para caber en una línea */
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    /* Ajuste de espaciado para forzar a una línea */
    letter-spacing: 1.5px; 
    white-space: nowrap; /* Fuerza a permanecer en una sola línea */
    overflow: hidden;    /* Oculta si se desborda (aunque el responsive lo ajusta) */
    font-weight: 700;
    border-bottom: 2px solid var(--rojo-primario);
    padding-bottom: 0.75rem;
}

h2 {
    color: var(--rojo-secundario);
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-left: 5px solid var(--rojo-primario);
    padding-left: 15px;
}

/* ========================================================= */
/* 5. TEXTO, LISTAS Y ENLACES (Mismos que antes, con ligeros ajustes) */
/* ========================================================= */
p, li {
    font-size: 1.15rem;
    color: var(--texto-secundario);
    margin-bottom: 1.5rem;
}

strong {
    color: var(--rojo-secundario);
    font-weight: 700;
}

ul {
    padding-left: 1.5rem;
    list-style-type: none;
}
ul li::before {
    content: '•';
    color: var(--rojo-secundario);
    font-weight: 900;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

a {
    color: var(--rojo-claro);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--rojo-secundario);
    text-decoration: underline;
}

.contacto {
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ========================================================= */
/* 6. RESPONSIVE (Ajustes clave para el H1 y la imagen) */
/* ========================================================= */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 0.8rem;
    }

    #terminos-container {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem; /* Se reduce el tamaño en móviles */
        white-space: normal; /* Permite que el texto fluya a la siguiente línea si es necesario */
        text-align: center;
    }

    .brand-logo {
        max-height: 120px; /* Reducir el logo en pantallas pequeñas */
    }

    h2 {
        font-size: 1.4rem;
    }

    p, li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }
}