/* =========================================================
   WELEDA · BASES DE PARTICIPACIÓN
   Cuadro inspirado directamente en el formulario de registro
   ========================================================= */

:root {
    --bases-frame-left: #d9d9d9;
    --bases-frame-right: #777575;
    --bases-frame-width: 285px;
    --bases-frame-stroke: 4px;
}

html {
    background: #000;
}

body {
    margin: 0;
    min-width: 320px;
    background: #000;
    font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
}


/* =========================================================
   PÁGINA
   - fondo conservado
   - scroll de página
   - footer después del contenido
   ========================================================= */

.bases-landing {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
    isolation: isolate;
}


/* MISMO FONDO DE LA FASE FORMULARIO DE REGISTRO */

.bases-landing::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;

    background-image: url("../../img/landing/bg_img.png");
    background-repeat: no-repeat;
    background-position: center 45%;
    background-size: cover;

    pointer-events: none;
}


/* Overlay suave para mantener el fondo visible */

.bases-landing::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: 100svh;

    background: linear-gradient(
        to bottom,
        rgba(20, 0, 0, 0.26) 0%,
        rgba(20, 0, 0, 0.20) 55%,
        rgba(20, 0, 0, 0.15) 100%
    );

    pointer-events: none;
}

.bases-landing > * {
    position: relative;
    z-index: 2;
}


/* =========================================================
   MÁSCARA + HEADER COMO REGISTRO
   ========================================================= */

.bases-top-mask {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 100 !important;
    width: 100%;
    height: 20px;
    background: #47080c;
    pointer-events: none;
}

.bases-header {
    position: sticky;
    top: 20px;
    left: auto;
    z-index: 110;

    transform: none;

    display: flex;
    width: min(1440px, calc(100% - 72px));
    height: 80px;
    margin: 20px auto 0;
    padding: 0 20px;

    justify-content: center;
    align-items: center;

    background: #fff;
}

.bases-header__logo {
    display: block;
    width: 240px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
}


/* =========================================================
   ÁREA DE LAS BASES
   ========================================================= */

.bases-content {
    width: 100%;
    padding: 36px 24px 90px;
}


/* =========================================================
   CUADRO OSCURO
   ---------------------------------------------------------
   El formulario de registro mide aprox. 640px.
   Este queda un poco más ancho: 900px.
   ========================================================= */

.bases-card {
    position: relative;

    width: min(960px, 100%);
    margin: 0 auto;

    border: 0;
    border-radius: 0;

    background: rgba(0, 0, 0, 0.50);

    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);

    box-shadow: none;
}


/* Marco izquierdo [ */

.bases-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;

    width: var(--bases-frame-width);
    box-sizing: border-box;

    border-top: var(--bases-frame-stroke) solid var(--bases-frame-left);
    border-bottom: var(--bases-frame-stroke) solid var(--bases-frame-left);
    border-left: var(--bases-frame-stroke) solid var(--bases-frame-left);

    pointer-events: none;
}


/* Marco derecho ] */

.bases-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;

    width: var(--bases-frame-width);
    box-sizing: border-box;

    border-top: var(--bases-frame-stroke) solid var(--bases-frame-right);
    border-right: var(--bases-frame-stroke) solid var(--bases-frame-right);
    border-bottom: var(--bases-frame-stroke) solid var(--bases-frame-right);

    pointer-events: none;
}


/* =========================================================
   CONTENIDO INTERIOR
   ========================================================= */

.bases-card__body {
    position: relative;
    z-index: 3;

    width: 100%;
    padding: 58px 82px 64px;

    color: #fff;
}


/* =========================================================
   TITULAR
   ========================================================= */

.bases-title {
    width: 100%;
    max-width: 720px;

    margin: 0 auto 20px;

    color: #fff;

    text-align: center;

    text-shadow: 0 0 20px rgba(0, 0, 0, 0.60);

    font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-style: normal;
    font-weight: 700;
    line-height: 115%;
    letter-spacing: -0.5px;
}


/* =========================================================
   TEXTO
   ========================================================= */

