/* =========================================
   Distribuidora La Ficha - Modern CSS
   ========================================= */

/* CSS Variables for Theming */
:root {
    /* Color Palette - Dark Premium Theme */
    --bg-main: #00000094;
    --bg-secondary: #0000009a;
    --text-main: #000000;
    --text-muted: #ffffff;

    /* Brand Colors */
    --brand-mustard: #f1be25;

    /* Primary Gradient */
    --gradient-primary: linear-gradient(135deg, #f5c430 0%, #ffe923 100%);
    --gradient-text: linear-gradient(90deg, #ffffff, var(--brand-mustard), #ffffff);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.651);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Metrics */
    --container-max: 1200px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scrollbars from shapes */
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.mt-5 {
    margin-top: 3rem;
}

/* Utility Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(229, 179, 30, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 179, 30, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: #ffdd47;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--brand-mustard);
    top: -10%;
    left: -10%;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    background: #f1e318;
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    opacity: 0.2;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes float-img {

    0%,
    300% {
        transform: translateY(50) rotate(20deg);
    }

    50% {
        transform: translateY(-60px) rotate(8deg);
    }
}

.float-animation {
    animation: float-img 7s ease-in-out infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-base);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 231, 14, 0.616);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:not(.btn):hover {
    color: var(--brand-mustard);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-badge {
    background: rgba(229, 179, 30, 0.1);
    color: var(--brand-mustard);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(229, 179, 30, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    text-align: center;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-marca-container {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

.marca-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    background-color: #ebdf3b;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.767);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-mustard);
    margin-bottom: 0.5rem;
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.295) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-card:hover h3 {
    color: var(--brand-mustard);
    transform: translateY(-5px);
}

.wholesale-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(163, 163, 163, 0.829) 0%, rgba(255, 255, 255, 0.719) 100%);
    border-left: 4px solid var(--brand-mustard);
}

/* Benefits Section */
.benefits {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.benefits-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
    color: #ffffff;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    color: #f1e318;

}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.39);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-mustard);
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 0.5rem;
    color: #000000;
}

.info-text p {
    color: var(--text-muted);
}

.info-text a {
    color: white;
}

.info-text a:hover {
    text-decoration: underline;
}

.map-container {
    padding: 0.5rem;
    border-radius: 20px;
    min-height: 350px;
}

.map-container iframe {
    border-radius: 15px;
}

/* Footer */
.footer {
    background: #ffffff;
    padding: 4rem 0 0;
    /* Removed bottom padding */
    margin: 0;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-brand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 95px;
    height: 95px;
    border-radius: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-main);
}

.social-icon:hover {
    background: var(--brand-mustard);
    color: #19ff2c;
    transform: translateY(-3px);
}

.footer-copyright {
    color: black;
    font-size: 0.9rem;
    border-top: 1px solid rgb(0, 0, 0);
    padding: 2rem 0;
    margin-bottom: 0;
    width: 100%;
}

.footer-copyright p {
    margin: 0;
    padding: 0;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        order: 2;
    }

    .hero-features,
    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: 1;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .wholesale-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.849);
        backdrop-filter: blur(16px);
        padding: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav.open {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}