/*
===================================================
=== ESTILOS GENERALES / XDATA SECURITY LINKTREE ===
===================================================
*/

:root {
    --color-fondo-pagina: #DEE2E4;
    --color-header-negro: #010602;
    --color-link-fondo: #FFFFFF;
    --color-link-fondo-hover: #D8D8D8;
    --color-link-borde: #9EACB1;
    --color-texto-principal: #111111;
    --color-texto-gris: #3D484D;
    --color-sombra-pixel: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
    height: -webkit-fill-available;
    overflow: hidden;
}

body {
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden; /* CERO SCROLL en cualquier dispositivo */
    position: fixed;  /* Bloquea rebote elástico / scroll en iOS y Android */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    touch-action: manipulation;
    background-color: var(--color-header-negro);
    color: var(--color-texto-gris);
    font-family: 'VT323', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
}

/* Envoltorio principal (tarjeta móvil responsive fija a 100dvh sin scroll) */
.main-wrapper {
    width: 100%;
    max-width: 440px;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background-color: var(--color-fondo-pagina);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===================================================
   1. CABECERA CON DESVANECIDO ORIGINAL (SIN LÍNEA NEGRA)
   =================================================== */
.header-banner-container {
    position: relative;
    width: 100%;
    height: clamp(190px, 35vh, 310px);
    flex-shrink: 0;
    background-color: var(--color-fondo-pagina); /* Fondo claro idéntico para que nunca genere líneas o bordes */
    overflow: hidden;
    line-height: 0;
    user-select: none;
    margin-bottom: -1px; /* Elimina cualquier salto de subpíxel */
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 94%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 94%);
}

/* Degradado difuminado exacto sobre la foto hacia el fondo claro */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(222, 226, 228, 0.45) 55%,
        rgba(222, 226, 228, 0.85) 75%,
        #DEE2E4 88%,
        #DEE2E4 100%
    );
    pointer-events: none;
}

/* Franja de fusión que garantiza 0 líneas o costuras en cualquier pantalla */
.header-banner-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: var(--color-fondo-pagina);
    z-index: 2;
    pointer-events: none;
}

/* ===================================================
   2. TÍTULOS Y SUBTÍTULO EXACTOS
   =================================================== */
.brand-header {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 15px;
    margin-top: -35px; /* Superpone suavemente el título sobre el degradado */
    flex-shrink: 0;
}

.brand-title {
    font-size: clamp(1.85em, 4.2vh, 2.25em);
    font-weight: normal;
    line-height: 1.15;
    color: var(--color-texto-principal);
    margin: 0 auto 6px auto;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.brand-subtitle {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(0.72em, 1.7vh, 0.85em);
    font-weight: 500;
    color: #1a2226;
    line-height: 1.35;
    margin: 0 auto;
    max-width: 370px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ===================================================
   3. SECCIÓN INFERIOR: BOTONES EN LA PARTE DE ABAJO
   =================================================== */
.bottom-section {
    position: relative;
    flex: 1;
    width: 100%;
    background-color: var(--color-fondo-pagina);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Coloca los botones en la parte de abajo, fiel al diseño original */
    align-items: center;
    padding-bottom: clamp(16px, 3.2vh, 28px);
    min-height: 0;
}

.content-container {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

/* ===================================================
   4. LOS 4 BOTONES OFICIALES (DISEÑO ANTERIOR EXACTO)
   =================================================== */
.links-section {
    margin-top: -90%;
    width: 100%;
}

.link-button-wrapper {
    margin-bottom: clamp(9px, 1.4vh, 13px);
}

.link-button-wrapper:last-child {
    margin-bottom: 0;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #000000;
    padding: clamp(11px, 1.5vh, 14px) clamp(16px, 4vw, 20px);
    background-color: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(1.22em, 2.6vh, 1.35em);
    cursor: pointer;

    /* Bordes redondeados del diseño original */
    border-radius: 35px;
    border: 1px solid var(--color-link-borde);

    /* Sombra Pixel Art exacta (4px) */
    box-shadow: 4px 4px 0 0 var(--color-sombra-pixel);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
}

.link-button:hover {
    background-color: var(--color-link-fondo-hover);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 var(--color-sombra-pixel);
}

.link-button:active {
    background-color: var(--color-link-fondo-hover);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--color-sombra-pixel);
}

.link-icon {
    font-size: 1.35em;
    margin-right: 14px;
    color: var(--color-texto-gris);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    flex-shrink: 0;
}

.options-icon {
    font-size: 1.25em;
    color: var(--color-texto-gris);
    flex-shrink: 0;
}

/* ===================================================
   5. AJUSTES FINOS PARA PANTALLAS COMPACTAS (<= 670px)
   =================================================== */
@media (max-height: 670px) {
    .header-banner-container {
        height: 30vh;
        min-height: 150px;
    }

    .brand-header {
        margin-top: -26px;
    }

    .brand-title {
        font-size: 1.7em;
        margin-bottom: 3px;
    }

    .brand-subtitle {
        font-size: 0.68em;
        line-height: 1.25;
    }

    .bottom-section {
        padding-bottom: 12px;
    }

    .link-button {
        padding: 8px 14px;
        font-size: 1.15em;
    }

    .link-button-wrapper {
        margin-bottom: 7px;
    }
}
