/* ESTILOS COMUNES A TODAS LAS PÁGINAS
   Se carga después del CSS de cada página, así que lo que hay aquí manda. */


/* TIPOGRAFÍA
   - Abril Fatface: solo títulos
   - Nunito: todo el texto
   - Press Start: la marquesina de la portada (no se toca) */

body {
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
}

p {
    text-wrap: pretty;
}

button,
input {
    font-family: inherit;
}


/* ICONOS SVG (assets/icons/iconos.svg)
   :where() deja esta regla sin peso, así cualquier tamaño concreto de una página la sustituye */

:where(.icono) {
    display: inline-block;
    height: 1em;
    width: 1em;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Iconos grandes con brillo neón */
.icono-neon {
    color: #ff7fd0;
    filter: drop-shadow(0 0 6px rgba(255, 111, 200, 0.6));
}

/* Tamaños según dónde va el icono */
.tittle-icono {
    height: 32px;
    width: 32px;
    color: #ff9fe9;
}

.titulo-con-icono {
    display: flex;
    align-items: center;
    gap: 10px;
}

.titulo-con-icono .tittle-icono {
    height: 1.1em;
    width: 1.1em;
}

.norma-icono,
.funcion-icono {
    height: 40px;
    width: 40px;
}

.guia-icono {
    height: 34px;
    width: 34px;
}

.paso-icono {
    height: 80px;
    width: 80px;
}

.valor-icono {
    height: 48px;
    width: 48px;
}

.rasgo-icono {
    height: 22px;
    width: 22px;
    color: #ff9fe9;
}


/* CABECERA DE CADA PÁGINA (más baja y con el texto a la izquierda) */

header {
    height: clamp(320px, 42vh, 400px);
}

#left-header {
    width: 40%;
    padding: 0 30px;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    text-align: left;
}

#left-header h1 {
    text-wrap: balance;
    font-family: "Abril Fatface", serif;
    font-size: clamp(34px, 3.6vw, 52px);
}

#left-header p {
    margin-left: 0;
    max-width: 480px;
    text-align: left;
    font-size: 16px;
}

#right-header {
    width: 60%;
    height: 100%;
}

#right-header img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


/* ACCESIBILIDAD: se ve dónde estás al moverte con el teclado */

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid #ff9fe9;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Salta directamente al contenido (para teclado y lectores de pantalla) */
.saltar-contenido {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: 8px;
    background: #ff6fc8;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.saltar-contenido:focus {
    top: 10px;
}


/* Imágenes que todavía no tienen archivo: se oculta el icono de imagen rota */
img[src=""],
img:not([src]) {
    visibility: hidden;
}


/* PIE DE PÁGINA */

.site-footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding: 10px 0 0;
}

.footer-marca {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.footer-logo img {
    height: 36px;
    width: auto;
}

.footer-logo span {
    font-family: "Abril Fatface", serif;
    font-size: 24px;
}

.footer-frase {
    color: #ff9fe9;
    font-size: 14px;
}

.footer-redes {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.footer-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 0.5px solid rgba(255, 209, 236, 0.4);
    color: #ffd1ec;
    transition: background 0.2s, color 0.2s;
}

.footer-redes a:hover {
    background: #381321;
    color: white;
}

.footer-redes .icono {
    height: 19px;
    width: 19px;
}

.footer-columna h2 {
    margin-bottom: 12px;
    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffa8db;
}

.footer-columna ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-columna a {
    color: #e8d5e2;
    font-size: 15px;
    text-decoration: none;
}

.footer-columna a:hover {
    color: white;
    text-decoration: underline;
}

.footer-legal {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 0.5px solid rgba(255, 209, 236, 0.15);
    font-size: 13px;
    opacity: 0.75;
}

.footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover {
    color: #ff9fe9;
}


/* MÓVIL */

@media (max-width: 1100px) {
    .main {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 800px) {
    .main {
        padding: 25px 18px 35px;
    }

    header {
        height: auto;
        flex-direction: column;
    }

    #left-header {
        order: 2;
        width: 100%;
        height: auto;
        padding: 25px 5px;
    }

    #right-header {
        order: 1;
        width: 100%;
        height: 200px;
    }

    #right-header img {
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    }

    /* Sin imagen todavía: no ocupa sitio */
    #right-header:has(img[src=""]) {
        display: none;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-marca {
        grid-column: 1 / -1;
    }

    .footer-legal {
        flex-direction: column;
    }
}
