/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Cart
 *
 * This block allows you to customize theme colors and styles for the entire Nexus Cart template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

html {
    font-size: 14px;
}

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;

    /* Cabecera / pie corporativos (plantilla personalizada Twenty-One) */
    --corp-ink: #0b1220;
    --corp-ink-muted: #334155;
    --corp-surface: #ffffff;
    --corp-surface-subtle: #f1f5f9;
    --corp-border: #e2e8f0;
    --corp-accent: #0c4a6e;
    --corp-accent-hover: #075985;
    --corp-topbar-bg: #0b1220;
    --corp-topbar-fg: rgba(255, 255, 255, 0.88);
    --corp-footer-bg: #0b1220;
    --corp-footer-fg: rgba(255, 255, 255, 0.82);
    --corp-footer-muted: rgba(255, 255, 255, 0.55);
    --corp-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 12px 40px -24px rgba(15, 23, 42, 0.25);
}

/* -------------------------------------------------------------------------
   Cabecera corporativa
   ------------------------------------------------------------------------- */

.site-body.primary-bg-color {
    background-color: var(--corp-surface-subtle);
}

header.header.site-header {
    background-color: var(--corp-surface);
    box-shadow: var(--corp-shadow);
    position: relative;
    z-index: 1030;
}

header.header.site-header .topbar.site-header__topbar {
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, var(--corp-topbar-bg) 0%, #132337 50%, var(--corp-topbar-bg) 100%);
    color: var(--corp-topbar-fg);
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__topbar-inner {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.site-header__notify-btn {
    color: var(--corp-topbar-fg) !important;
    border-radius: 0.375rem;
    padding: 0.35rem 0.65rem;
    align-items: center;
    gap: 0.35rem;
    display: inline-flex;
}

.site-header__notify-btn:hover,
.site-header__notify-btn:focus {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.site-header__notify-count {
    font-weight: 600;
    min-width: 1.25rem;
    text-align: center;
}

header.header.site-header .topbar .active-client .input-group-text {
    color: var(--corp-topbar-fg);
    opacity: 0.75;
}

header.header.site-header .topbar .active-client .btn {
    color: var(--corp-topbar-fg);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.06);
}

header.header.site-header .topbar .active-client .btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

header.header.site-header .topbar .btn.btn-active-client span {
    border-bottom-color: rgba(255, 255, 255, 0.45);
}

.site-header__surface {
    background-color: var(--corp-surface);
    border-bottom: 1px solid var(--corp-border);
}

.site-header__brand-bar {
    gap: 0.75rem;
}

.site-header__brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--corp-ink);
    letter-spacing: -0.02em;
}

header.header .site-header__logo {
    max-height: 52px;
    width: auto;
    max-width: min(400px, 58vw);
}

@media (min-width: 992px) {
    header.header .site-header__logo {
        max-height: 56px;
    }
}

.site-header__search-group {
    border: 1px solid var(--corp-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: var(--corp-surface-subtle);
}

.site-header__search-group:focus-within {
    border-color: var(--corp-accent);
    box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.12);
}

.site-header__search-submit {
    background: transparent !important;
    color: var(--corp-ink-muted) !important;
}

.site-header__search-input {
    background: var(--corp-surface) !important;
    border: 0 !important;
    min-height: 2.5rem;
}

.site-header__toolbar .nav-link.site-header__cart {
    border: 1px solid var(--corp-border);
    background: var(--corp-surface);
    color: var(--corp-ink) !important;
    border-radius: 0.5rem;
    padding: 0.5rem 0.85rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.site-header__toolbar .nav-link.site-header__cart:hover {
    border-color: var(--corp-accent);
    color: var(--corp-accent) !important;
    background: rgba(12, 74, 110, 0.04);
}

.site-header__cart-badge {
    position: static !important;
    opacity: 1 !important;
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem !important;
    border-radius: 0.35rem !important;
    background-color: var(--corp-accent) !important;
}

.site-header__menu-toggle {
    color: var(--corp-ink) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
}

.site-header__menu-toggle:hover {
    background: var(--corp-surface-subtle) !important;
}

header.header .main-navbar-wrapper.site-header__nav-bar {
    background: var(--corp-surface-subtle);
    border-bottom: 1px solid var(--corp-border);
    padding: 0;
}

header.header .main-navbar-wrapper .navbar-collapse.site-header__nav-collapse {
    padding: 0.5rem 0 0.75rem;
}

@media (min-width: 1200px) {
    header.header .main-navbar-wrapper .navbar-collapse.site-header__nav-collapse {
        padding: 0;
    }
}

header.header .main-navbar-wrapper .navbar-nav a {
    color: var(--corp-ink);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem !important;
}

header.header .main-navbar-wrapper .navbar-nav > li > a:hover,
header.header .main-navbar-wrapper .navbar-nav > li > a:focus {
    color: var(--corp-accent-hover);
    background-color: rgba(12, 74, 110, 0.06);
}

header.header .main-navbar-wrapper .dropdown-menu {
    border: 1px solid var(--corp-border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px -12px rgba(15, 23, 42, 0.2);
    padding: 0.35rem 0;
}

header.header .main-navbar-wrapper .dropdown-item {
    font-size: 0.9rem;
}

header.header .main-navbar-wrapper .dropdown-item:hover,
header.header .main-navbar-wrapper .dropdown-item:focus {
    background-color: var(--corp-surface-subtle);
}

.letter-spacing {
    letter-spacing: 0.06em;
}

/* Migas de pan */
.master-breadcrumb.site-breadcrumb {
    background: linear-gradient(180deg, #e8eef5 0%, #dfe8f2 100%);
    border-bottom: 1px solid var(--corp-border);
}

.master-breadcrumb.site-breadcrumb .breadcrumb {
    padding: 0.65rem 0;
    font-size: 0.8125rem;
}

/* -------------------------------------------------------------------------
   Pie corporativo
   ------------------------------------------------------------------------- */

footer.footer.site-footer {
    margin: 0;
    padding: 3rem 0 2.5rem;
    background: linear-gradient(165deg, #0b1220 0%, #0f1f33 55%, #0b1220 100%);
    color: var(--corp-footer-fg);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__heading {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.site-footer__brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

footer.footer.site-footer .site-footer__logo {
    max-height: 48px;
    width: auto;
    max-width: 220px;
}

footer.footer.site-footer .site-footer__brand-link:hover .site-footer__brand-name {
    color: #fff;
    opacity: 0.92;
}

.site-footer__nav .nav-link.site-footer__link {
    color: var(--corp-footer-fg);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    transition: color 0.15s ease;
}

.site-footer__nav .nav-link.site-footer__link:hover {
    color: #fff;
}

.site-footer__social .btn {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-footer__social .btn:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.site-footer__locale-btn {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem !important;
    line-height: 1.5;
}

.site-footer__locale-btn:hover {
    background-color: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.site-footer__bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copyright {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--corp-footer-muted);
}

@media (min-width: 768px) {
    .site-footer__copyright {
        text-align: left;
    }
}
