/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* ==================================================
   NOCHES VIVAS — LANDING /ENTRAR/
   ================================================== */

body.page-id-11 {
    min-height: 100vh;
    background: #0f0f15 !important;
}

/* Ocultar elementos del portal */
body.page-id-11 .site-header,
body.page-id-11 .main-navigation,
body.page-id-11 .site-footer,
body.page-id-11 .entry-header,
body.page-id-11 #right-sidebar,
body.page-id-11 .widget-area {
    display: none !important;
}

/* Eliminar estructura de sidebar y contenedores blancos */
body.page-id-11 #page,
body.page-id-11 .grid-container,
body.page-id-11 .site-content,
body.page-id-11 .content-area,
body.page-id-11 #primary,
body.page-id-11 .inside-article {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    background: transparent !important;
}

body.page-id-11 .site-content {
    display: block !important;
    padding: 1px 20px !important;
}

/* Tarjeta central */
body.page-id-11 .entry-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
    margin: 10vh auto !important;
    padding: 40px 30px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    background: #16161a;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Título */
body.page-id-11 .entry-content h2 {
    margin: 0 0 20px;
    color: #ff3366 !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

/* Texto */
body.page-id-11 .entry-content p {
    margin-bottom: 20px;
    color: #ffffff !important;
    font-size: 16px;
    line-height: 1.6;
}

/* Lista */
body.page-id-11 .entry-content ul {
    max-width: 390px;
    margin: 0 auto 25px;
    padding: 0;
    text-align: left;
    color: #b8c1ec;
    font-size: 15px;
    line-height: 1.8;
    list-style: none;
}

body.page-id-11 .entry-content li::before {
    content: "✔";
    margin-right: 8px;
    color: #ff3366;
}

/* Botón de afiliado */
body.page-id-11 .entry-content a {
    display: inline-block;
    margin-top: 15px;
    padding: 16px 45px;
    color: #ffffff !important;
    background: #ff3366 !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

body.page-id-11 .entry-content a:hover,
body.page-id-11 .entry-content a:focus {
    transform: scale(1.05);
}

/* Limpieza temporal de la portada */
body.home .entry-meta,
body.home .cat-links,
body.home .tags-links,
body.home .posted-on {
    display: none !important;
}

.comments-area {
    display: none !important;
}

/* Móvil */
@media (max-width: 600px) {
    body.page-id-11 .site-content {
        padding: 1px 15px !important;
    }

    body.page-id-11 .entry-content {
        margin: 7vh auto !important;
        padding: 30px 22px;
    }

    body.page-id-11 .entry-content h2 {
        font-size: 24px;
    }

    body.page-id-11 .entry-content a {
        box-sizing: border-box;
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
    }
}

/* ==================================================
   NOCHES VIVAS — PORTADA ID 51
   ================================================== */

body.page-id-51 {
    --nv-bg: #0f0f15;
    --nv-card: #16161a;
    --nv-accent: #ff3366;
    --nv-violet: #7a00ff;
    --nv-text: #ffffff;
    --nv-muted: #b8c1ec;
    --nv-border: rgba(184, 193, 236, 0.14);

    overflow-x: hidden;
    background: var(--nv-bg) !important;
    color: var(--nv-text);
}

/* Cabecera y navegación */
body.page-id-51 .site-header,
body.page-id-51 .main-navigation {
    background: var(--nv-bg) !important;
}

body.page-id-51 .site-header .inside-header {
    padding-top: 18px;
    padding-bottom: 18px;
}

body.page-id-51 .site-branding a,
body.page-id-51 .main-navigation .main-nav ul li a {
    color: var(--nv-text) !important;
}

body.page-id-51 .main-navigation .main-nav ul li a:hover,
body.page-id-51 .main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--nv-accent) !important;
}

/* Ocultar el título automático “Inicio” */
body.page-id-51 .entry-header {
    display: none !important;
}

/* Eliminar sidebar y liberar ancho */
body.page-id-51 #right-sidebar,
body.page-id-51 .widget-area {
    display: none !important;
}

body.page-id-51 #page,
body.page-id-51 .site-content,
body.page-id-51 .content-area,
body.page-id-51 #primary {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
}

body.page-id-51 .site-content {
    padding: 24px 18px 60px !important;
}

body.page-id-51 .inside-article {
    width: min(1500px, calc(100% - 36px));
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 !important;
    background: transparent !important;
}

