

/* ==========================
    CONFIGURACIÓN GENERAL
========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #050505;
    color: #f5f5f5;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================
   ANIMACIÓN DE SCROLL CINEMATOGRÁFICO
========================== */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    filter: blur(10px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@keyframes cineSlowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* ==========================
            NAVBAR
========================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.navbar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    will-change: transform, filter;
}

.logo img {
    width: 150px;
    height: auto;
    object-fit: contain;
    transition: filter 0.4s ease;
}

.logo:hover {
    transform: scale(1.06);
}

.logo:hover img {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.menu li {
    position: relative;
    padding: 10px 15px;
}

.menu a {
    position: relative;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.4s ease;
    z-index: 2;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 1.5px;
    background: #ffffff;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.menu li:hover a::after {
    width: 100%;
}

.menu a:hover {
    color: #ffffff;
}

.icons {
    display: flex;
    gap: 25px;
    font-size: 20px;
}

.icons span {
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    will-change: transform;
}

.icons span:hover {
    transform: translateY(-3px) scale(1.1);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ==========================
    SECCIÓN DE HISTORIA (HERO)
========================== */
.history-page {
    width: 100%;
}

.history-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(40%) contrast(1.2);
    animation: cineSlowZoom 25s linear infinite alternate; 
    will-change: transform;
}

.history-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.history-overlay h1 {
    font-size: clamp(40px, 8vw, 90px);
    letter-spacing: 15px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #666666 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
}

.history-overlay p {
    font-size: clamp(12px, 1.5vw, 16px);
    letter-spacing: 6px;
    color: #aaaaaa;
    text-transform: uppercase;
}

/* ==========================
    CONTENIDO DE HISTORIA
========================== */
.history-content {
    max-width: 1400px;
    margin: 120px auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.history-text h2 {
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: 10px;
    margin-bottom: 35px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
}

.history-text p {
    font-size: 16px;
    color: #888888;
    line-height: 1.9;
    margin-bottom: 25px;
    font-weight: 300;
}

.history-image {
    position: relative;
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.history-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    will-change: transform, filter;
}

.history-image:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* ==========================
    SECCIÓN INSTAGRAM
========================== */
.instagram-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 100px 0;
    background: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ig-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.ig-header h2 {
    font-size: clamp(20px, 2.5vw, 30px);
    letter-spacing: 8px;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ig-header p {
    font-size: 12px;
    letter-spacing: 4px;
    color: #666666;
    text-transform: uppercase;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
}

.ig-post {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
    filter: brightness(0.8);
    will-change: transform, filter;
}

.ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.5s ease;
    will-change: opacity;
}

.ig-overlay span {
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 20px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ig-post:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.ig-post:hover .ig-overlay {
    opacity: 1;
}

.ig-overlay span:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* ==========================
            FOOTER
========================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 70px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer-column {
    min-width: 200px;
}

.footer-column h3,
.footer-column h4 {
    font-size: 14px;
    letter-spacing: 5px;
    margin-bottom: 25px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a,
.footer-column p {
    color: #777777;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a:hover,
.footer-column p:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.copyright {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    color: #555555;
    font-size: 12px;
    letter-spacing: 2px;
}

/* ==========================
   MENÚ HAMBURGUESA Y MOBILE
========================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {
    .history-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        margin: 80px auto;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 0 25px; }
    .hamburger { display: flex; }
    .icons { display: none; }

    .menu {
        position: absolute;
        top: 90px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .menu.active { left: 0; }
    
    .history-hero { height: 60vh; }
    .instagram-section { padding: 60px 0; }

    footer { padding: 50px 20px 30px; }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================
   BOTÓN FLOTANTE WHATSAPP
========================== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #111111;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* Opcional: Ajuste para pantallas móviles */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-btn svg {
        width: 25px;
        height: 25px;
    }
}