/* Estilos base da landing "Que non sobren as sobras" */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Previene scroll horizontal */
    overflow-y: auto;
    /* Permite scroll vertical normal */
    width: 100%;
}

body {
    font-family: 'Xunta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--azul-xunta);
    color: var(--text-default);
    letter-spacing: -0.1em;
    overflow-x: hidden;
    /* Previene scroll horizontal */
    overflow-y: visible;
    /* Permite scroll vertical normal */
    width: 100%;
    margin-block: 1lh;
}

/* Sección intro baixo o hero */
.intro {


    padding: 32px 0 32px;
    text-align: center;
}

.intro-text {
    max-width: 80%;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

/* Sección Primeiros */
.section-azul {
    background-color: var(--azul-xunta);
    color: var(--text-default);
    margin-bottom: 40px;
}

.section-primeiros,
.section-peixes,
.section-cordeiro,
.section-polo {
    margin-bottom: 40px;
    scroll-margin-top: 150px;
    /* Compensa la altura del header fixed en mobile */
    width: 100%;
}

.section-title-wrapper {
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    padding: 15px 0;
    text-align: center;
    margin-bottom: 42px;
}

.section-title {
    font-size: 24px;
    /* mobile */
    text-transform: uppercase;
    letter-spacing: -0.02em;
    /* Letras más juntas */
    font-weight: 600;
}

/* Cores dos títulos de sección segundo o tipo de receita */
.section-primeiros .section-title {
    color: var(--background-libreta);
}

.section-peixes .section-title {
    color: var(--azul-claro);
}

.section-cordeiro .section-title {
    color: var(--naranja-claro);
}

.section-polo .section-title {
    color: var(--amarillo-claro);
}

a,
a:visited {
    text-decoration: none;
}

/* Utilidades de cor xerais */
.blanco {
    color: var(--background-libreta);
}

.azul-claro {
    color: var(--azul-claro);
}

.naranja-claro {
    color: var(--naranja-claro);
}

.amarillo-claro {
    color: var(--amarillo-claro);
}

/* Layout básico */
main {
    overflow-x: hidden;
    /* Previene scroll horizontal */
    width: 100%;
    overflow-y: visible;
    /* Permite scroll vertical normal */
}

.contenedor {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 30px;
    /* mobile */
    padding-right: 30px;
    /* mobile */
    box-sizing: border-box;
    /* Asegura que el padding no cause overflow */
}

/* Utilidade de accesibilidade */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link - visible solo cuando recibe foco */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--azul-xunta);
    color: var(--text-default);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border: 2px solid var(--text-default);
}

.skip-link:focus {
    top: 0;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 992px) {
    .contenedor {
        max-width: calc(var(--contenedor-width) + 100px + 100px);
        padding-left: 100px;
        padding-right: 100px;
        position: relative;
        box-sizing: border-box;
        /* Asegura que el padding no cause overflow */
    }

    .intro-text {
        font-size: 35px;
    }

    .section-title-wrapper {
        border-top-width: 2px;
        border-bottom-width: 2px;
        padding: 32px 0;
    }

    .section-title {
        font-size: 60px;
        line-height: 60px;
    }

    .section-primeiros,
    .section-peixes,
    .section-cordeiro,
    .section-polo {
        scroll-margin-top: 190px;
        /* Compensa la altura del header fixed en desktop */
    }
}