:root {
    --gold: #D4AF37;
    --black: #080808;
    --cream: #f7f4de;
    --white: #ffffff;
    --grey: #f4f1ea;
    --glass: rgba(0, 0, 0, 0.88);
    --radius: 40px;
    --frame-w: 15px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--black);
    overflow-x: hidden;
}

/* SCROLLBAR LUXURY */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--black);
    border-radius: 10px;
}

/* MARCO EDITORIAL */
.site-frame .frame-bar {
    position: fixed;
    background: var(--black);
    z-index: 2000;
}

.frame-bar.top {
    top: 0;
    width: 100%;
    height: 25px;
    color: var(--cream);
    display: flex;
    align-items: center;
}

.frame-bar.left {
    left: 0;
    height: 100%;
    width: var(--frame-w);
}

.frame-bar.right {
    right: 0;
    height: 100%;
    width: var(--frame-w);
}

.marquee {
    display: flex;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
}

.marquee span {
    animation: scroll 25s linear infinite;
    padding-left: 50px;
    font-size: 9px;
    letter-spacing: 2px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* LOGO REFINADO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Espacio flexible */
    font-size: 1.7rem;
    /* Tamaño base para desktop */
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--black);
    text-transform: uppercase;
    transition: 0.5s var(--ease);
    white-space: nowrap;
    /* Evita que el texto se rompa en dos líneas */
}

/* --- TRUCO DE TRANSPARENCIA PARA EL LOGO CON FONDO VERDE --- */
.logo img {
    height: 40px;
    /* Ajuste responsivo */
    width: auto;
    object-fit: contain;

    /* --- ESTA ES LA LÓGICA CLAVE --- */
    mix-blend-mode: color-dodge;
    /* Mezcla el logo con el fondo de la intranet */
    filter: brightness(1.1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* Efecto hover opcional */
.logo:hover img {
    transform: scale(1.05);
}

.logo img {
    height: 80px;
    /* Altura base en desktop */
    width: auto;
    object-fit: contain;
    transition: 0.5s var(--ease);
    border-radius: 30px;
}

/* --- ADAPTACIÓN RESPONSIVA (Móviles y Tablets) --- */
@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        /* Reduce el texto en pantallas pequeñas */
        letter-spacing: 3px;
        /* Reduce el espaciado para que quepa mejor */
        gap: 8px;
    }

    .logo img {
        height: 30px;
        /* Imagen más pequeña en móviles */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .logo img {
        height: 25px;
    }
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--black);
    text-transform: uppercase;
    transition: 0.5s var(--ease);
}

.logo span {
    color: var(--gold);
    font-size: 0.8rem;
    vertical-align: super;
    font-weight: 400;
}

.logo:hover {
    letter-spacing: 10px;
    cursor: pointer;
}

/* HEADER */
.header {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2100;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 8px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icons {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.btn-login {
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-login:hover {
    color: var(--gold);
}

.icon-hover {
    cursor: pointer;
    transition: 0.3s;
}

.icon-hover:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* BURGER BUTTON */
.burger-btn {
    background: var(--white);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: 0.5s var(--ease);
}

.burger-btn .line {
    width: 18px;
    height: 2px;
    background: black;
    transition: 0.4s;
}

.burger-btn.active {
    transform: rotate(90deg);
    background: var(--gold);
}

.burger-btn.active .line {
    background: white;
}

/* LIBRARY NAV */
.library-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 500px;
    height: 100vh;
    background: var(--black);
    z-index: 2050;
    padding: 120px 60px;
    transition: 1s var(--ease);
}

.library-nav.active {
    right: 0;
}

.book-item {
    color: var(--cream);
    font-size: 2.8rem;
    font-weight: 800;
    text-decoration: none;
    display: block;
    margin: 15px 0;
    transform: rotateY(-35deg) translateX(50px);
    opacity: 0;
    transition: 0.8s var(--ease);
    transform-origin: left;
}

.library-nav.active .book-item {
    transform: rotateY(0) translateX(0);
    opacity: 1;
}

.book-item:hover {
    transform: translateX(35px) !important;
    color: var(--gold);
}

.book-item:nth-child(1) {
    transition-delay: 0.1s;
}

.book-item:nth-child(2) {
    transition-delay: 0.2s;
}

.book-item:nth-child(3) {
    transition-delay: 0.3s;
}

.book-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* HERO */
section {
    padding: 140px 10%;
}

.hero {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--cream);
}

.hero-content h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.85;
    margin: 25px 0;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.tag {
    color: var(--gold);
    letter-spacing: 6px;
    font-size: 0.8rem;
    font-weight: 800;
}

.btn {
    padding: 20px 45px;
    background: var(--black);
    color: var(--cream);
    text-decoration: none;
    font-weight: 800;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-size: 0.75rem;
    border: 2px solid var(--black);
    transition: 0.5s;
    display: inline-block;
}

.btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    margin-left: 10px;
}

