@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto-VariableFont_wdth\,wght.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
}


@font-face {
  font-family: 'RobotoItalic';
  src: url('fonts/Roboto-Italic-VariableFont_wdth\,wght.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
}



:root {
  --ades-background: white;
  --ades-white: #FFF;
  --ades-siena: #c65911;
  --ades-siena-light: #f8cbad;
  --ades-cell-dark: #f8cbad;
  --ades-cell-light: #fce4d6;
  --ades-dark-grey: #69696d;
  --ades-text: #444444;
}


/* ==========================================================================
   TEMA PERSONALIZADO: TERRACOTA & MELOCOTÓN
   Sustituir todo el bloque :root y [data-bs-theme=dark] original.
   ========================================================================== */

:root,
[data-bs-theme=light] {
  /* --- 1. COLORES BASE (HEX) --- */
  --tblr-blue: #c65911;
  /* Reemplazado por Terracota */
  --tblr-indigo: #9a3412;
  /* Reemplazado por Marrón Rojizo */
  --tblr-purple: #a64a0e;
  /* Reemplazado por Siena */
  --tblr-pink: #d6336c;
  /* Mantenido (o cambiar si deseas) */
  --tblr-red: #d63939;
  --tblr-orange: #f76707;
  --tblr-yellow: #f59f00;
  --tblr-green: #2fb344;
  --tblr-teal: #0ca678;
  --tblr-cyan: #17a2b8;
  --tblr-black: #000000;
  --tblr-white: #ffffff;

  /* --- 2. ESCALA DE GRISES CÁLIDOS (Tierra/Arena) --- */
  --tblr-gray: #8d6850;
  --tblr-gray-dark: #1d150f;
  --tblr-gray-100: #f5f0ed;
  /* Fondos sutiles */
  --tblr-gray-200: #eee1d9;
  /* Bordes */
  --tblr-gray-300: #d8c4b6;
  --tblr-gray-400: #bfa594;
  --tblr-gray-500: #a68672;
  --tblr-gray-600: #8d6850;
  --tblr-gray-700: #5c4335;
  --tblr-gray-800: #3a2a1e;
  /* Texto principal */
  --tblr-gray-900: #1d150f;

  /* --- 3. COLORES SEMÁNTICOS --- */
  --tblr-primary: #c65911;
  /* Terracota */
  --tblr-secondary: #f8cbad;
  /* Melocotón */
  --tblr-success: #2fb344;
  --tblr-info: #d97706;
  /* Ámbar (Info cálido) */
  --tblr-warning: #d97706;
  --tblr-danger: #d63939;
  --tblr-light: #faf8f6;
  /* Blanco Hueso */
  --tblr-dark: #1d150f;
  --tblr-muted: #8d6850;
  --tblr-azure: #d97706;
  /* Reemplazado por Ámbar */

  /* --- 4. VARIABLES RGB (Calculadas para coincidir con HEX) --- */
  /* Tabler NECESITA estos números para calcular transparencias (sombras, foco, etc) */
  --tblr-primary-rgb: 198, 89, 17;
  /* #c65911 */
  --tblr-secondary-rgb: 248, 203, 173;
  /* #f8cbad */
  --tblr-info-rgb: 217, 119, 6;
  /* #d97706 */
  --tblr-success-rgb: 47, 179, 68;
  --tblr-warning-rgb: 247, 103, 7;
  --tblr-danger-rgb: 214, 57, 57;
  --tblr-light-rgb: 250, 248, 246;
  /* #faf8f6 */
  --tblr-dark-rgb: 29, 21, 15;
  --tblr-muted-rgb: 141, 104, 80;
  --tblr-blue-rgb: 198, 89, 17;
  /* Anulado azul */
  --tblr-azure-rgb: 217, 119, 6;
  /* Anulado azure */
  --tblr-indigo-rgb: 154, 52, 18;

  /* --- 5. FUENTES Y CUERPO --- */
  --tblr-font-sans-serif: -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
  --tblr-font-monospace: Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  --tblr-body-font-family: var(--tblr-font-sans-serif);
  --tblr-body-font-size: 0.875rem;
  --tblr-body-font-weight: 400;
  --tblr-body-line-height: 1.4285714286;
  --tblr-body-color: #3a2a1e;
  /* Texto Marrón Oscuro */
  --tblr-body-color-rgb: 58, 42, 30;
  --tblr-body-bg: #faf8f6;
  /* Fondo Crema */
  --tblr-body-bg-rgb: 250, 248, 246;

  --tblr-emphasis-color: #1d150f;
  --tblr-emphasis-color-rgb: 29, 21, 15;
  --tblr-secondary-color: rgba(58, 42, 30, 0.75);
  --tblr-secondary-bg: #eee1d9;
  --tblr-tertiary-color: rgba(58, 42, 30, 0.5);
  --tblr-tertiary-bg: #f5f0ed;

  /* --- 6. ENLACES (Sin azul) --- */
  --tblr-link-color: #c65911;
  --tblr-link-color-rgb: 198, 89, 17;
  /* CORREGIDO: Ya no es azul */
  --tblr-link-hover-color: #a64a0e;
  --tblr-link-hover-color-rgb: 166, 74, 14;
  --tblr-link-decoration: none;
  --tblr-link-hover-decoration: underline;


  /* --- 7. BORDES Y COMPONENTES --- */
  --tblr-border-width: 1px;
  --tblr-border-style: solid;
  --tblr-border-color: #eee1d9;
  --tblr-border-color-translucent: rgba(77, 35, 7, 0.1);
  --tblr-border-radius: 4px;
  --tblr-border-radius-sm: 2px;
  --tblr-border-radius-lg: 8px;
  --tblr-border-radius-xl: 1rem;

  /* Sombras ajustadas a tono tierra */
  --tblr-box-shadow: rgba(58, 42, 30, 0.04) 0 2px 4px 0;
  --tblr-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --tblr-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --tblr-box-shadow-input: 0 1px 1px rgba(58, 42, 30, 0.06);

  /* Foco y selección */
  --tblr-focus-ring-color: rgba(198, 89, 17, 0.25);
  --tblr-focus-ring-width: 0.25rem;
  --tblr-focus-ring-opacity: 0.25;

  /* --- 8. ÉNFASIS Y ALERTAS --- */
  --tblr-primary-text-emphasis: #76350a;
  --tblr-secondary-text-emphasis: #4d2307;
  --tblr-info-text-emphasis: #92400e;

  --tblr-primary-bg-subtle: #fbeee6;
  --tblr-secondary-bg-subtle: #fef8f4;
  --tblr-info-bg-subtle: #fffbeb;

  --tblr-primary-border-subtle: #edcfbd;
  --tblr-secondary-border-subtle: #fbe5d6;
  --tblr-info-border-subtle: #fde68a;

  --tblr-modal-footer-bg: #faf8f6;
}

[data-bs-theme=dark],
body[data-bs-theme=dark] [data-bs-theme=light] {
  color-scheme: dark;
  --tblr-body-color: #dce1e7;
  --tblr-body-color-rgb: 220, 225, 231;
  --tblr-body-bg: #1d150f;
  /* Marrón muy oscuro */
  --tblr-body-bg-rgb: 29, 21, 15;

  --tblr-emphasis-color: #ffffff;
  --tblr-emphasis-color-rgb: 255, 255, 255;

  --tblr-secondary-color: rgba(220, 225, 231, 0.75);
  --tblr-secondary-bg: #2a1f16;
  --tblr-tertiary-color: rgba(220, 225, 231, 0.5);
  --tblr-tertiary-bg: #35281d;

  --tblr-primary: #ec6b15;
  /* Terracota brillante para modo oscuro */
  --tblr-primary-rgb: 236, 107, 21;

  --tblr-link-color: #ec6b15;
  --tblr-link-hover-color: #f8cbad;
  --tblr-link-color-rgb: 236, 107, 21;

  --tblr-border-color: #4a382b;
  --tblr-border-color-translucent: rgba(198, 89, 17, 0.14);

  /* Alertas oscuras */
  --tblr-primary-text-emphasis: #fbd9c4;
  --tblr-primary-bg-subtle: #2d1404;
  --tblr-primary-border-subtle: #632d09;

  --tblr-bg-surface-tertiary: #faf8f6;
}

/* ==========================================================================
   FORZADO DE COMPONENTES
   Añade esto justo debajo del bloque anterior para asegurar el cambio
   ========================================================================== */

/* Color de texto contrastado para botones secundarios (Melocotón) */

.btn-outline-dark {
  --tblr-btn-color: #444;
  --tblr-btn-bg: transparent;
  --tblr-btn-border-color: #444;
  --tblr-btn-hover-color: white;
  --tblr-btn-hover-border-color: transparent;
  --tblr-btn-hover-bg: #444;
  --tblr-btn-active-color: white;
  --tblr-btn-active-bg: #444;
  --tblr-btn-disabled-color: #444;
  --tblr-btn-disabled-border-color: #444;
}

.btn-warning {
  --tblr-btn-border-color: transparent;
  --tblr-btn-hover-border-color: transparent;
  --tblr-btn-active-border-color: transparent;
  --tblr-btn-color: var(--tblr-warning-fg);
  --tblr-btn-bg: var(--tblr-warning);
  --tblr-btn-hover-color: var(--tblr-warning-fg);
  --tblr-btn-hover-bg: rgba(var(--tblr-warning-rgb), .8);
  --tblr-btn-active-color: var(--tblr-warning-fg);
  --tblr-btn-active-bg: rgba(var(--tblr-warning-rgb), .8);
  --tblr-btn-disabled-bg: var(--tblr-warning);
  --tblr-btn-disabled-color: var(--tblr-warning-fg);
  --tblr-btn-box-shadow: var(--tblr-box-shadow-input);
}

.btn-warning {
  --tblr-btn-border-color: transparent;
  --tblr-btn-hover-border-color: transparent;
  --tblr-btn-active-border-color: transparent;
  --tblr-btn-color: var(--tblr-warning-fg);
  --tblr-btn-bg: var(--tblr-warning);
  --tblr-btn-hover-color: var(--tblr-warning-fg);
  --tblr-btn-hover-bg: rgba(var(--tblr-warning-rgb), .8);
  --tblr-btn-active-color: var(--tblr-warning-fg);
  --tblr-btn-active-bg: rgba(var(--tblr-warning-rgb), .8);
  --tblr-btn-disabled-bg: var(--tblr-warning);
  --tblr-btn-disabled-color: var(--tblr-warning-fg);
  --tblr-btn-box-shadow: var(--tblr-box-shadow-input);
}

.modal-footer {
  background-color: #faf8f6 !important;
}

.markdown>table thead th,
.table thead th {
  background-color: #dbd7d361 !important;
}

.markdown>table thead th,
.table thead th {
  color: #444;
}

.btn-secondary,
.btn-secondary:hover {
  color: #4d2307 !important;
}

/* Forzar botones Primary a Terracota */
.btn-primary {
  background-color: var(--tblr-primary) !important;
  border-color: var(--tblr-primary) !important;
}

/* Eliminar azul de checkboxes */
.form-check-input:checked {
  background-color: var(--tblr-primary) !important;
  border-color: var(--tblr-primary) !important;
}

/* Selección de texto */
::selection {
  background-color: rgba(198, 89, 17, 0.2) !important;
  color: inherit;
}

.ades_icon::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 4px;
  vertical-align: middle;
}

