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

    ** 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%;
}


/* =====================================================================
   Ecosistema Digital — Marca (colores del logo: navy + cian + verde)
   Navy #15397A · Navy profundo #0E2C5C · Tinta #0B1F45 · Cian #16A8C9 · Verde #39B54A
   Override del tema twenty-one (Bootstrap 4) para vestir la tienda con la marca del logo.
   ===================================================================== */
:root {
    --ed-navy: #15397A;
    --ed-navy-deep: #0E2C5C;
    --ed-ink: #0B1F45;
    --ed-cyan: #16A8C9;
    --ed-cyan-deep: #1591B5;
    --ed-green: #39B54A;
    --ed-green-deep: #2E9E3E;
}

/* Logo en el encabezado */
.navbar-brand .logo-img {
    max-height: 48px;
    width: auto;
}

/* Enlaces */
a {
    color: #15397A;
}
a:hover,
a:focus {
    color: #1591B5;
}

/* Botones primarios — degradado navy -> cian (personalidad del logo) */
.btn-primary {
    background-color: #15397A !important;
    background-image: linear-gradient(135deg, #15397A 0%, #1591B5 100%) !important;
    border-color: #15397A !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: #0E2C5C !important;
    background-image: linear-gradient(135deg, #0E2C5C 0%, #15397A 100%) !important;
    border-color: #0E2C5C !important;
    color: #fff !important;
}
.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(21, 57, 122, 0.45) !important;
}

/* Botones de éxito / verde del logo (CTAs tipo "Transferir", "Añadir") */
.btn-success {
    background-color: #39B54A !important;
    background-image: linear-gradient(135deg, #39B54A 0%, #2E9E3E 100%) !important;
    border-color: #2E9E3E !important;
    color: #fff !important;
}
.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active {
    background-color: #2E9E3E !important;
    background-image: linear-gradient(135deg, #2E9E3E 0%, #268235 100%) !important;
    border-color: #268235 !important;
    color: #fff !important;
}

/* Botones outline primarios (tarjetas del home, "Ver productos", etc.) */
.btn-outline-primary {
    color: #15397A !important;
    border-color: #15397A !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active {
    background-color: #15397A !important;
    border-color: #15397A !important;
    color: #fff !important;
}
.btn-outline-primary:focus,
.btn-outline-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(21, 57, 122, 0.35) !important;
}

/* Utilidades de color de marca */
.text-primary {
    color: #15397A !important;
}
a.text-primary:hover,
a.text-primary:focus {
    color: #1591B5 !important;
}
.text-success {
    color: #2E9E3E !important;
}
.text-info {
    color: #1591B5 !important;
}
.bg-primary {
    background-color: #15397A !important;
}
.border-primary {
    border-color: #15397A !important;
}

/* Insignias */
.badge-primary {
    background-color: #15397A;
}
.badge-info {
    background-color: #16A8C9;
}
.badge-success {
    background-color: #39B54A;
}

/* Alertas primarias */
.alert-primary {
    color: #0B1F45;
    background-color: #e7f1fb;
    border-color: #cfe4f6;
}

/* Paginación */
.page-link {
    color: #15397A;
}
.page-link:hover {
    color: #1591B5;
}
.page-item.active .page-link {
    background-color: #15397A;
    border-color: #15397A;
}

/* Listas y pestañas activas */
.list-group-item.active {
    background-color: #15397A;
    border-color: #15397A;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #15397A;
}

/* Foco de formularios con tinte de marca (cian del logo) */
.form-control:focus,
.custom-select:focus {
    border-color: #1591B5;
    box-shadow: 0 0 0 0.2rem rgba(22, 168, 201, 0.25);
}

/* Acento del logo en el pie y barras de tarjeta */
.footer {
    border-top: 3px solid #16A8C9;
}
.card-accent-midnight-blue {
    border-top-color: #15397A !important;
}
