/*
 Theme Name: GeneratePress Child
 Template: generatepress
 Author: Sergio LAB
 Version: 1.0
*/

/* ===================================
   GLOBAL
=================================== */

html,
body {
    overflow-x: hidden;
}

/* ===================================
   ARCHIVE PELÍCULAS
=================================== */

.movies-archive {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}

.movies-archive__title {
    margin-bottom: 30px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.movie-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
}

.movie-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.movie-card__title {
    margin-top: 20px;
    margin-bottom: 15px;
}

.movie-card__title a {
    color: #111827;
    text-decoration: none;
}

.movie-card__meta {
    margin: 8px 0;
}

/* ===================================
   HOME FULL WIDTH - GENERATEPRESS
=================================== */

body.home,
body.home #page,
body.home #content,
body.home .site-content,
body.home .content-area,
body.home .site-main,
body.home .inside-article,
body.home .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.home .container,
body.home .grid-container {
    max-width: none;
    width: 100%;
}

body.home .site-footer {
    margin-top: 0;
}

body.home .site-home {
    width: 100%;
    min-height: 100vh;
}

/* ===================================
   HOME HERO
=================================== */

.site-home {
    background: #020617;
    color: #ffffff;
    min-height: 100vh;
}

.home-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.25), transparent 35%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 35%),
        linear-gradient(135deg, #020617 0%, #0f172a 55%, #111827 100%);
}

.home-hero__content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.home-hero__eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.08);
    color: #fb923c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-hero__title {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: clamp(64px, 10vw, 140px);
    line-height: 0.9;
    letter-spacing: -5px;
}

.home-hero__text {
    max-width: 780px;
    margin: 0 auto 42px;
    color: #cbd5e1;
    font-size: clamp(19px, 2vw, 26px);
    line-height: 1.55;
}

.home-hero__actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 16px 28px;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.25);
}

.home-hero__button:hover {
    background: #fb923c;
    color: #ffffff;
}

.home-hero__button--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: none;
}

.home-hero__button--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ===================================
   HOME PELÍCULAS DESTACADAS
=================================== */

.home-movies {
    padding: 100px 24px;
    background: #ffffff;
}

.home-movies__container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-movies__title {
    margin-bottom: 40px;
    text-align: center;
    font-size: 42px;
    color: #111827;
}

/* ===================================
   HOME DIRECTORES DESTACADOS
=================================== */

.home-directors {
    padding: 100px 24px;
    background: #f8fafc;
}

.home-directors__container {
    max-width: 1200px;
    margin: 0 auto;
}

.home-directors__title {
    margin-bottom: 40px;
    text-align: center;
    font-size: 42px;
    color: #111827;
}

.directors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.director-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.director-card__image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.director-card__title {
    padding: 22px;
    margin: 0;
    font-size: 22px;
}

.director-card__title a {
    color: #111827;
    text-decoration: none;
}

/* ===================================
   PÁGINA GUTENBERG - APRENDER WORDPRESS
=================================== */

body.page-id-47 {
    overflow-x: hidden;
}

body.page-id-47 .site-content,
body.page-id-47 .content-area,
body.page-id-47 .site-main,
body.page-id-47 .inside-article,
body.page-id-47 .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.page-id-47 .grid-container,
body.page-id-47 .container {
    width: 100%;
    max-width: none;
}

/* Oculta el título automático de la página */
body.page-id-47 .entry-title {
    display: none;
}

/* Fuerza el hero Gutenberg a ancho completo */
body.page-id-47 .hero-gutenberg-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 650px;
}

body.page-id-47 .hero-gutenberg-full .wp-block-cover__inner-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 900px) {
    .movies-grid,
    .directors-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
        padding: 90px 20px;
    }

    .home-hero__title {
        letter-spacing: -2px;
    }

    .home-movies,
    .home-directors {
        padding: 70px 20px;
    }
}


/* ===================================
   TEMPLATE APRENDER WORDPRESS
=================================== */

.lab-page-fullwidth {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.page-template-template-aprender-wordpress .site-content,
.page-template-template-aprender-wordpress .content-area,
.page-template-template-aprender-wordpress .site-main,
.page-template-template-aprender-wordpress .inside-article,
.page-template-template-aprender-wordpress .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.page-template-template-aprender-wordpress .grid-container,
.page-template-template-aprender-wordpress .container {
    width: 100%;
    max-width: none;
}

.page-template-template-aprender-wordpress .entry-title {
    display: none;
}