:root {
    --bg-dark: #0b0f19;
    --bg-card: #151b2b;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --color-green: #10b981;
    --color-orange: #f97316;
    --color-olive: #84cc16;
    --color-blue: #3b82f6;
    --gradient-hero: linear-gradient(135deg, rgba(11,15,25,0.9) 0%, rgba(59,130,246,0.2) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 15, 25, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--color-green), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-orange);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/fondito.jpg') no-repeat center center/cover;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.highlight {
    color: var(--color-orange);
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--color-green);
    color: var(--color-green);
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--color-green);
    color: var(--bg-dark);
}

.btn-watch {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--color-olive) 0%, var(--color-orange) 100%);
    color: #0b0f19;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(132, 204, 22, 0.2);
    display: inline-block;
}

.btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-olive) 100%);
}

.content-section {
    padding: 5rem 10%;
}

.gradient-bg {
    background: linear-gradient(135deg, 
        rgba(132, 204, 22, 0.15) 0%, 
        var(--bg-dark) 50%, 
        rgba(249, 115, 22, 0.15) 100%);
}

.alt-bg {
    background-color: #0f1420;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-olive);
    margin: 10px auto 0;
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 1rem;
}

.card {
    background: linear-gradient(to bottom, 
        var(--bg-card) 0%, 
        var(--bg-card) 70%, 
        rgba(132, 204, 22, 0.08) 90%, 
        rgba(249, 115, 22, 0.15) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green), var(--color-blue));
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 2;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0b0f19;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.tag-green { background: var(--color-green); }
.tag-olive { background: var(--color-olive); }
.tag-orange { background: var(--color-orange); }
.tag-blue { background: var(--color-blue); }

.card-content {
    padding: 2rem;
    position: relative;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
}

.date {
    color: var(--color-orange);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.card-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.lore-section {
    padding: 5rem 10%;
    background: linear-gradient(to bottom, #0f1420, #0b0f19);
}

.lore-container {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8;
}

.lore-intro {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 3rem;
    text-align: center;
    font-style: italic;
}

.lore-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.lore-item {
    padding: 1.5rem;
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 10px 10px 0;
    border-left: 4px solid var(--color-blue);
    transition: transform 0.3s, background 0.3s;
}

.lore-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.04);
}

.lore-item.item-1 { border-left-color: var(--color-green); }
.lore-item.item-2 { border-left-color: var(--color-olive); }
.lore-item.item-3 { border-left-color: var(--color-orange); }
.lore-item.item-4 { border-left-color: var(--color-blue); }

.lore-item h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.lore-summary {
    padding: 2.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.lore-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
}

.lore-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.lore-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-size: 1.2rem;
}

.lore-outro {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 3rem 10%;
    background: #05080f;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-green);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SALAS DE CINE */
.cinema-room {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 5rem;
    background-color: var(--bg-dark);
    text-align: center;
}

.cinema-info {
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.cinema-info h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.cinema-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
}

.projection-cell {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #05080f;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(0, 0, 0, 0.9);
}

.projection-cell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(30px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cell-base {
    height: 30px;
    margin-top: 8px;
    background: linear-gradient(to bottom, #0a0e17, #05080f);
    border-radius: 0 0 6px 6px;
    position: relative;
    overflow: hidden;
}

.cell-base::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-olive), transparent);
    opacity: 0.4;
}
/* === BOTONES DE COMPARTIR EN SALAS === */
.share-section {
    text-align: center;
    padding: 2rem 5% 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.share-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 1.3rem;
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000000; border: 1px solid #333; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.youtube { background: #ff0000; }
/* === POSTER CON BOTÓN DE PLAY === */
.video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.video-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay oscuro sutil */
    z-index: 1;
}

.video-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.video-poster:hover img {
    opacity: 1;
}

.play-button {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-olive) 0%, var(--color-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
}

.video-poster:hover .play-button {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(249, 115, 22, 0.7);
    animation: none;
}

.play-text {
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

/* Animación de latido para el botón */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 12px 35px rgba(249, 115, 22, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
    }
}
/* === SECCIÓN DOCUMENTALES === */
.docu-bg {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15) 0%, 
        var(--bg-dark) 50%, 
        rgba(168, 85, 247, 0.15) 100%);
}

.tag-purple {
    background: #8b5cf6;
    color: white;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .content-section { padding: 3rem 5%; }
    .cinema-room { padding: 7rem 4% 3rem; }
    .cinema-info h1 { font-size: 1.8rem; }
    .projection-cell { padding: 8px; }
    .lore-section { padding: 3rem 5%; }
}