/* =========================================
   PALOMITEROS - ESTILOS GLOBALES BLOG
   ========================================= */

/* --- VARIABLES --- */
header nav {
    display: block; 
}

:root {
    --bg: #ffffff;
    --text: #1c2636;
    --text-secondary: #334155;
    --accent: #c63b36;
    --header-bg: #1c2636;
    --header-text: #ffffff;
}

/* --- GENERAL --- */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* --- HEADER --- */
header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    border-bottom: 4px solid var(--accent);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--header-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    z-index: 6000;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--header-text);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--header-text);
    border-radius: 3px;
    transition: 0.3s;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- HERO FULL WIDTH (Video / Cover Header) --- */
.hero-full-width {
    width: 100%;
    background: #000;
    margin: 0;
    padding: 0;
    height: 55vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.hero-pelicula {
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hero-pelicula-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.hero-pelicula-poster {
    display: none;
    width: 25%;
    height: 100%;
    background: #111;
    position: relative;
}

.hero-pelicula-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-pelicula-trailer {
    flex: 1;
    height: 100%;
    background: #000;
}

.hero-pelicula-trailer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- CONTENIDO ARTÍCULO --- */
article br {
    display: none;
}

article {
    max-width: 90%;
    margin: 0 auto;
    padding: 0.5rem 3% 0.5rem 3%;
}

/* ESTILO H1 (EL TÍTULO GRANDE) */
.article-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--header-bg);
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
    letter-spacing: -1.5px;
}

/* ESTILOS DEL CONTENIDO */

/* Subtítulos (H2) */
.article-content h2 {
    font-size: 1.7rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    color: var(--text);
    font-weight: 800;
}

/* Sub-subtítulos (H3) */
.article-content h3 {
    font-size: 1.3rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    color: var(--accent);
    font-weight: 700;
}

/* Párrafos (P) */
.article-content p {
    font-size: 1.1rem;
    line-height: 1.55;
    margin-bottom: 2rem;
    color: #334155;
}

/* --- FICHA TÉCNICA (METADATA) --- */
.metadata-block {
    background: #f8f9fa;
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.metadata-content {
    display: flex;
    gap: 2rem;
}

.metadata-cover {
    width: 170px;
    flex-shrink: 0;
}

.metadata-cover img {
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.metadata-details {
    flex: 1;
}

.metadata-list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.metadata-list strong {
    color: var(--header-bg);
    width: 100px;
    display: inline-block;
    font-weight: 700;
}

/* --- ESTILOS ESPECÍFICOS PARA RECOMENDADOS --- */
.related-section {
    margin-top: -4rem;
    width: 100%;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text, #1c2636);
    text-align: center;
    display: inline-block;
    width: 100%;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* MINI CARD */
.mini-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    color: inherit;
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.mini-card-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    background: #f0f0f0;
}

.mini-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-card-meta {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.mini-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--text);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--header-bg);
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 3rem;
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
    .hero-pelicula-poster {
        display: block;
    }
}

/* --- RESPONSIVE MENU FIXED --- */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    #hamburgerBtn {
        position: relative;
        z-index: 100000 !important;
    }

    .brand-logo {
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: center;
        gap: 0;

        max-height: 0;
        overflow: hidden;

        /* 👉 SOLO animamos la altura, SIN fade */
        transition: max-height 0.5s ease-in-out;

        z-index: 9999;
        padding: 0;
        border-bottom: 0 solid var(--accent);

        pointer-events: none;
    }

    .nav-links.active {
        max-height: 500px;
        border-bottom: 4px solid var(--accent);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);

        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1.2rem 5%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
    }

    .nav-links a:hover {
        background-color: transparent;
        color: var(--accent);
    }

    .hero-full-width {
        height: auto;
        aspect-ratio: 16/9;
    }

    .hero-pelicula-inner {
        flex-direction: column;
    }

    .metadata-content {
        flex-direction: column;
    }

    .metadata-cover {
        width: 100px;
        margin: 0 auto;
    }

    article {
        padding-top: 1.5rem;
    }

    .article-content h1 {
        font-size: 2.2rem;
    }
}