body.page-id-51 .entry-content {
    margin: 0 !important;
    color: var(--nv-text);
}

/* ==================================================
   HERO
   El bloque Fondo debe tener la clase: nv-hero
   ================================================== */

body.page-id-51 .nv-hero {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 620px;
    margin: 0 0 54px;
    padding: 52px 58px;
    overflow: hidden;
    border: 1px solid var(--nv-border);
    border-radius: 18px;
    background-position: 72% 50% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

/* Superposición oscura del bloque Fondo */
body.page-id-51 .nv-hero .wp-block-cover__background {
    opacity: 0.44 !important;
}

/* Degradado para proteger la lectura del lado izquierdo */
body.page-id-51 .nv-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(8, 8, 14, 0.92) 0%,
        rgba(8, 8, 14, 0.76) 38%,
        rgba(8, 8, 14, 0.28) 68%,
        rgba(8, 8, 14, 0.06) 100%
    );
}

/* Contenedor interno del bloque Fondo */
body.page-id-51 .nv-hero .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Columnas internas del hero */
body.page-id-51 .nv-hero .wp-block-columns {
    width: 100%;
    margin: 0 !important;
    gap: 0;
}

body.page-id-51 .nv-hero .wp-block-column {
    box-sizing: border-box;
    width: 52%;
    max-width: 690px;
    flex-basis: 52% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

/* H1 */
body.page-id-51 .nv-hero h1 {
    max-width: 680px;
    margin: 0 0 22px;
    color: var(--nv-text);
    font-size: clamp(42px, 3.8vw, 58px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-align: left;
    text-wrap: balance;
}

/* Introducción */
body.page-id-51 .nv-hero p {
    max-width: 590px;
    margin: 0 0 30px;
    color: #e3e5f7;
    font-size: 18px;
    line-height: 1.65;
    text-align: left;
}

/* Botones del hero */
body.page-id-51 .nv-hero .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
}

body.page-id-51 .nv-hero .wp-block-button {
    margin: 0;
}

body.page-id-51 .nv-hero .wp-block-button__link {
    box-sizing: border-box;
    padding: 14px 25px;
    border: 1px solid rgba(255, 51, 102, 0.55);
    border-radius: 999px;
    background: var(--nv-accent) !important;
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.28);
    color: var(--nv-text) !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

body.page-id-51 .nv-hero .wp-block-button__link:hover,
body.page-id-51 .nv-hero .wp-block-button__link:focus-visible {
    transform: translateY(-2px);
    background: #ff4775 !important;
    box-shadow: 0 9px 26px rgba(255, 51, 102, 0.42);
}

/* ==================================================
   CONTENIDO GENERAL
   ================================================== */

body.page-id-51 .entry-content > h2 {
    margin: 68px 0 28px;
    color: var(--nv-text);
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.015em;
}

body.page-id-51 .entry-content h3 {
    margin: 0 0 18px;
    color: var(--nv-accent);
    font-size: 25px;
    line-height: 1.25;
}

/* Solo las columnas de categorías, no las del hero */
body.page-id-51 .entry-content > .wp-block-columns {
    gap: 22px;
    margin-bottom: 60px;
}

body.page-id-51
    .entry-content
    > .wp-block-columns:not(.nv-hero .wp-block-columns)
    > .wp-block-column {
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid var(--nv-border);
    border-radius: 12px;
    background: var(--nv-card);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

body.page-id-51
    .entry-content
    > .wp-block-columns:not(.nv-hero .wp-block-columns)
    > .wp-block-column:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 51, 102, 0.48);
}