/* CARDS LUXURY */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    transition: 0.6s var(--ease);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.img-container {
    aspect-ratio: 4/5;
    border-radius: 25px;
    overflow: hidden;
    background: var(--grey);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.5s var(--ease);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.card:hover img {
    transform: scale(1.1);
}

.info {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.2rem;
}

/* LOOKBOOK */
.look-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    height: 700px;
}

.look-box {
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.card-glass {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gold-bg {
    background: var(--gold);
    color: white;
}

.side-tag {
    writing-mode: vertical-rl;
    position: absolute;
    top: 60px;
    right: 40px;
    font-size: 0.7rem;
    letter-spacing: 5px;
    font-weight: 700;
}

/* CONTACT CARD */
.contact-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 80px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.input-group {
    display: flex;
    background: var(--grey);
    padding: 10px;
    border-radius: 60px;
    margin-top: 40px;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding-left: 30px;
    outline: none;
    font-family: inherit;
    font-weight: 600;
}

.btn-small {
    padding: 15px 35px;
}

/* CONTENEDOR */
.input-box {
    position: relative;
}

/* TEXTAREA */
.input-box textarea {
    width: 100%;
    height: 120px;
    border: none;
    background: var(--grey);
    border-radius: 20px;
    padding: 20px 15px 10px 15px;
    resize: none;
    font-family: inherit;
    outline: none;
}

/* LABEL */
.input-box label {
    position: absolute;
    left: 15px;
    top: 18px;
    color: #888;
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.3s ease;
}

/* 🔥 CUANDO ESCRIBES O HACES FOCUS */
.input-box textarea:focus+label,
.input-box textarea:valid+label {
    top: -10px;
    left: 12px;
    font-size: 0.7rem;
    color: var(--gold);
    background: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
}

/* FOOTER */
footer {
    background: var(--black);
    color: var(--cream);
    padding: 120px 10% 50px;
    border-radius: 70px 70px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left .logo {
    color: var(--cream);
}

.footer-left p {
    margin-top: 25px;
    opacity: 0.5;
    max-width: 350px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-right a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-left: 40px;
    text-transform: uppercase;
    transition: 0.3s;
}

.footer-right a:hover {
    color: var(--gold);
}

.footer-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 60px 0 30px;
}

.copy {
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 5px;
    opacity: 0.3;
}

/* REVEAL SYSTEM */
.reveal {
    opacity: 0;
    transform: translateY(100px);
    filter: blur(15px);
    transition: 2s var(--ease);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1.2s var(--ease);
}

.loader-text {
    font-weight: 800;
    letter-spacing: 20px;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .library-nav {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 50px;
        text-align: center;
        align-items: center;
    }

    .footer-right a {
        margin: 0 15px;
    }

    .look-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .look-box {
        height: 400px;
    }

    .contact-card {
        padding: 40px 20px;
    }
}

/* ===== OVERLAY MENU (FALTABA) ===== */
#menuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
    z-index: 2000;
}

#menuOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== FONDO ORGÁNICO (ANDROID STYLE) ===== */
body::before {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    filter: blur(80px);
}

body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 70%);
    bottom: -200px;
    left: -200px;
    z-index: -1;
    filter: blur(80px);
}

/* ===== HERO MÁS IMPACTANTE ===== */
.hero-content p {
    max-width: 500px;
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.8;
}

.hero-btns {
    margin-top: 30px;
}

/* ===== BOTONES MÁS PREMIUM ===== */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    top: 0;
    left: -120%;
    transition: 0.6s;
}

.btn:hover::after {
    left: 100%;
}

/* ===== CARDS MÁS ORGÁNICAS ===== */
.card {
    border-radius: 30px 60px 30px 60px;
}

.card:nth-child(even) {
    border-radius: 60px 30px 60px 30px;
}

/* ===== IMAGEN MÁS VIVA ===== */
.img-container {
    position: relative;
}

