@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Inter:wght@300;400;500&display=swap');

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

body {
    background-color: #050505;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

body.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: #050505;
}
body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Header & Nav Glassmorphism */
header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.titulo-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    text-align: left;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #a0a0a0;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover, nav ul li a.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #f0f0f0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Sections */
section {
    padding: 60px 5%;
}

h2, h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-top: 20px;
}

.men-category {
    margin-top: 60px;
    margin-bottom: 40px;
}

/* Magazine / Hero */
.papermagazine {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.papermagazine img {
    width: 100%;
    max-width: 1200px;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: brightness(0.8) grayscale(20%);
}

.papermagazine img:hover {
    transform: scale(1.02);
    filter: brightness(1) grayscale(0%);
}

/* Products Grid */
main {
    padding: 40px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Override for non-product pages */
main.text-page {
    display: block;
    text-align: center;
}

main > h1, main > h2 {
    width: 100%;
}

.tarjeta-producto {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.tarjeta-producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.galeria {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #111;
}

.galeria img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
}

.imagen-hover {
    opacity: 0;
}

.tarjeta-producto:hover .galeria img {
    transform: scale(1.05);
}

.galeria:hover .imagen-hover {
    opacity: 1;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.card-body p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #888;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 5%;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-redes a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-redes a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-copy {
    color: #555;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Contact & About Forms */
.contact-form, .contact-directly {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    margin: 40px auto;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.contact-form button, .contact-form input[type="submit"] {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form button:hover, .contact-form input[type="submit"]:hover {
    background: #ddd;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.contact-directly a {
    color: #fff;
    text-decoration: underline;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #aaa;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* -------------------------------------
   RESPONSIVE DESIGN (Media Queries)
-------------------------------------- */
@media screen and (max-width: 768px) {
    /* Header & Navigation */
    header {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 5%;
        align-items: center;
        justify-content: space-between;
    }

    .titulo-header h1 {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    nav {
        width: 100%;
        display: none;
        padding-bottom: 15px;
    }

    nav.active {
        display: block;
        animation: fadeIn 0.3s ease forwards;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 15px;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Typography */
    h2, h1 {
        font-size: 1.8rem;
    }

    /* Hero / Magazine */
    .papermagazine img {
        height: 300px;
    }

    /* Cards */
    .galeria {
        height: 320px;
    }

    main {
        padding: 20px 5%;
        gap: 20px;
    }

    /* Forms */
    .contact-form, .contact-directly {
        padding: 20px;
        margin: 20px auto;
    }

    /* Footer */
    footer {
        padding: 30px 5%;
        margin-top: 40px;
    }
    
    .footer-redes a {
        font-size: 0.95rem;
        margin: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .titulo-header h1 {
        font-size: 1.5rem;
    }
    
    h2, h1 {
        font-size: 1.5rem;
    }
    
    .card-body h3 {
        font-size: 1rem;
    }
    
    .card-body p {
        font-size: 0.95rem;
    }
}
/* Store Icon Styles */
.titulo-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.store-icon {
    width: 45px;
    height: auto;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .titulo-header {
        gap: 10px;
    }
    .store-icon {
        width: 32px;
    }
}

/* Chatbot Styles */
#chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #aaaaaa);
    color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.chatbot-button svg {
    width: 30px;
    height: 30px;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.chatbot-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(20px);
}

.chatbot-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
}

.chatbot-header h3 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

#chatbot-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

#chatbot-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease forwards;
    word-wrap: break-word;
}

.ai-message {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-message {
    background: linear-gradient(135deg, #e0e0e0, #ffffff);
    color: #050505;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

.chatbot-input {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

#chatbot-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 18px;
    border-radius: 25px;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

#chatbot-input-field:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

#chatbot-input-field::placeholder {
    color: #888;
}

#chatbot-send-btn {
    background: #fff;
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#chatbot-send-btn:hover {
    transform: scale(1.05);
    background: #e0e0e0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

#chatbot-send-btn svg {
    width: 20px;
    height: 20px;
    margin-left: -2px;
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

@media screen and (max-width: 480px) {
    #chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    
    .chatbot-window {
        width: calc(100vw - 40px);
        right: 0;
        bottom: 75px;
        height: 70vh;
    }
}