body.page-id-51
    .entry-content
    > .wp-block-columns:not(.nv-hero .wp-block-columns)
    > .wp-block-column
    p {
    margin-bottom: 0;
    color: var(--nv-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Párrafos de secciones */
body.page-id-51 .entry-content > h2 ~ p {
    color: #d8daf0;
    font-size: 17px;
    line-height: 1.75;
}

/* Lista informativa */
body.page-id-51 .wp-block-list {
    box-sizing: border-box;
    margin: 25px 0 60px;
    padding: 25px 30px 25px 52px;
    border-left: 4px solid var(--nv-accent);
    border-radius: 0 12px 12px 0;
    background: var(--nv-card);
    color: var(--nv-text);
}

body.page-id-51 .wp-block-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

body.page-id-51 .wp-block-list li:last-child {
    margin-bottom: 0;
}

/* Pie */
body.page-id-51 .site-footer,
body.page-id-51 .site-info {
    background: #0a0a0e !important;
    color: var(--nv-muted) !important;
}

body.page-id-51 .site-info a {
    color: var(--nv-accent) !important;
}


/* ==================================================
   PANTALLAS GRANDES
   ================================================== */

@media (min-width: 1440px) {
    body.page-id-51 .inside-article {
        width: min(1580px, calc(100% - 48px));
        max-width: 1580px;
    }

    body.page-id-51 .nv-hero {
        min-height: 640px;
    }
}

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

@media (max-width: 1024px) {
    body.page-id-51 .site-content {
        padding: 28px 14px 52px !important;
    }

    body.page-id-51 .inside-article {
        width: calc(100% - 20px);
    }

    body.page-id-51 .nv-hero {
        min-height: 540px;
        padding: 44px 38px;
        background-position: 70% 50% !important;
    }

    body.page-id-51 .nv-hero .wp-block-column {
        width: 62%;
        max-width: 600px;
        flex-basis: 62% !important;
    }

    body.page-id-51 .nv-hero h1 {
        font-size: clamp(42px, 5vw, 56px);
    }

    body.page-id-51 .nv-hero p {
        font-size: 17px;
    }
}

/* ==================================================
   MÓVIL
   ================================================== */

@media (max-width: 768px) {
    body.page-id-51 .site-content {
        padding: 14px 10px 42px !important;
    }

    body.page-id-51 .inside-article {
        width: 100%;
        max-width: none;
    }

    body.page-id-51 .nv-hero {
        display: block;
        min-height: auto;
        margin-bottom: 48px;
        padding: 34px 20px;
        border-radius: 14px;
        background-position: 68% center !important;
    }

    /* Oscurecer más para mantener contraste */
    body.page-id-51 .nv-hero .wp-block-cover__background {
        opacity: 0.72 !important;
    }

    body.page-id-51 .nv-hero .wp-block-columns {
        display: block !important;
    }

    body.page-id-51 .nv-hero .wp-block-column {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        padding: 0 !important;
    }

    body.page-id-51 .nv-hero h1 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        font-size: clamp(34px, 10vw, 42px);
        line-height: 1.08;
        letter-spacing: -0.015em;
        text-align: left;
        text-wrap: pretty;
    }

    body.page-id-51 .nv-hero p {
        width: 100%;
        max-width: 100%;
        margin-bottom: 25px;
        font-size: 16px;
        line-height: 1.55;
        text-align: left;
    }

    body.page-id-51 .nv-hero .wp-block-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;
        width: 100%;
    }

    body.page-id-51 .nv-hero .wp-block-button,
    body.page-id-51 .nv-hero .wp-block-button__link {
        width: 100%;
    }

    body.page-id-51 .nv-hero .wp-block-button__link {
        padding: 14px 18px;
        text-align: center;
    }

    body.page-id-51 .entry-content > h2 {
        margin-top: 52px;
        font-size: 29px;
        line-height: 1.22;
    }

    body.page-id-51
        .entry-content
        > .wp-block-columns:not(.nv-hero .wp-block-columns) {
        display: block;
        margin-bottom: 48px;
    }

    body.page-id-51
        .entry-content
        > .wp-block-columns:not(.nv-hero .wp-block-columns)
        > .wp-block-column {
        margin-bottom: 18px;
        padding: 24px;
    }

    body.page-id-51 .wp-block-list {
        margin-bottom: 48px;
        padding: 22px 22px 22px 38px;
    }
}

/* Teléfonos muy pequeños */
@media (max-width: 420px) {
    body.page-id-51 .site-content {
        padding: 16px 10px !important;
    }

    body.page-id-51 .nv-hero {
        padding: 32px 18px;
    }

    body.page-id-51 .nv-hero h1 {
        font-size: 34px;
    }

    body.page-id-51 .nv-hero p {
        font-size: 15.5px;
    }
}

/* Accesibilidad: reducir animaciones */
@media (prefers-reduced-motion: reduce) {
    body.page-id-51 .wp-block-button__link,
    body.page-id-51 .wp-block-column {
        transition: none !important;
    }
}

.nv-card {
    position: relative;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nv-card .wp-block-heading a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.nv-card:hover {
    transform: translateY(-3px);
    border-color: #d72b70;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.nv-card:focus-within {
    outline: 2px solid #d72b70;
    outline-offset: 3px;
}