.img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
    opacity: 0;
    transition: 0.5s;
}

.card:hover .img-container::after {
    opacity: 1;
}

/* ===== TITULOS MÁS PRO ===== */
h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 40px;
}

.section-head span {
    color: var(--gold);
}

/* ===== LOOKBOOK MÁS VISUAL ===== */
.look-box {
    transition: 0.6s;
}

.look-box:hover {
    transform: scale(1.03);
}

/* ===== CONTACT MÁS MODERNO ===== */
.input-group {
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.05);
}

.input-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* ===== FOOTER MÁS SUAVE ===== */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    top: -150px;
    right: -150px;
    filter: blur(100px);
}

#bg3d {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== 3D CARD EFFECT ===== */
.about-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s ease;
}

/* profundidad interna */
.about-card * {
    transform: translateZ(20px);
}

/* sombra dinámica */
.about-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ===== ABOUT PRO SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    transition: 0.5s var(--ease);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* efecto glow suave */
.about-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 60%);
    opacity: 0;
    transition: 0.5s;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.7;
}

.about-card ul {
    padding-left: 20px;
    margin-top: 10px;
}

.about-card li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x) var(--y),
            rgba(255, 255, 255, 0.25),
            transparent 40%);
    opacity: 0;
    transition: 0.2s;
}

.about-card:hover::after {
    opacity: 1;
}

/* ===== CONTACT PRO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    transition: 0.4s var(--ease);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* efecto 3D suave */
.contact-card {
    transform-style: preserve-3d;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* brillo premium */
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.2), transparent 60%);
    opacity: 0;
    transition: 0.4s;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card h3 {
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

/* FORM */
.form-contacto textarea {
    width: 100%;
    height: 120px;
    border: none;
    background: var(--grey);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    resize: none;
    font-family: inherit;
}

/* MAPA */
/* MAPA MÁS COMPACTO */
.map-card {
    margin: 50px auto 0;
    width: 100%;
    max-width: 700px;
    height: 250px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    transition: 0.5s;
}

.map-card:hover {
    transform: scale(1.02);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TOAST PRO ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 300px;
    word-wrap: break-word;
}

/* ACTIVO */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* VARIANTES */
.toast.success {
    background: rgba(34, 197, 94, 0.9);
    border-left: 4px solid #00ff88;
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
    border-left: 4px solid #ff4d4d;
}

.toast.warning {
    border-left: 4px solid gold;
}

section {
    padding: 120px 10%;
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    width: 45%;
    height: 60vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slide 21s infinite;
}

.hero-carousel img:nth-child(1) {
    animation-delay: 0s;
}

.hero-carousel img:nth-child(2) {
    animation-delay: 3s;
}

.hero-carousel img:nth-child(3) {
    animation-delay: 6s;
}

.hero-carousel img:nth-child(4) {
    animation-delay: 9s;
}

.hero-carousel img:nth-child(5) {
    animation-delay: 12s;
}

.hero-carousel img:nth-child(6) {
    animation-delay: 15s;
}

.hero-carousel img:nth-child(7) {
    animation-delay: 18s;
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    10%,
    90% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50px);
    }
}

/* ===== GRID PRODUCTOS ===== */

.products {
    padding: 120px 10%;
}

.grid.domino {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

/* ===== CARD ===== */

.card.item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* HOVER PRO */
.card.item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== IMAGEN ===== */

.img-container {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

/* ZOOM SUAVE */
.card.item:hover img {
    transform: scale(1.1);
}

/* ===== INFO ===== */

.info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CATEGORIA */
.categoria {
    font-size: 12px;
    color: gold;
    letter-spacing: 1px;
}

/* TITULO */
.info h3 {
    font-size: 18px;
    font-weight: 600;
}

/* PRECIO */
.price {
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
}

/* BOTÓN */
.info .btn {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: gold;
    color: black;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.info .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .img-container {
        height: 200px;
    }
}

/* ===== CONTENEDOR ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px;
    perspective: 1200px;
}

/* ===== CARD GLASS GEL ===== */
.card.item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    padding: 0;

    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
    border: 10px solid rgba(255, 255, 255, 0.08);

    transition: transform .25s ease, box-shadow .25s ease;
    transform-style: preserve-3d;
}

/* ILUMINACIÓN DINÁMICA */
.card.item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
            rgba(198, 169, 107, 0.25),
            transparent 60%);
    opacity: 0;
    transition: .3s;
}

