/* =================================================================== */
/* ==       ESTILOS COMPLETOS PARA PERU VIRTUAL STUDIO              == */
/* ==  Versión Final - Logo de Imagen + Todos los Ajustes           == */
/* =================================================================== */

:root {
    --color-fondo: #161615;
    --color-texto-principal: #EAEAEA;
    --color-texto-secundario: #A0A0A0;
    --font-principal: 'General Sans', sans-serif;
    --overlay-opacity: 0.3; /* Controla oscuridad de fondos */
}

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');

.alfa-slab-one-regular {
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    background-color: var(--color-fondo);
    color: var(--color-texto-principal);
    font-weight: 500;
    line-height: 1.5;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ======================= Header ======================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 80px;
    z-index: 1000;
    background-color: transparent;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Ocultamos el botón de hamburguesa en el escritorio */
.hamburger-menu-btn {
    display: none;
}

.header-nav-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    position: relative;
    z-index: 1002;
}

.logo img {
    height: 130px;
    width: auto;
    display: block;
    padding-top:15px;
    opacity: .8;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    letter-spacing: .07em;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: #d6d6d5;
    letter-spacing: .07em;
}

.main-nav a:hover {
    color: var(--color-texto-principal);
}

.action-button {
    background-color: #e5a154;
    opacity:.8;
    color: #fff;
    padding: 9px 25px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.action-button:hover {
    background-color: #fff;
    color: #000;
}

/* ======================= Estructura Scroll & Paneles ======================= */
#scroll-container { height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; }
.panel { height: 100vh; width: 100%; scroll-snap-align: start; position: relative; display: flex; overflow: hidden; }
.panel-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; opacity: var(--overlay-opacity); z-index: 0; }
.panel-background-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: -1; }


/* ======================= Layouts de Paneles ======================= */
.hero-panel {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    padding: 40px 70px;
    opacity: 0.9;
}

.hero-main-content {
    position: relative;
    z-index: 1;
    max-width: 50%;
}

.hero-title {
    font-size: 60px;
    line-height: 1;
    letter-spacing: -0.02em;
    color:rgb(240, 239, 239);
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 2vw, 1.1rem);
    color: rgb(199, 201, 193);
    max-width: 700px;
    margin-top: 10px;
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
}

.hero-partners {
    width: auto;
    padding-bottom: 0;
    text-align: right;
    position: relative;
    z-index: 1;
}

.hero-partners p {
    font-size: .8rem;
    color: rgb(219, 219, 218);
    margin-bottom: 15px;
    letter-spacing: 0.08em;
}

.partner-logos {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
    opacity: 0.8;
}

.partner-logos img {
    max-height: 45px;
    width: auto;
}

/* ======================= Slideshow para fondo de panel ======================= */
.slideshow-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1; /* Lo coloca por debajo de todo */
    overflow: hidden; 
}

/* Solo se anima la opacidad, sin zoom ni pan */
.slideshow-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: imageSlideshow 12s infinite ease-in-out;
}

/* Retrasa la animación de cada foto */
.slideshow-img:nth-child(2) {
    animation-delay: 4s;
}

.slideshow-img:nth-child(3) {
    animation-delay: 8s;
}

/* ======================= Definición de la animación de solo fade ======================= */
@keyframes imageSlideshow {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1; /* La imagen aparece */
    }
    30% {
        opacity: 1; /* Se mantiene visible */
    }
    40% {
        opacity: 0; /* La imagen se desvanece */
    }
    100% {
        opacity: 0; /* Permanece invisible hasta el próximo ciclo */
    }
}

/* ======================= Paneles de Proyectos ======================= */

.project-panel { 
    background-size: cover; 
    background-position: center; 
    justify-content: flex-start; 
    align-items: flex-end; 
    padding: 60px; 
}

.panel-content { 
    position: relative; z-index: 1; 
    max-width: 50%; 
    text-align: left; 
}

.project-tag { 
    font-size: 1rem; 
    font-weight: 600; 
    letter-spacing: 0.08em; 
    color: var(--color-texto-secundario); 
    margin-bottom: 5px; 
}

.project-title { 
    font-size: 60px; 
    font-weight: 600; 
    margin-bottom: 10px; 
    line-height: 1.2; 
    letter-spacing: -0.03em; 
    color: rgb(253, 253, 245);
}