.ades_protein::before {
  background-image: url('../images/nutrition/protein.png');
}

.ades_glucose::before {
  background-image: url('../images/nutrition/glucose.png');
}

.ades_carbo::before {
  background-image: url('../images/nutrition/carbohydrates.png');
}

.ades_fiber::before {
  background-image: url('../images/nutrition/fiber.png');
}

.ades_lipids::before {
  background-image: url('../images/nutrition/lipids.png');
}

.ades_sodium::before {
  background-image: url('../images/nutrition/sodium.png');
}

.ades_kcal::before {
  background-image: url('../images/nutrition/calories.png');
}



body {
  font-family: 'Roboto';
  font-size: 15px;
  font-weight: 400;
  color: var(--ades-text);
}

.logo {
  width: 150px;
  height: auto;
}

.containerLogin {
  width: 100%;
}

.bodyBackground {
  padding-bottom: 20px;
}

@media screen and (min-width: 800px) {
  .containerLogin {
    width: 500px;
    margin: 0 auto;
  }

}

.eyeSvg {
  width: 15px;
  height: 15px;
  position: absolute;
  right: 14px;
  top: 14px;
}

.eyeDnone {
  display: none;
}

.form-ades>input.just-validate-error-field,
.form-ades>select.just-validate-error-field {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23B81111'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23B81111' stroke='none'/%3E%3C/svg%3E");
  border-color: var(--tblr-primary) !important;
  background-position: right calc(.375em + .1875rem) center;
  background-repeat: no-repeat;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-ades>input.just-validate-success-field,
.form-ades>select.just-validate-success-field {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23000000' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
  background-position: right calc(.375em + .1875rem) center;
  background-repeat: no-repeat;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.just-validate-error-label {
  margin-top: 10px;
}

.form-control:focus {
  border-color: #f8cbad
}

.swalPopup {
  border-radius: 4px;
}

.swalTitle {
  font-family: 'Roboto';
}

.swalButton {
  border-radius: 4px;
  padding: 10px 45px;
  background: var(--tblr-primary);
}


.navbar-vertical .nav-item.active>.nav-link {
  background-color: #faf8f6;
  font-weight: 600;
  border-radius: 4px;
  position: relative;
}


.dropdown-item.active {
  background-color: transparent !important;
  font-weight: 600;
}

.dropdown-item.active::before {
  content: "•";
  margin-right: 5px;
  font-size: 1.5em;
  line-height: 0.5;
}

.gc-caption-title {
  display: none;
}

.modal {
  background-color: #00000033 !important;
}

.celldark {
  background-color: #faf8f6;
}

.cellWhite {
  background-color: white;
}

.cellDarker {
  background-color: #edeae8;
}

.cardProduct {
  background-color: #faf8f6;
}

.cardProductHead {
  background-color: #edeae8;
}

.buttonGraph {
  padding: 0;
  border: 0;
  background: white;
  margin-left: 10px;
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--ades-siena);
}