/* ==========================================================================
   Idearte Academy — Components (Fase 1.3 Editorial)
   ========================================================================== */

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

/* Primary (orange solid) */
.btn--primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
}

.btn--primary:hover {
    background-color: var(--color-orange-dark);
    border-color: var(--color-orange-dark);
    transform: translateY(-1px);
}

/* Outline (orange border, transparent bg — as in mockup CTA) */
.btn--outline {
    background-color: transparent;
    color: var(--color-orange);
    border: 2px solid var(--color-orange);
}

.btn--outline:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
}

/* Ghost (white border) */
.btn--ghost {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--ghost:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Legacy support */
.btn {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
}
.btn:hover {
    background-color: var(--color-orange-dark);
    border-color: var(--color-orange-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}
.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}


/* ==========================================================================
   HEADER — Editorial Responsive Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgba(13, 13, 13, 0.7); /* Base semi-transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
    padding: 0;
}

.site-header.scrolled {
    background-color: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-gray-800);
}

.header__line-top,
.header__line-bottom {
    width: 100%;
    height: 1px;
    background: transparent;
    position: relative;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: var(--space-4);
    padding: var(--space-3) var(--gutter);
    max-width: var(--container-wide);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Logo / Branding ─── */
.site-branding {
    flex-shrink: 0;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-wrapper img,
.custom-logo-link img,
.custom-logo {
    max-height: 46px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.25s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1;
}

.logo-text__brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--color-white);
    line-height: 1;
    transition: font-size 0.25s ease;
}

.logo-text__sub {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--color-orange);
    margin-top: 3px;
    line-height: 1;
    transition: font-size 0.25s ease;
}

/* ─── Main Navigation (Desktop Base) ─── */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    flex-shrink: 0;
}

.main-navigation li + li::before {
    content: '|';
    color: var(--color-gray-600);
    padding: 0 clamp(8px, 1.1vw, 16px);
    font-size: var(--text-sm);
    opacity: 0.6;
    transition: padding 0.25s ease;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    transition: color 0.25s ease;
    padding: 6px 0;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.main-navigation a:hover {
    color: var(--color-orange);
}

.mobile-nav-cta {
    display: none;
}

/* ─── Header Actions ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
    margin-left: auto;
}

/* ─── Header Cart Button & Badge ─── */
.header-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(235, 94, 40, 0.12);
    border: 1px solid rgba(235, 94, 40, 0.45);
    border-radius: 9999px;
    padding: 5px 12px;
    color: var(--color-white, #ffffff);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: all 0.25s ease;
    line-height: 1;
    cursor: pointer;
}

.header-cart-btn:hover {
    background: var(--color-orange, #eb5e28);
    color: var(--color-white, #ffffff);
    border-color: var(--color-orange, #eb5e28);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 94, 40, 0.25);
}

.header-cart-btn svg {
    stroke: var(--color-orange, #eb5e28);
    stroke-width: 2.2;
    width: 17px;
    height: 17px;
    transition: stroke 0.25s ease, transform 0.25s ease;
    display: inline-block;
    vertical-align: middle;
}

.header-cart-btn:hover svg {
    stroke: #ffffff;
    transform: scale(1.05);
}

.header-cart-count {
    color: var(--color-white, #ffffff);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid var(--color-orange);
    color: var(--color-orange);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 2px;
}

.header__cta:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

.header__cta .arrow-icon {
    transition: transform 0.25s ease;
}

.header__cta:hover .arrow-icon {
    transform: translateX(3px);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ==========================================================================
   BREAKPOINTS: LAPTOPS COMPACTAS Y TABLETS EN MODO ESCRITORIO (1024px - 1280px)
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1280px) {
    .header__inner {
        padding: 10px 16px;
        gap: 12px;
    }

    .logo-wrapper {
        gap: 8px;
    }

    .logo-wrapper img,
    .custom-logo {
        max-height: 38px;
    }

    .logo-text__brand {
        font-size: 1.18rem;
        letter-spacing: 0.05em;
    }

    .logo-text__sub {
        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .main-navigation li + li::before {
        padding: 0 6px;
        font-size: 0.75rem;
        opacity: 0.45;
    }

    .main-navigation a {
        font-size: 0.77rem;
        letter-spacing: 0.03em;
        padding: 4px 0;
    }

    .header-actions {
        gap: 8px;
    }

    .header-search-btn {
        padding: 4px;
    }

    .header-cart-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .header__cta {
        padding: 6px 12px;
        font-size: 0.75rem;
        letter-spacing: 0.04em;
    }
}

/* Pantallas intermedias (1024px - 1140px): Aún más compacto para no desbordar */
@media (min-width: 1024px) and (max-width: 1140px) {
    .header__inner {
        padding: 8px 12px;
        gap: 8px;
    }

    .logo-wrapper img,
    .custom-logo {
        max-height: 34px;
    }

    .logo-text__brand {
        font-size: 1.05rem;
    }

    .logo-text__sub {
        font-size: 0.62rem;
    }

    .main-navigation li + li::before {
        padding: 0 4px;
    }

    .main-navigation a {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .header__cta {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   MOBILE & TABLET PORTRAIT (< 1024px)
   ========================================================================== */
@media (max-width: 1023px) {
    .header__inner {
        padding: 10px var(--gutter, 16px);
    }

    .logo-wrapper img,
    .custom-logo {
        max-height: 38px;
    }

    .logo-text__brand {
        font-size: 1.2rem;
    }

    .logo-text__sub {
        font-size: 0.7rem;
    }

    .header__cta {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height, 70px);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height, 70px));
        background-color: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: var(--space-8) var(--space-6);
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 99;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: var(--space-6);
        width: 100%;
    }

    .main-navigation li + li::before {
        display: none;
    }

    .main-navigation a {
        font-size: var(--text-xl);
        padding: var(--space-2) 0;
    }

    .mobile-nav-cta {
        display: block;
        margin-top: var(--space-8);
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .btn-mobile-cta {
        display: block;
        width: 100%;
        padding: 12px 24px;
        background: var(--color-orange);
        color: var(--color-white);
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 4px;
        transition: background 0.25s ease;
    }

    .btn-mobile-cta:hover {
        background: var(--color-orange-dark);
    }
}

@media (max-width: 480px) {
    .header__inner {
        padding: 8px 12px;
    }

    .logo-wrapper {
        gap: 6px;
    }

    .logo-wrapper img,
    .custom-logo {
        max-height: 32px;
    }

    .logo-text__brand {
        font-size: 1.05rem;
    }

    .logo-text__sub {
        font-size: 0.62rem;
    }

    .header-actions {
        gap: 6px;
    }

    .header-cart-btn {
        padding: 4px 7px;
    }
}


/* ═══════════════════════════════════════
   FOOTER — Premium, Editorial
   ═══════════════════════════════════════ */
.site-footer {
    background-color: var(--color-black);
    padding-top: var(--space-20);
    padding-bottom: var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: var(--space-10);
    }
}

.footer__widget .logo-wrapper,
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-2);
}

.footer__logo .custom-logo {
    height: 44px;
    width: auto;
    display: block;
}

/* Floating WhatsApp Button (Desktop & Tablet) */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    background: #20BA5A;
    color: #FFFFFF;
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5);
}

@media (max-width: 767px) {
    .whatsapp-float {
        display: none;
    }
}

/* ─── Global Social Brand Buttons (Instagram & Facebook) ─── */
.idearte-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.idearte-social-links--center {
    justify-content: center;
}

.social-brand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 9999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.idearte-social-links--pills .social-brand-btn {
    padding: 0.62rem 1.2rem;
}

.idearte-social-links--icons .social-brand-btn {
    width: 44px;
    height: 44px;
    padding: 0;
}

.idearte-social-links--icons .social-brand-btn svg {
    width: 20px;
    height: 20px;
}

.social-brand-btn--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 6px 18px rgba(220, 39, 67, 0.30);
}

.social-brand-btn--instagram:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(220, 39, 67, 0.45);
}

.social-brand-btn--facebook {
    background: #1877F2;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.30);
}

.social-brand-btn--facebook:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.45);
}

