/* === RESETEO === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #000;
    font-family: "Inter", sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HERO CON VIDEO === */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ===== MENÚ NEGRO FIJO ===== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #000; /* Fondo negro sólido */
    padding: 0 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 42px; /* ajusta el tamaño a tu gusto */
    width: auto; /* mantiene proporción */
    display: block;
}

.top-nav nav ul {
    font-size: 14px;
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.top-nav nav a {
    color: #888;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.4s;
}

.top-nav nav a:hover {
    color: #ffff;
}

/* === MAIN CONTENT === */
main {
    margin-top: 100px;
    padding: 40px 0;
}

.intro-section {
    text-align: center;
    padding: 40px 0 120px;
    border-bottom: 1px solid #1a1a1a;
}

.intro-title {
    display: none;
}

.intro-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* === GRID PORTFOLIO === */
.portfolio-section {
    padding: 80px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 60px;
    text-align: center;
    color: #888;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 6px;
    margin-bottom: 80px;
}

.portfolio-item {
    background-color: #111;
    border: 1px solid #1a1a1a;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16/10;
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item:hover {
    border-color: #333;
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* === FOOTER === */
footer {
    padding: 80px 0;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    justify-content: center;
    display: flex;
    padding-top: 40px;
    border-top: 1px solid #1a1a1a;
    font-size: 12px;
    color: #444;
    letter-spacing: 1px;
}

/* === BURGER MENU === */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: fixed;
    top: 25px;
    right: 40px;
}

.burger-line {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === MOBILE NAV === */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(17, 17, 17, 0.8) 100%
    );
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-top: 100px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    gap: 24px; /* <-- ajusta este valor para más o menos espacio */
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    color: #888;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 20px 0;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav a:hover {
    color: #ffffff;
    padding-left: 20px;
}

.mobile-nav a::before {
    content: "· ";
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mobile-nav a:hover::before {
    opacity: 0.8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .intro-section {
        padding: 60px 0 80px;
    }

    .intro-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .container {
        padding: 0 15px;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }

    .burger-menu {
        display: none !important;
    }
}

/* === ANIMACIONES === */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    pointer-events: auto;
    transition: none;
}

.fade-in.show {
    opacity: 1;
    pointer-events: auto; /* <- permite clicks */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Línea decorativa encima del menú fijo */
.top-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #6e0f23; /* color cálido */
    z-index: 2000; /* encima del menú */
}

html {
    scroll-behavior: smooth;
}

#scrollFade {
    opacity: 0;
    transition: opacity 1s ease-out;
}
#scrollFade.visible {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-container {
        padding: 40px 30px;
    }
}

.modal {
    display: none; /* oculto por defecto */
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex; /* flexbox */
    justify-content: center; /* centra horizontal */
    align-items: center; /* centra vertical */
}
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    background-color: #0f0f0f;
    border-radius: 0px;
    max-width: 900px;
    width: 120%;
    padding: 1px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    margin-top: 5px;
    color: #5e5e5e;
    font-family: "Inter", sans-serif;
    font-size: 0.85rem;
    line-height: 1.9;
    text-align: center;
}

.close {
    color: rgba(0, 0, 0, 0.85);
    float: right;
    font-size: 0px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0px;
}
/* --- POP-UP VIDEO CON SINOPSIS --- */

.modal-content {
    background-color: #111;
    padding: 3px;
    border-radius: 8px;
    max-width: auto;
    width: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* relación 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    width: 100%;
    height: 450px; /* o lo que necesites */
    border: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-synopsis {
    color: #ccc;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* ---.close {
    position: absolute;
    top: 335px;
    right: 165px;
    color: #5e5e5e;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.close:hover {
    opacity: 0.6;
}--- */
