﻿/* ESTILO GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #0a0a0a;
    color: #e6e6e6;
    overflow-x: hidden;
}

/* Suavidad al hacer scroll */
html {
    scroll-behavior: smooth;
}

/* MENÚ SUPERIOR FLOTANTE MEJORADO */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;

    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(1px);
    transition: background-color 0.4s ease, padding 0.3s ease;
}

/* Logo pequeño */
.menu-logo img {
    height: 34px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.menu-logo img:hover {
    opacity: 1;
}

/* Contenedor de enlaces alineado a la derecha */
.menu-links {
    display: flex;
    gap: 18px;
}

/* Cada enlace dentro de una caja */
nav a {
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #e6e6e6;

    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);

    transition: 
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

/* Hover elegante */
nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Enlace activo según sección */
nav a.active {
    background: rgba(255, 221, 85, 0.25);
    border-color: #ffdd55;
    color: #ffdd55;
    transform: scale(1.05);
}

/* Menú movil*/
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}


/* Menú al hacer scroll */
nav.scrolled {
    background: rgba(10, 10, 10, 0.75);
    padding: 10px 40px;
}

/* SECCIONES A PANTALLA COMPLETA */

section {
    min-height: 100vh;
    padding: 80px 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* HERO */

#hero {
    height: 100vh;
    background-color: #0a0a0a;
    background-image: url("ciudad-16x9.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Overlay oscuro para estilo nocturno */
    position: relative;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.75)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeIn 1.5s ease forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

/* TIPOGRAFÍA DE SECCIONES */

h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #f2f2f2;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: 600;
    color: #f2f2f2;
}


p {
    max-width: 700px;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 22px;
}

/* BOTÓN CTA – EFECTO NEÓN SUAVE */

.cta-button {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 32px;
    background: #ffdd55;
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;

    box-shadow: 0 0 12px rgba(255, 221, 85, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(255, 221, 85, 0.8);
}

/* ANIMACIONES */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSIVE MÓVIL */

.section {
    padding-top: 100px;   /* espacio para que no quede debajo del menú */
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section {
    z-index: 1;
}

@media (max-width: 768px) {

    /* --- MENÚ SUPERIOR --- */
    #menu {
        padding: 8px 15px;
        height: auto;
    }

    .menu-logo img {
        width: 38px;
        height: auto;
    }

    .menu-links {
        display: none; /* oculto en móvil */
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
    }

    /* Panel del menú móvil */
    .menu-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 15px;
        background: rgba(0,0,0,0.9);
        padding: 20px;
        border-radius: 8px;
        gap: 15px;
        width: 70%;
        text-align: right;
        z-index: 9999;
    }

    .menu-links a {
        font-size: 1.1rem;
        padding: 5px 0;
    }

    /* --- HERO --- */
    #hero {
        padding: 120px 20px 80px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-top: 10px;
    }

    .countdown {
        font-size: 1.1rem;
        margin-top: 8px;
    }

    /* --- SECCIONES --- */
    .section {
        padding: 60px 20px;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        text-align: center;
    }

    h3 {
        font-size: 1.4rem;
        margin-top: 40px;
        text-align: center;
    }

    p {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    /* --- BOTÓN CTA --- */
    .cta-button {
        display: block;
        margin: 25px auto;
        padding: 12px 20px;
        font-size: 1.1rem;
        width: 80%;
        text-align: center;
    }

    /* --- FOOTER --- */
    footer p {
        font-size: 0.9rem;
        padding: 20px;
        text-align: center;
    }
}

/* PALETA CINEMATOGRÁFICA POR SECCIONES */

/* HERO: ya tiene su imagen y overlay */

/* SECCIÓN 2 – Oscuro suave (ya está bien) */
#sec2 {
    background-color: #141414;
}

/* SECCIÓN 3 – Gris suave, más claro */
#sec3 {
    background-color: #3a3a3a;
}

/* SECCIÓN 4 – Gris claro, casi exterior */
#sec4 {
    background-color: #bfbfbf;
}

/* SECCIÓN 5 – Exterior claro */
#sec5 {
    background-color: #ffffff;
    color: #222;
}


#sec4 h2,
#sec4 p {
    color: #111;
}

#sec5 h2,
#sec5 p {
    color: black;
}

/* FOOTER */

.footer {
    background: #111;          /* oscuro suave */
    color: #ccc;               /* gris claro */
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.countdown {
    margin-top: 10px;
    font-size: 1.4rem;
    color: #f0f0f0;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 300;
}

/* MODO HORIZONTAL (LANDSCAPE) */

@media (max-height: 500px) and (orientation: landscape) {

    /* --- MENÚ --- */
    #menu {
        padding: 5px 15px;
    }

    .menu-logo img {
        width: 32px;
    }

    .menu-toggle {
        font-size: 1.6rem;
    }

    .menu-links.active {
        top: 50px;
        right: 10px;
        width: 60%;
        padding: 15px;
    }

    /* --- HERO --- */
    #hero {
        padding: 80px 20px 40px;
        min-height: auto; /* evita que se corte */
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .countdown {
        font-size: 1rem;
    }

    /* --- SECCIONES --- */
    .section {
        padding: 40px 20px;
        padding-top: 120px; /* aumenta el espacio superior */
    }

    h2 {
        font-size: 1.6rem;
        margin-top: 50px;
    }

    h3 {
        font-size: 1.3rem;
        margin-top: 30px;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    /* --- CTA --- */
    .cta-button {
        width: 60%;
        padding: 10px 15px;
        font-size: 1rem;
    }

    /* --- FOOTER --- */
    footer p {
        font-size: 0.85rem;
        padding: 15px;
    }
}

/* CTA en pantallas grandes */
@media (min-width: 1024px) {
    .cta-button {
        width: 320px;          /* tamaño ideal */
        padding: 14px 24px;
        font-size: 1.1rem;
        margin: 40px auto 20px;
        display: block;
        text-align: center;
    }
}

/* BOTÓN FLOTANTE CTA (estilo igual al CTA original) */
#floating-cta {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #ffdd55; /* usa el mismo color que tu CTA */
    color: #000;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.3s ease;
    transform: translateY(20px);
    z-index: 9999;
}

/* Cuando aparece */
#floating-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Móvil */
@media (max-width: 768px) {
    #floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 22px;
        font-size: 1rem;
    }
}

/* EFECTO DE PULSAR AL HACER CLIC */
#floating-cta:active {
    transform: scale(0.92);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.08s ease;
}