.bases-card__body > p,
.bases-card__body li {
    color: rgba(255, 255, 255, 0.97);

    text-shadow: 0 0 12px rgba(0, 0, 0, 0.65);

    font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.bases-card__body > p {
    margin: 0 0 16px;
}


/* Nombre de la campaña */

.bases-card__body > p:first-of-type {
    margin-bottom: 42px;

    text-align: center;

    font-size: 18px;
    line-height: 140%;
}


/* Encabezados 1, 2, 3... */

.bases-card__body > p:has(> strong:only-child) {
    margin: 34px 0 12px;

    color: #fff;

    text-shadow: 0 0 15px rgba(0, 0, 0, 0.68);

    font-size: 20px;
    font-weight: 700;
    line-height: 125%;
}

.bases-card__body > p:first-of-type:has(> strong:only-child) {
    margin-top: 0;
}

.bases-card__body ul {
    margin: 4px 0 22px;
    padding-left: 24px;
}

.bases-card__body li {
    margin-bottom: 9px;
}

.bases-card__body li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ENLACES
   ========================================================= */

.bases-card__body a {
    color: #fff;
    font-weight: 600;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    overflow-wrap: anywhere;
}

.bases-card__body a:hover {
    opacity: 0.78;
}


/* =========================================================
   FOOTER
   ---------------------------------------------------------
   Flujo normal como en registro.
   No sticky, no fixed.
   ========================================================= */

.footer {
    position: relative;
    z-index: 120;

    display: flex;

    width: 100%;
    min-height: 80px;

    padding: 0 56px;

    justify-content: space-between;
    align-items: center;

    border-top: 1px solid #fff;

    background: #000;

    font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
}

.footer__copyright {
    margin: 0;

    color: #e3e3e3;

    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
}

.footer__links a {
    color: #fff;

    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;

    white-space: nowrap;

    text-decoration: none;
}

.footer__links a:hover {
    opacity: 0.75;
}


/* =========================================================
   DESKTOP BAJO
   ========================================================= */

@media (min-width: 901px) and (max-height: 820px) {

    .bases-top-mask {
        height: 15px;
    }

    .bases-header {
        top: 15px;
        height: 70px;
        margin-top: 15px;
    }

    .bases-header__logo {
        width: 215px;
        max-height: 50px;
    }

    .bases-content {
        padding-top: 30px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --bases-frame-width: 220px;
        --bases-frame-stroke: 3px;
    }

    .bases-top-mask {
        height: 16px;
    }

    .bases-header {
        top: 16px;
        width: calc(100% - 32px);
        height: 64px;
        margin-top: 16px;
        padding: 0 16px;
    }

    .bases-header__logo {
        width: min(210px, 65vw);
        max-height: 48px;
    }

    .bases-content {
        padding: 34px 20px 70px;
    }

    .bases-card {
        width: min(820px, 100%);
    }

    .bases-card__body {
        padding: 50px 62px 58px;
    }

    .bases-title {
        font-size: 32px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    :root {
        --bases-frame-width: 120px;
        --bases-frame-stroke: 3px;
    }

    .bases-landing::after {
        background-image: url("../../img/landing/bg_img_mobile.png");
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }

    .bases-content {
        padding: 30px 16px 55px;
    }

    .bases-card {
        width: 100%;
    }

    .bases-card__body {
        padding: 40px 28px 44px;
    }

    .bases-title {
        margin-bottom: 18px;

        font-size: 28px;
        line-height: 115%;
    }

    .bases-card__body > p,
    .bases-card__body li {
        font-size: 16px;
        line-height: 150%;
    }

    .bases-card__body > p:first-of-type {
        margin-bottom: 36px;
        font-size: 17px;
    }

    .bases-card__body > p:has(> strong:only-child) {
        margin-top: 28px;
        font-size: 19px;
    }

    .bases-card__body ul {
        padding-left: 20px;
    }

    .footer {
        min-height: 140px;

        padding: 22px 24px 20px;

        flex-direction: column;

        justify-content: center;
        align-items: stretch;

        gap: 20px;

        text-align: left;
    }

    .footer__copyright {
        width: 100%;
        margin: 0;

        color: #e3e3e3;

        text-align: left;

        font-size: 16px;
        line-height: 140%;
    }

    .footer__links {
        width: 100%;

        justify-content: space-between;

        gap: 24px;
    }

    .footer__links a {
        font-size: 16px;
    }
}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    :root {
        --bases-frame-width: 85px;
        --bases-frame-stroke: 2px;
    }

    .bases-top-mask {
        height: 12px;
    }

    .bases-header {
        top: 12px;

        width: calc(100% - 24px);
        height: 58px;

        margin-top: 12px;
    }

    .bases-header__logo {
        width: 180px;
    }

    .bases-content {
        padding: 24px 12px 45px;
    }

    .bases-card__body {
        padding: 34px 20px 38px;
    }

    .bases-title {
        font-size: 26px;
    }

    .bases-card__body > p,
    .bases-card__body li {
        font-size: 15px;
        line-height: 150%;
    }

    .bases-card__body > p:first-of-type {
        margin-bottom: 32px;
        font-size: 16px;
    }

    .bases-card__body > p:has(> strong:only-child) {
        margin-top: 26px;
        font-size: 18px;
    }

    .footer {
        min-height: 135px;
        padding: 20px 24px 18px;
        gap: 18px;
    }

    .footer__copyright {
        font-size: 16px;
        text-align: left;
    }

    .footer__links {
        width: 100%;

        justify-content: space-between;

        gap: 18px;
    }

    .footer__links a {
        font-size: 16px;
    }
}


/* =========================================================
   FIX FOOTER MOBILE · 3 ENLACES LEGALES
   ========================================================= */

@media (max-width: 768px) {

    .footer {
        min-height: auto;
        padding: 22px 24px 20px;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 20px;
        text-align: left;
    }

    .footer__copyright {
        width: 100%;
        margin: 0;
        color: #e3e3e3;
        text-align: left;
        font-size: 16px;
        line-height: 140%;
    }

    .footer__links {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        width: 100%;
        gap: 14px 20px;
        align-items: start;
        justify-content: stretch;
    }

    .footer__links a {
        min-width: 0;
        font-size: 16px;
        line-height: 140%;
        white-space: normal;
    }

    .footer__links a:nth-child(1) {
        text-align: left;
    }

    .footer__links a:nth-child(2) {
        text-align: right;
        white-space: nowrap;
    }

    .footer__links a:nth-child(3) {
        grid-column: 1 / -1;
        text-align: left;
    }

}

@media (max-width: 480px) {

    .footer {
        min-height: auto;
        padding: 20px 24px 18px;
        gap: 18px;
    }

    .footer__links {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 14px 14px;
    }

    .footer__links a {
        font-size: 15px;
    }

    .footer__links a:nth-child(2) {
        white-space: nowrap;
    }

}
