
/* ==========================
    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;
}

/* ==========================
            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: all 0.4s ease;
}

.navbar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

/* LOGO AZKA CON DESTELLO CINEMATOGRÁFICO */
.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;
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    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 Y LÍNEAS MAGNÉTICAS */
.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;
}

/* ICONOS */
.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);
}

/* ==========================
       HERO CINEMATOGRÁFICO
========================== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    animation: cambiarImagenCinematica 18s infinite cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.slider img:nth-child(1) { animation-delay: 0s; }
.slider img:nth-child(2) { animation-delay: 6s; }
.slider img:nth-child(3) { animation-delay: 12s; }

/* Zoom Lento / Efecto Ken Burns */
@keyframes cambiarImagenCinematica {
    0%   { opacity: 0; transform: scale(1.15); }
    8%   { opacity: 1; }
    33%  { opacity: 1; transform: scale(1.0); }
    41%  { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.15); }
}

/* Viñeta de oscurecimiento sobre el Banner */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

/* TEXTO CENTRAL CON ENTRADA ESCALONADA Y GRADIENTE */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
}

.hero-content p {
    font-size: 13px;
    letter-spacing: 10px;
    margin-bottom: 20px;
    color: #cccccc;
    animation: cineFadeDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
    font-size: 110px;
    letter-spacing: 20px;
    margin-bottom: 35px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, #777777 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cineScaleUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}

/* ==========================================
   BOTÓN HERO / COLECCIÓN (.btn-primary)
   ========================================== */
.hero-content .btn-primary {
    display: inline-block;   /* Permite aplicar dimensiones, padding y animaciones a la etiqueta <a> */
    text-decoration: none;    /* Elimina el subrayado por defecto de los enlaces */
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    padding: 16px 55px;
    cursor: pointer;
    letter-spacing: 4px;
    font-size: 12px;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
    animation: cineFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transition: color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.hero-content .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.hero-content .btn-primary:hover::before {
    transform: translateX(100%);
}

.hero-content .btn-primary:hover {
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* ANIMACIONES KEYFRAMES (SE MANTIENEN IGUAL) */
@keyframes cineFadeDown {
    from { opacity: 0; transform: translateY(-25px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cineScaleUp {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes cineFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================
   ANIMACIONES DE REVELADO EN SCROLL
========================================== */
@keyframes scrollCineReveal {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.94);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ==========================
        PRODUCTS (SHOP)
========================== */
.products {
    padding: 140px 50px 100px;
    text-align: center;
    animation: scrollCineReveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 35%;
}

.products h2 {
    letter-spacing: 8px;
    margin-bottom: 60px;
    font-size: 28px;
    font-weight: 300;
    text-transform: uppercase;
}

.product-container {
    display: flex;
    gap: 30px;
}

/* CONTENEDOR DE CADA TARJETA */
.card {
    width: 33.333%;
    cursor: pointer;
    position: relative;
}

.card a {
    text-decoration: none;
    color: #ffffff;
    display: block;
}

/* CONTENEDOR DE LA IMAGEN (EL CUADRO ESTÉTICO) */
.card-img-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
}

/* CAPA OSCURA QUE APARECE AL HACER HOVER */
.card-img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.7s ease;
    z-index: 5;
    pointer-events: none;
}

.card:hover .card-img-container {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.95), inset 0 0 40px rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.25);
}

.card:hover .card-img-container::after {
    opacity: 1;
}

/* IMÁGENES: TRANSICIÓN TIPO PELÍCULA */
.img-front, 
.img-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 0.8s ease, 
                filter 0.8s ease;
    will-change: transform, opacity, filter;
}

.img-back {
    opacity: 0;
    transform: scale(1.15);
}

.card:hover .img-front {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(8px);
}

.card:hover .img-back {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0);
}

/* AZKA — Badge AGOTADO premium (Plan v3) */
.azka-badge-agotado {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 700;
    padding: 6px 10px;
    line-height: 1;
    pointer-events: none;
}
.azka-badge-agotado--detalle {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
}
.azka-detalle-agotado { margin-bottom: 4px; }
.card.is-agotado { opacity: 0.92; }
@media (max-width: 768px) {
    .azka-badge-agotado { font-size: 9px; top: 10px; left: 10px; padding: 5px 8px; letter-spacing: 2.5px; }
}

/* TEXTOS DEBAJO DE LA TARJETA */
.card h3 {
    margin-top: 25px;
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 400;
    text-transform: uppercase;
    color: #cccccc;
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card p {
    margin-top: 10px;
    font-size: 13px;
    color: #666666;
    letter-spacing: 1.5px;
    transition: color 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover h3 {
    color: #ffffff;
    transform: translateY(-6px);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.card:hover p {
    color: #aaaaaa;
    transform: translateY(-6px);
}

/* ==========================
   GALERÍA ESTILO INSTAGRAM
========================== */
.insta-gallery {
    padding: 100px 10%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: scrollCineReveal linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 35%;
}

.insta-gallery h2 {
    letter-spacing: 8px;
    font-size: 26px;
    font-weight: 300;
}

.insta-subtitle {
    color: #666666;
    font-size: 11px;
    letter-spacing: 4px;
    margin-top: 8px;
    margin-bottom: 50px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insta-item img,
.insta-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.4s ease;
}

.insta-overlay span {
    color: #ffffff;
    font-size: 10px;
    letter-spacing: 4px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 12px 26px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}

.insta-item:hover img,
.insta-item:hover video {
    transform: scale(1.1);
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover .insta-overlay span {
    transform: translateY(0);
}

.insta-overlay span:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ==========================
   VENTANA EMERGENTE (MODAL)
========================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 820px;
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    will-change: transform;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-media {
    width: 60%;
    aspect-ratio: 1 / 1;
    background: #000000;
    position: relative;
}

.modal-media img,
.modal-media video,
.modal-carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.modal-arrow:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-50%) scale(1.1);
}

.prev-modal { left: 15px; }
.next-modal { right: 15px; }

/* INFORMACIÓN MODAL */
.modal-info {
    width: 40%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.modal-info p {
    font-size: 13px;
    line-height: 1.7;
    color: #bbbbbb;
    letter-spacing: 1px;
}

.modal-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 3px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 5px;
    width: fit-content;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-link:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2) rotate(90deg);
}

/* ==========================
            FOOTER
========================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 70px 30px;
    animation: scrollCineReveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.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 (RESPONSIVE)
========================== */
.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;
}

/* ==========================
      DISEÑO RESPONSIVO
========================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 70px;
        letter-spacing: 10px;
    }
    .product-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .card {
        width: 45%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .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; 
    }

    .hero-content h1 {
        font-size: 48px;
        letter-spacing: 6px;
    }

    .products {
        padding: 80px 20px 50px;
    }

    .card {
        width: 100%;
    }

    .card-img-container {
        height: 480px;
    }
    
    .card:hover .card-img-container {
        transform: translateY(-8px) scale(1.01);
    }

    .insta-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        flex-direction: column;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-media, 
    .modal-info {
        width: 100%;
    }

    .modal-info {
        padding: 25px;
        gap: 20px;
    }

    footer {
        padding: 40px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
}


/* ==========================
   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;
    }
}

/* Cuenta autenticada dentro del header */
.icons .account-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 190px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #f5f5f5;
    background: rgba(255,255,255,.035);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.icons .account-nav-link:hover { color:#fff; border-color:rgba(255,255,255,.55); background:rgba(255,255,255,.09); transform:translateY(-2px); }
.account-nav-icon { font-size:15px; line-height:1; }
.account-nav-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