.social-block-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.75rem;
}

.footer__motto {
    font-size: var(--text-base);
    color: var(--color-gray-400);
    line-height: 1.6;
    max-width: 400px;
    margin-top: var(--space-4);
}

.footer__title {
    font-family: var(--font-accent);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links li,
.footer__links a {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: var(--text-sm);
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__social {
    display: flex;
    gap: var(--space-4);
}

.footer__social a {
    color: var(--color-gray-300);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.3s ease;
}

.footer__social a:hover {
    color: var(--color-primary);
}

.footer__line {
    height: 1px;
    background-color: var(--color-gray-800);
    margin-bottom: var(--space-8);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    color: var(--color-gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: var(--color-primary);
}

.header-search-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.header-search-btn:hover {
    color: var(--color-orange, #ff5722);
    transform: scale(1.1);
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   MOBILE BOTTOM DOCK BAR (IMMERSIVE MOBILE NAVIGATION & FAST ACTIONS)
   ========================================================================== */
.mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9998;
    background: rgba(10, 12, 17, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.7);
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
    user-select: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 1024px) {
    .mobile-dock {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    body {
        padding-bottom: calc(72px + max(8px, env(safe-area-inset-bottom, 0px))) !important;
    }
}

.mobile-dock__container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 6px 6px 2px 6px;
    position: relative;
}

.mobile-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, transform 0.15s ease;
}

.mobile-dock__item:active {
    transform: scale(0.92);
}

.mobile-dock__item.is-active {
    color: var(--color-orange, #F26A21);
}

.mobile-dock__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.mobile-dock__icon-wrap svg {
    stroke-width: 2;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

.mobile-dock__item.is-active .mobile-dock__icon-wrap svg {
    stroke: var(--color-orange, #F26A21);
    transform: translateY(-1px);
}

.mobile-dock__indicator {
    display: none;
    position: absolute;
    bottom: -3px;
    width: 4px;
    height: 4px;
    background: var(--color-orange, #F26A21);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-orange, #F26A21);
}

.mobile-dock__item.is-active .mobile-dock__indicator {
    display: block;
}

.mobile-dock__badge {
    position: absolute;
    top: -3px;
    right: -7px;
    background: var(--color-orange, #F26A21);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-dock__label {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.mobile-dock__item.is-active .mobile-dock__label {
    color: var(--color-orange, #F26A21);
    font-weight: 700;
}

/* ─── WhatsApp Center Hero Button ─── */
.mobile-dock__hero-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-dock__hero-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.mobile-dock__hero-btn:active {
    transform: scale(0.92);
}

.mobile-dock__hero-circle {
    width: 52px;
    height: 52px;
    margin-top: -24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #28D266 0%, #1C9F4E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 2.5px solid #0A0C11;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-dock__hero-circle svg {
    width: 26px;
    height: 26px;
    fill: #FFFFFF;
}

.mobile-dock__hero-pulse {
    position: absolute;
    width: 52px;
    height: 52px;
    top: -24px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    animation: waDockPulse 2.8s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes waDockPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

.mobile-dock__hero-label {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    color: #25D366;
    letter-spacing: 0.04em;
    margin-top: 3px;
    line-height: 1;
    text-transform: uppercase;
}