.card.item:hover::before {
    opacity: 1;
}

/* ===== EFECTO GEL ===== */
.card.item:hover {
    transform: scale(1.04);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

/* ===== IMAGEN ===== */
.img-container {
    height: 260px;
    overflow: hidden;
    transform: translateZ(40px);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.card.item:hover img {
    transform: scale(1.12);
}

/* ===== INFO ===== */
.info {
    padding: 20px;
    transform: translateZ(30px);
}

.categoria {
    font-size: 11px;
    color: #c6a96b;
    letter-spacing: 2px;
}

.info h3 {
    margin: 10px 0;
}

.price {
    color: #e6d3a3;
    margin-bottom: 15px;
}

/* ===== BOTONES ===== */
.card-actions {
    display: flex;
    gap: 10px;
}

/* BASE */
.btn-card {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all .3s ease;
    backdrop-filter: blur(10px);
}

/* FAVORITO */
.btn-fav {
    background: rgba(255, 255, 255, 0.05);
    color: #c6a96b;
}

.btn-fav:hover {
    background: #c6a96b;
    color: black;
}

/* CARRITO */
.btn-cart {
    background: linear-gradient(135deg, #c6a96b, #e6d3a3);
    color: black;
    font-weight: 600;
}

.btn-cart:hover {
    transform: scale(1.05);
}

/* VER */
.btn-view {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.btn-view:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTILO PROFESIONAL DE CARDS SIGMA --- */

.card.item {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* Elevación suave al pasar el mouse */
.card.item:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    /* Un toque dorado sutil */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(212, 175, 55, 0.1);
}

/* Efecto Zoom en la imagen */
.img-container {
    overflow: hidden;
    /* Importante para que la imagen no se salga */
}

.img-container img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
    width: 100%;
}

.card.item:hover .img-container img {
    transform: scale(1.1);
    /* Zoom elegante */
}

/* Ajuste de botones para que se sientan firmes */
.card-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-icon,
.btn-view {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover específico para el botón de "Ver más" */
.btn-view:hover {
    background-color: #d4af37;
    /* Tu color gold */
    color: #000;
    transform: scale(1.05);
}

/* Brillo sutil de fondo que sigue (opcional, solo CSS) */
.card.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
}

.card.item:hover::before {
    left: 100%;
}

/* BADGE DESCUENTO */
.badge-descuento {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d4af37;
    color: black;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* PRECIO ORIGINAL */
.precio-original {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 14px;
}

/* PRECIO OFERTA */
.precio-oferta {
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
}

#contenedorOfertas {
    opacity: 1 !important;
}

/* GRID */
.sigma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px 5%;
}

/* CARD */
.sigma-card-glass {
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.sigma-card-glass.show {
    opacity: 1;
    transform: translateY(0);
}

.card-inner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 15px;
    transition: 0.4s;
    position: relative;
}

.sigma-card-glass:hover .card-inner {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* IMG */
.image-section {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1.1;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.sigma-card-glass:hover img {
    transform: scale(1.08);
}

/* BADGE */
.tag-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d4af37;
    color: black;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
}

/* INFO */
.info-section {
    padding: 15px 5px 5px;
    text-align: center;
}

.brand-sub {
    font-size: 9px;
    letter-spacing: 3px;
    color: #aaa;
}

.info-section h3 {
    color: rgb(0, 0, 0);
    font-size: 1.1rem;
}

.price-text {
    color: #000000;
    margin: 10px 0;
}

/* BOTONES */
.button-group {
    display: flex;
    gap: 8px;
}

.btn-glass-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.btn-glass-icon:hover {
    background: #d4af37;
    color: black;
    transform: scale(1.1);
}

.btn-main-view {
    flex: 1;
    border: none;
    border-radius: 12px;
    background: black;
    color: white;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-main-view:hover {
    background: #d4af37;
    color: black;
}

.modal-detalle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

/* ACTIVO */
.modal-detalle.active {
    display: flex;
}

/* FONDO OSCURO CON BLUR */
.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
}

/* CAJA */
.modal-contenido {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);

    width: 90%;
    max-width: 500px;
    max-height: 85vh;

    border-radius: 20px;
    padding: 20px;

    overflow-y: auto;
    /* 🔥 SCROLL INTERNO */
}

/* BOTÓN CERRAR */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
}

/* IMAGEN */
.detalle-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    /* 🔥 CLAVE */
    border-radius: 15px;
    margin-bottom: 15px;
}

