/* =========================
   1. VARIABLES Y RESET
========================= */
:root {
    --yellow: #FFD200;
    --dark: #333333;
    --gray: #777777;
    --white: #ffffff;
    --bg-light: #f7f7f7;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    color: var(--dark);
    line-height: 1.6;
    padding-top: 90px;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   2. HEADER
========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 10px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
    color: var(--yellow);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: rgba(0, 0, 0, 0.78);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: 2px solid rgba(0, 0, 0, 0.65);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--yellow);
    color: #000;
    border-color: var(--yellow);
    box-shadow: 0 6px 20px rgba(255, 210, 0, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--yellow);
    background: #fff9d6;
}

/* =========================
   HEADER MÓVIL / HAMBURGUESA
========================= */
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    background: rgba(0, 0, 0, 0.82);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%);
    color: var(--white);
    padding-top: 60px;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    width: 140px;
    margin-bottom: 18px;
}

.footer-brand p,
.footer-contact p,
.footer-links ul li a,
.footer-social a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 18px;
    color: var(--yellow);
    position: relative;
}

.footer h4::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--yellow);
    border-radius: 10px;
    margin-top: 8px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--yellow);
    transform: translateX(4px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--yellow);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}
/* =========================
   GENERALES DE SECCIÓN
========================= */
.section {
    padding: 90px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-tag,
.section-badge {
    display: inline-block;
    background: rgba(255, 210, 0, 0.16);
    color: #8a6b00;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.section-heading h2,
.wholesale-hero h1,
.cta-text h2,
.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--dark);
}

.section-heading p,
.wholesale-hero p,
.cta-text p,
.contact-info p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.8;
}

/* =========================
   HERO MAYOREO
========================= */
.wholesale-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255,210,0,0.18), rgba(255,255,255,0.78)),
        url("imagenes/mayoreo-hero.webp") center/cover no-repeat;
    overflow: hidden;
}

.wholesale-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 40%),
        linear-gradient(to right, rgba(255,255,255,0.72), rgba(255,255,255,0.35));
}

.wholesale-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 70px 0;
}

.wholesale-hero h1 {
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* =========================
   INTRO
========================= */
.wholesale-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.intro-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 26px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.intro-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #fff8d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.intro-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark);
}

.intro-card p {
    color: var(--gray);
}

/* =========================
   BENEFICIOS
========================= */
.wholesale-benefits {
    background: linear-gradient(180deg, #fffdf3 0%, #ffffff 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.benefit-card {
    background: var(--white);
    border-radius: 24px;
    padding: 34px 28px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--yellow);
}

.benefit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff7c2;
    color: #8a6b00;
    font-weight: 700;
    margin-bottom: 18px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--gray);
}

/* =========================
   CLIENTES
========================= */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.client-box {
    background: var(--white);
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.client-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.client-box p {
    color: var(--gray);
    font-size: 15px;
}

/* =========================
   CATEGORÍAS
========================= */
.wholesale-categories {
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-item {
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 22px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: rgba(255,210,0,0.55);
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.category-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-item p {
    color: var(--gray);
}

/* =========================
   PROCESO
========================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.process-step {
    background: var(--white);
    border-radius: 24px;
    padding: 30px 22px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.step-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--yellow), #ffe774);
    color: #000;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(255, 210, 0, 0.28);
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--gray);
    font-size: 15px;
}

/* =========================
   CTA
========================= */
.wholesale-cta {
    padding-top: 20px;
}

.cta-box {
    background: linear-gradient(135deg, #1f1f1f 0%, #353535 100%);
    color: var(--white);
    border-radius: 32px;
    padding: 50px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: var(--shadow-medium);
}

.cta-text {
    max-width: 720px;
}

.cta-text h2,
.cta-text p {
    color: var(--white);
}

.section-tag.light {
    background: rgba(255,255,255,0.12);
    color: #fff3a6;
}

.btn-light {
    background: var(--yellow);
    color: #000;
    padding: 14px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(255, 210, 0, 0.25);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(255, 210, 0, 0.35);
}

/* =========================
   FAQ
========================= */
.faq-list {
    display: grid;
    gap: 18px;
}

.faq-item {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 24px;
    font-weight: 600;
    font-size: 17px;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--dark);
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    padding: 0 24px 22px;
    color: var(--gray);
}

/* =========================
   CONTACTO
========================= */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: stretch;
}

.contact-info,
.contact-form-mayoreo {
    background: var(--white);
    border-radius: 28px;
    padding: 34px 30px;
    box-shadow: var(--shadow-soft);
}

.contact-list {
    margin-top: 24px;
    padding-left: 20px;
    color: var(--gray);
}

.contact-list li {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 18px;
}

.contact-form-mayoreo input,
.contact-form-mayoreo textarea {
    width: 100%;
    border: 1px solid #e4e4e4;
    background: #fafafa;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 15px;
    color: var(--dark);
    outline: none;
    transition: all 0.3s ease;
}

.contact-form-mayoreo input:focus,
.contact-form-mayoreo textarea:focus {
    border-color: rgba(255,210,0,0.75);
    background: #fffef4;
    box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.12);
}

.contact-form-mayoreo textarea {
    resize: vertical;
    min-height: 140px;
}

/* =========================
   IMAGEN DE FONDO 
========================= */
.wholesale-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(125deg, rgba(255,210,0,0.18), rgba(255,255,255,0.78)),
        url("mostrador.webp") center/cover no-repeat;
    overflow: hidden;
}

