/* ============================================
   ESTILOS GLOBALES - Lumbrerapp (home + login)
   Tema: logo (amarillo/naranja, azul, púrpura)
   ============================================ */

:root {
    --lumbre-primary: #F59E0B;
    --lumbre-primary-hover: #D97706;
    --lumbre-accent: #8B5CF6;
    --lumbre-warm: #FBBF24;
    --lumbre-cool: #3B82F6;
    --lumbre-bg-dark: #0f0f14;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #000;
    color: white;
}

/* ============================================
   HOME - Landing
   ============================================ */

body.page-home {
    overflow-x: hidden;
}

/* Hero banner: fondo full-width con navbar encima (tipo Prime/streaming) */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-banner-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-banner-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.hero-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to bottom, transparent 25%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.65) 80%, rgba(0, 0, 0, 0.9) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 35%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.15) 85%, rgba(0, 0, 0, 0.08) 100%);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    z-index: 20;
    background: #000;
    box-sizing: border-box;
}

.navbar-over-bg {
    background: transparent;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    padding: 72px 5% 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.hero-banner-section-title {
    position: absolute;
    top: 100px;
    left: 5%;
    margin-bottom: 0;
    color: #fff;
}

.hero-banner-content,
.hero-banner-content .new-pubs-hero-title,
.hero-banner-content .new-pubs-hero-synopsis,
.hero-banner-content .new-pubs-hero-meta,
.hero-banner-content .new-pubs-hero-genres,
.hero-banner-content .new-pubs-hero-avail,
.hero-banner-content .new-pubs-hero-include-title,
.hero-banner-content .new-pubs-hero-include-list,
.hero-banner-content .hero-share-actions {
    color: #fff;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img,
.navbar-brand img,
.logo-img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.page-home .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.4);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.login-btn {
    background-color: var(--lumbre-primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    background-color: var(--lumbre-primary-hover);
}

.nav-actions .login-btn {
    width: auto;
    padding: 6px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    z-index: 10;
    margin-top: -50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    max-width: 800px;
    line-height: 1.1;
}

.hero-title-small {
    font-size: 2.8rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.email-form,
.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Barra de búsqueda tipo pastilla: contenedor único oscuro con iconos */
.search-form-pill {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 16px 0 14px;
    background: #363636;
    border: none;
    border-radius: 9999px;
    max-width: 560px;
    min-height: 48px;
    flex-wrap: nowrap;
}

.search-form-pill .search-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a0a0a0;
}

.search-form-pill .search-form-icon-left {
    margin-right: 10px;
}

.search-form-pill .search-input {
    flex: 1;
    min-width: 0;
    padding: 14px 12px 14px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 1rem;
}

.search-form-pill .search-input::placeholder {
    color: #a0a0a0;
}

.search-form-pill .search-input:focus {
    outline: none;
}

.search-form-pill .search-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #a0a0a0;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.search-form-pill .search-form-submit:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.email-input,
.search-input {
    flex-grow: 1;
    padding: 16px 20px;
    background: rgba(22, 22, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
}

.email-input::placeholder,
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.start-btn,
.search-btn {
    background-color: var(--lumbre-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-btn:hover,
.search-btn:hover {
    background-color: var(--lumbre-primary-hover);
}

/* Separador curvo */
.curve-container {
    position: relative;
    height: 100px;
    width: 100%;
    overflow: hidden;
    margin-top: -80px;
    z-index: 5;
}

.curve-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background-color: #000;
    border-top: 4px solid var(--lumbre-accent);
    box-shadow: 0 -20px 50px rgba(139, 92, 246, 0.35);
}

/* Tendencias - carrusel */
.trending-section {
    width: 100%;
    padding: 40px 5% 60px;
    background-color: #000;
    position: relative;
    z-index: 10;
    overflow: visible;
    box-sizing: border-box;
}

.trending-section.category-row {
    padding-top: 24px;
    padding-bottom: 24px;
}

.trending-section.category-row .section-title {
    margin-bottom: 16px;
}

/* Categorías (Historietas, Libros): rectángulo horizontal 16:9 */
.category-row .carousel-item {
    flex: 0 0 320px;
}

.category-row .carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-row .carousel-arrow {
    height: 200px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: left;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-wrapper {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    padding-left: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel {
    display: flex;
    gap: 40px;
    width: max-content;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    position: relative;
    flex: 0 0 200px;
    cursor: pointer;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    background-color: #222;
}

.number {
    position: absolute;
    bottom: -15px;
    left: -35px;
    font-size: 120px;
    font-weight: 900;
    color: black;
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.9);
    line-height: 1;
    z-index: 2;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 120px;
    border: none;
    border-radius: 22px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    font-size: 1.5rem;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.carousel-arrow:active {
    transform: scale(0.98);
}

/* Nuevas publicaciones: diseño tipo detalle (imagen fondo + contenido izquierda) */
.new-pubs-section {
    width: 100%;
    box-sizing: border-box;
}

.new-pubs-hero {
    position: relative;
    min-height: 480px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.new-pubs-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.new-pubs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 70%);
}

.new-pubs-hero-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 0;
    z-index: 2;
    gap: 24px;
}

.hero-share-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

/* ========== Zona fija: botones de redes en el borde derecho del hero ==========
   Columna vertical fija pegada al borde derecho de la pantalla (como en diseño). */
.hero-share-fixed {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 30;
    padding-right: max(0.5rem, env(safe-area-inset-right));
    padding-left: 0.25rem;
}

.hero-share-fixed .share-btn-circle {
    flex-shrink: 0;
}

.new-pubs-hero-content {
    flex: 0 0 auto;
    max-width: 520px;
    padding: 0;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Desde tablet/desktop el contenido usa el grid: que llene su columna */
@media (min-width: 769px) {
    .new-pubs-hero-content {
        max-width: 100%;
    }
}

.new-pubs-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.new-pubs-hero-synopsis {
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
}

.new-pubs-hero-include {
    margin-bottom: 20px;
    max-width: 520px;
}

.new-pubs-hero-include-intro {
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 12px 0;
}

.new-pubs-hero-include-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.new-pubs-hero-include-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

.new-pubs-hero-include-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.new-pubs-hero-include-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lumbre-primary, #d4a853);
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.3);
}

.new-pubs-hero-include-cta {
    font-size: 0.95rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 14px 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--lumbre-primary, #d4a853);
    border-radius: 0 6px 6px 0;
    line-height: 1.45;
}

.new-pubs-hero-include-redes {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    margin: 0;
}

.new-pubs-hero-include-redes strong {
    color: #fff;
    font-weight: 700;
}

.new-pubs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.new-pubs-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.new-pubs-meta-dot {
    opacity: 0.6;
}

.new-pubs-hero-genres {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.new-pubs-hero-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.new-pubs-hero-share {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.new-pubs-hero-share:hover {
    background: rgba(255, 255, 255, 0.15);
}

.new-pubs-hero-share-icon {
    width: 22px;
    height: 22px;
}

.new-pubs-hero-share-wrap {
    position: relative;
    flex-shrink: 0;
}

.share-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(24, 24, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 10px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 30;
}

.share-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.share-btn-circle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.share-btn-icon {
    width: 22px;
    height: 22px;
}

.new-pubs-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    width: 100%;
    max-width: 400px;
    height: 56px;
    padding: 0 28px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    border: 2px solid #fff;
    background: rgba(48, 48, 48, 0.95);
    color: #fff;
}

.new-pubs-hero-btn:hover {
    background: rgba(64, 64, 64, 0.95);
    opacity: 0.95;
}

.new-pubs-hero-btn-label {
    display: block;
    font-weight: 700;
}

.new-pubs-hero-btn-sub {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.95;
}

.new-pubs-hero-avail {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Panel que se despliega a la derecha */
.new-pubs-expand {
    width: 0;
    min-width: 0;
    overflow: hidden;
    transition: width 0.35s ease-out, min-width 0.35s ease-out;
}

.new-pubs-expand.is-open {
    width: 320px;
    min-width: 320px;
}

.new-pubs-expand-inner {
    width: 320px;
    min-height: 100%;
    padding: 28px 26px;
    margin-left: 12px;
    background: rgba(18, 18, 18, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.new-pubs-expand-inner .info-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px 0;
    letter-spacing: 0.02em;
}

.new-pubs-expand-inner .info-modal-intro {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
    margin: 0 0 22px 0;
}

.new-pubs-expand-inner .info-modal-incluye {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 0.02em;
}

.new-pubs-expand-inner .info-modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.new-pubs-expand-inner .info-modal-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.new-pubs-expand-inner .info-modal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lumbre-primary, #d4a853);
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.3);
}

.new-pubs-expand-inner .info-modal-cta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0 0 20px 0;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--lumbre-primary, #d4a853);
    border-radius: 0 6px 6px 0;
}

.new-pubs-expand-inner .info-modal-redes {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.new-pubs-expand-inner .info-modal-redes strong {
    color: #fff;
    font-weight: 700;
}

/* Más motivos */
.reasons-section {
    width: 100%;
    padding: 20px 5% 80px;
    background-color: #000;
    box-sizing: border-box;
}

.reasons-section .section-title {
    text-align: left;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.reason-card {
    background: linear-gradient(135deg, #1e1b2e 0%, #0f0d18 100%);
    border-radius: 16px;
    padding: 30px 24px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.reason-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    z-index: 2;
}

.reason-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.4;
    z-index: 2;
}

/* Footer */
.site-footer {
    width: 100%;
    background-color: #000;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.footer-contact {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 24px;
    margin-bottom: 28px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--lumbre-warm);
}

.footer-lang {
    margin-bottom: 20px;
}

.footer-lang select,
.footer-lang .lang-select-btn {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 12px 8px 32px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
}

.footer-brand {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-credit {
    text-align: center;
    font-size: 0.9rem;
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.footer-legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

/* Modal película / serie */
.modal-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-window {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 12px;
    background: #181818;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
    background: #fff;
    transform: scale(1.05);
}

.modal-backdrop {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center top;
}

.modal-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #181818 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.modal-content {
    position: relative;
    margin-top: -120px;
    padding: 0 32px 32px;
    z-index: 2;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-synopsis {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    max-height: 80px;
    overflow-y: auto;
}

.modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--lumbre-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-cta:hover {
    background: var(--lumbre-primary-hover);
}

.modal-cta svg {
    width: 20px;
    height: 20px;
}

/* Modal Más información (material didáctico) - estilo Netflix */
.info-modal-window {
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Zona de video con miniatura y botón Reproducir */
.info-modal-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    background-color: #000;
}

.info-modal-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    pointer-events: none;
}

.info-modal-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.info-modal-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent currentColor;
}

.info-modal-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.05);
    color: #fff;
}

.info-modal-content {
    padding: 32px 32px 40px;
}

.info-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.info-modal-intro {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

.info-modal-incluye {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.info-modal-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.info-modal-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.info-modal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.9);
}

.info-modal-cta {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.info-modal-redes {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.info-modal-redes strong {
    color: #fff;
}

/* ============================================
   LOGIN
   ============================================ */

body.page-login {
    min-height: 100vh;
    background-image: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.2) 0%, transparent 50%), radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.page-login .logo {
    text-decoration: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 5% 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    z-index: 20;
    box-sizing: border-box;
}

.header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.header-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.header-back svg {
    display: block;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 56px 24px 24px;
}

body.page-login .login-container {
    padding-top: 100px;
}

.login-card {
    width: 100%;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.login-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-combo {
    background: #282828;
    border: 1px solid #777;
    border-radius: 5px;
    overflow: hidden;
}

.input-label {
    display: block;
    padding: 12px 14px 6px;
    font-size: 0.9rem;
    color: #A0A0A0;
}

.input-row {
    display: flex;
    align-items: center;
    padding: 0 14px 12px;
}

.country-code {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 4px 24px 4px 0;
    margin-right: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.country-code:focus {
    outline: none;
}

.country-code option {
    background: #282828;
    color: white;
}

.login-input {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-input:focus {
    outline: none;
}

.input-combo:focus-within {
    border-color: #999;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 20px;
    cursor: pointer;
}

.help-link:hover {
    text-decoration: underline;
}

.help-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.recaptcha-notice {
    margin-top: 32px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.4;
}

.recaptcha-notice a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* Paso 2: contraseña */
.login-step {
    width: 100%;
}

.login-step.is-hidden {
    display: none;
}

.identifier-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #282828;
    border: 1px solid #777;
    border-radius: 5px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.identifier-display span {
    color: white;
    font-size: 1rem;
}

.identifier-display .cambiar-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.identifier-display .cambiar-link:hover {
    text-decoration: underline;
}

.password-input {
    width: 100%;
    padding: 14px 16px;
    background: #282828;
    border: 1px solid #777;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.password-input:focus {
    outline: none;
    border-color: #999;
}

.login-btn-secondary {
    width: 100%;
    padding: 16px;
    background: #282828;
    color: white;
    border: 1px solid #777;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.login-btn-secondary:hover {
    background: #333;
    border-color: #999;
}

.btn-new-account {
    margin-top: 20px;
    display: block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.separator span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* ========== Móvil (tablets y celulares) ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .logo img {
        height: 44px;
    }
    .nav-actions {
        gap: 10px;
    }
    .lang-btn,
    .nav-actions .login-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .hero-banner {
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero-banner-content {
        padding: 72px 20px 32px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        justify-content: flex-start;
        overflow-y: auto;
    }
    .hero-banner-section-title {
        left: max(20px, env(safe-area-inset-left));
    }
    .new-pubs-hero-row {
        min-height: 0;
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .new-pubs-hero-content {
        max-width: 100%;
        padding: 0;
        margin-top: 0;
        box-shadow: none;
    }
    .new-pubs-hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }
    .new-pubs-hero-synopsis {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    .new-pubs-hero-include-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .new-pubs-hero-include-list {
        margin-bottom: 16px;
    }
    .new-pubs-hero-include-list li {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }
    .new-pubs-hero-meta {
        margin-bottom: 10px;
    }
    .new-pubs-hero-genres {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    .new-pubs-hero-btns {
        margin-bottom: 0;
    }
    .new-pubs-hero-btn {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        height: 52px;
        font-size: 1.05rem;
    }
    .hero-share-actions {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        margin-top: 16px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .share-btn-circle {
        width: 44px;
        height: 44px;
    }
    .share-btn-icon {
        width: 20px;
        height: 20px;
    }
    .new-pubs-expand.is-open {
        width: 100%;
        min-width: 0;
    }
    .new-pubs-expand-inner {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
        padding: 20px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .start-btn,
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    .email-input,
    .search-input {
        width: 100%;
    }
    .search-form-pill {
        max-width: 100%;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-backdrop {
        height: 220px;
    }
    .modal-content {
        margin-top: -80px;
        padding: 0 20px 24px;
    }
    .modal-title {
        font-size: 1.6rem;
    }
}

/* ========== Celulares pequeños ========== */
@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .logo img {
        height: 38px;
    }
    .lang-btn,
    .nav-actions .login-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .hero-banner-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .new-pubs-hero-title {
        font-size: 1.5rem;
    }
    .new-pubs-hero-synopsis {
        font-size: 0.9rem;
    }
    .new-pubs-hero-btn {
        height: 48px;
        font-size: 1rem;
    }
    .hero-share-actions {
        margin-top: 20px;
        gap: 10px;
    }
    .share-btn-circle {
        width: 42px;
        height: 42px;
    }
}