.project-description { 
    font-size: 1.3rem; 
    color:rgb(194, 193, 193); 
    letter-spacing: .02rem;
}

.project-link { 
    font-weight: 500; 
    font-size: 1.1rem; 
    line-height: 80px;
}

.footer-panel-container { flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 60px; background-color: #050505; }
.footer-cta { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.footer-cta h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; max-width: 900px; line-height: 1.2; letter-spacing: -0.03em; }
.cta-button { display: inline-block; background-color: #fff; color: #000; font-weight: 500; padding: 16px 32px; border-radius: 30px; margin-top: 40px; }
.cta-button:hover { transform: scale(1.05); background-color: #eee; }
.main-footer { width: 100%; padding-top: 40px; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.footer-links a { color: var(--color-texto-secundario); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-texto-principal); }
.footer-copyright { color: #666; font-size: 0.8rem; }


/* ======================= Animaciones ======================= */
.hero-title, .hero-subtitle, .hero-partners, .panel-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.2s;
}
.visible { opacity: 1; transform: translateY(0); }


/* ======================= Media Queries (Adaptación Móvil) ======================= */
@media (max-width: 768px) {
    .main-header { padding: 0px 20px; }
    .main-header .container {
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        position: relative;
        z-index: 1002; 
    }

    .logo img {
        height: 105px;
        width: auto;
        display: block;
        padding-top:15px;
    }

    .header-nav-group {
        display: none;
        flex-direction: column;
        justify-content: center; 
        align-items: center;
        gap: 30px;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        /* CAMBIO CLAVE: Utilizamos rgba para dar opacidad al fondo del menú. */
        background-color: rgba(10, 10, 10, 0.9);
        z-index: 999; 
        transition: right 0.4s ease-in-out;
    }

    .header-nav-group.is-open {
        right: 0;
        display: flex;
    }

    .hamburger-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-menu-btn .bar {
        width: 100%;
        height: 4px;
        background-color: var(--color-texto-principal);
        transition: all 0.3s ease;
    }
    
    .main-nav ul {
      flex-direction: column;
      text-align: center;
      gap: 30px;
      margin-top: 0; 
    }

    .header-right {
      margin-top: 0;
    }

    .project-panel {
        padding: 30px
    }

    .hero-panel {
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 30px;
        padding: 20px 25px;
    }

    .hero-main-content, .hero-partners {
        max-width: 100%;
        text-align: left;
    }

    .hero-title {
        font-size: 40px;
        line-height: 1;
        letter-spacing: -0.00em;
        color:rgb(240, 239, 239);
        font-family: "Alfa Slab One", serif;
        font-weight: 400;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 20px;
        color: rgb(199, 201, 193);
        max-width: 700px;
        margin-top: 10px;
        font-family: "Alfa Slab One", serif;
        font-weight: 400;
        text-align: center;
    }

    .partner-logos {
        justify-content: center;
        gap: 7%;
    }

    .partner-logos img {
        max-height: 32px;
        width: auto;
    }

    .hero-partners {
        vertical-align: center;
        text-align: center;
        width:100%;
    }

    .hero-partners p {
        font-size: .7rem;
        color: rgb(219, 219, 218);
        margin-bottom: 15px;
        letter-spacing: 0.08em;
        text-align: center;
    }
    .footer-cta h2 { 
        font-size: 2.5rem; 
    }

    /* ======================= Paneles de Proyectos ======================= */

    .project-panel { 
        background-size: cover; 
        background-position: center; 
        justify-content: flex-start; 
        align-items: flex-end; 
        padding: 20px; 
    }

    .panel-content { 
        position: relative; z-index: 1; 
        max-width: 100%; 
        text-align: center; 
    }

    .project-tag { 
        font-size: 15px; 
        font-weight: 600; 
        letter-spacing: 0.02em; 
        color: var(--color-texto-secundario);  
    }

    .project-title { 
        font-size: 40px; 
        font-weight: 600; 
        margin-bottom: 10px; 
        line-height: 1.2; 
        letter-spacing: -0.03em; 
    }

    .project-description { 
        font-size: 1rem; 
        color:rgb(194, 193, 193); 
        margin-bottom: 5px; 
        letter-spacing: .02rem;
}

    .project-link { 
        font-weight: 500; 
        font-size: 1.1rem;
        line-height: 60px;
}
    
}