/* TEXTO */
.detalle-title {
    color: white;
    font-size: 22px;
    margin-bottom: 10px;
}

.detalle-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.detalle-price {
    color: #d4af37;
    font-size: 20px;
    margin-bottom: 20px;
}

/* BOTÓN */
.btn-detalle {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #d4af37;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.modal-detalle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

/* ACTIVO */
.modal-detalle.active {
    display: flex;
}

/* FONDO OSCURO CON BLUR */
.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
}

/* CAJA */
.modal-contenido {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);

    width: 90%;
    max-width: 500px;
    max-height: 85vh;

    border-radius: 20px;
    padding: 20px;

    overflow-y: auto;
    /* 🔥 SCROLL INTERNO */
}

/* BOTÓN CERRAR */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
}

/* IMAGEN */
.detalle-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    /* 🔥 CLAVE */
    border-radius: 15px;
    margin-bottom: 15px;
}

/* TEXTO */
.detalle-title {
    color: white;
    font-size: 22px;
    margin-bottom: 10px;
}

.detalle-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.detalle-price {
    color: #d4af37;
    font-size: 20px;
    margin-bottom: 20px;
}

/* BOTÓN */
.btn-detalle {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #d4af37;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

/*/* ===== MODAL GENERAL ===== */
.modal-login {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-login.active {
    display: flex;
}

/* OVERLAY */
.modal-login .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

/* CONTENIDO */
.modal-login-content {
    position: relative;
    background: #ffffff;
    color: #121212;

    width: 90%;
    max-width: 400px;

    border-radius: 20px;
    padding: 30px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);

    transform: scale(.85) translateY(40px);
    opacity: 0;
    transition: .4s cubic-bezier(.2, 1, .3, 1);
}

.modal-login.active .modal-login-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* LOGO */
.sigma-flat-logo {
    color: #D4AF37;
    text-align: center;
    font-weight: 800;
    margin-bottom: 10px;
}

.sigma-flat-sub {
    text-align: center;
    font-size: 13px;
    margin-bottom: 20px;
    opacity: .6;
}

/* INPUTS LIMPIOS */
.sigma-flat-input {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f5f5f5;
    border: 1px solid #e0e0e0;

    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
}

.sigma-flat-input input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}

/* BOTÓN */
.sigma-flat-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;

    background: #000;
    color: white;

    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.sigma-flat-btn:hover {
    background: #d4af37;
    color: black;
}

/* LINK REGISTER */
.link-register {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #d4af37;
    text-decoration: none;
}

.link-register:hover {
    text-decoration: underline;
}

/* --- BOTÓN DE SESIÓN DINÁMICO (INDEX) --- */
.user-pill {
    background: #F5F2ED;
    /* Crema claro */
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 5px 5px 5px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.user-pill:hover {
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: #D4AF37;
}

.pill-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2A2824;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pill-avatar {
    width: 32px;
    height: 32px;
    background: #2A2824;
    color: #D4AF37;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.8rem;
}

/* Botón de Login (cuando no hay sesión) */
.login-link {
    background: #D4AF37;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.login-link:hover {
    background: #2A2824;
    transform: scale(1.05);
}

/* PANEL BASE */
.panel-flotante {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 9999;
}

/* ACTIVO */
.panel-flotante.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* HEADER */
.panel-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

/* BODY */
.panel-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;
}

/* ITEM */
.item-panel {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.item-panel img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}

.item-panel h4 {
    font-size: 0.9rem;
    margin: 0;
}

.item-panel span {
    font-size: 0.8rem;
    color: #555;
}

.empty {
    text-align: center;
    color: #888;
    padding: 20px;
}
/* Layout del Footer */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Tres columnas balanceadas */
    gap: 40px;
    align-items: center;
    padding: 40px 20px;
}

/* Contenedor del QR */
.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-container {
    background: #fff; /* Fondo blanco para que el QR siempre sea legible */
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.qr-container:hover {
    transform: scale(1.05);
}

.qr-container img {
    width: 100px; /* Tamaño discreto y elegante */
    height: 100px;
    display: block;
}

.qr-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qr-text i {
    font-size: 0.9rem;
}

/* Ajustes para Redes Sociales en el footer */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alineados a la derecha */
    gap: 10px;
}

.footer-right a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
}