/* =========================
   ANIMACIONES HERO MAYOREO
========================= */
.wholesale-hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.9s ease forwards;
}

.wholesale-hero-content .section-badge {
    animation-delay: 0.15s;
}

.wholesale-hero-content h1 {
    animation-delay: 0.35s;
}

.wholesale-hero-content p {
    animation-delay: 0.55s;
}

.wholesale-hero-content .hero-buttons {
    animation-delay: 0.75s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .wholesale-hero {
        min-height: auto;
        padding: 70px 0 50px;
        background-position: center;
    }

    .wholesale-hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
    }

    .wholesale-intro-grid,
    .benefits-grid,
    .clients-grid,
    .categories-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .wholesale-hero h1,
    .cta-text h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    .cta-box {
        padding: 36px 24px;
        border-radius: 24px;
    }

    .contact-info,
    .contact-form-mayoreo {
        padding: 28px 22px;
    }

    .faq-item summary {
        padding-right: 54px;
    }
}

@media (max-width: 480px) {
    .section-tag,
    .section-badge {
        font-size: 12px;
        padding: 7px 14px;
    }

    .section-heading p,
    .wholesale-hero p,
    .cta-text p,
    .contact-info p {
        font-size: 15px;
    }

    .intro-card,
    .benefit-card,
    .client-box,
    .category-item,
    .process-step {
        border-radius: 20px;
    }
}
/* =========================
   TOAST NOTIFICATION
========================= */
.mensaje-exito {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: auto;
    max-width: 380px;
    width: auto;
    background: #2ecc71;
    color: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s ease;
    z-index: 9999;
    word-break: break-word;
}

.mensaje-exito.mostrar {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mensaje-exito {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        width: auto;
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 12px;
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    .mensaje-exito {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
        font-size: 13px;
    }
}
/* =========================
   HEADER / MENU MÓVIL
========================= */
@media (max-width: 991px) {
    body {
        padding-top: 82px;
    }

    .header {
        padding: 8px 0;
    }

    .nav {
        height: 62px;
    }

    .logo img {
        height: 48px;
    }

    .menu {
        position: fixed;
        top: 82px;
        right: 16px;
        left: 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-radius: 20px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
        padding: 18px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu a {
        width: 100%;
        text-align: center;
        font-size: 16px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .menu a:hover {
        background: #fff8d1;
        transform: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 78px;
    }

    .container {
        width: min(92%, 100%);
    }

    .nav {
        height: 58px;
    }

    .logo img {
        height: 42px;
    }

    .menu {
        top: 76px;
        left: 12px;
        right: 12px;
        padding: 16px;
        gap: 10px;
    }

    .menu a {
        font-size: 15px;
        padding: 12px;
    }
}
/* =========================
   FOOTER RESPONSIVE
========================= */
@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .footer {
        padding-top: 45px;
        margin-top: 50px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .footer h4::after {
        margin: 8px auto 0;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-bottom p {
        font-size: 12px;
        line-height: 1.6;
        padding: 0 10px;
    }
}