body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #ff9800;
    font-family: 'Segoe UI', Arial, sans-serif;
}

a {
  text-decoration: none;
}

.lang-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 12px;
    margin-top: 0.2rem;
}

.lang-selector img {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.lang-selector a.active img {
    opacity: 1;
    box-shadow: 0 0 0 2px #ff9800;
}

.lang-selector a:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

.access-btn { 
    width: 80%;
    text-align: center;
    padding: 0.7em 1.5em;
    background: linear-gradient(90deg, #ff6600, #ffaa33);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.access-btn:hover, 
.access-btn:focus {
    background: linear-gradient(90deg, #ffaa33, #ff6600);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,170,51,0.3); /* sombra naranja */
}

.access-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slide-container {
  max-width: 340px;
  margin: 40px auto;
  padding: 20px;
  background: #222;
  border-radius: 18px;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  gap: 0.7rem; /*1.2rem;*/
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  color: white;
}

.slide-container .form-group {
    margin-bottom: 0;
}

.slide-container h2 {
    margin-bottom: 1rem;
}

.slide-container .next-btn {
    margin-top: 1.2rem;
}


input[type="text"] {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ff9800;
  background: #111;
  color: #ff9800;
  font-size: 1rem;
  outline: none;
  margin: 5px 0;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: #ffa733;
}

input[type="number"] {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ff9800;
  background: #111;
  color: #ff9800;
  font-size: 1rem;
  outline: none;
  margin: 5px 0;
  transition: border-color 0.2s;
}

input[type="number"]:focus {
  border-color: #ffa733;
}

.gender-buttons {
  display: flex;
  gap: 1rem; /*1.5rem;*/
  justify-content: center;
  margin-top: 0.2rem;
}

.gender-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gender-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  background: #111;
  color: #ff9800;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

input[type="radio"]:checked + .gender-btn {
  border-color: #ffa733;
  background: #ff9800;
  color: #000;
  box-shadow: 0 2px 8px rgba(255,152,0,0.2);
}

.gender-label {
  font-size: 0.95rem;
  margin-top: 8px;
  color: #ff9800;
  font-weight: normal;
  letter-spacing: 0.2px;
  text-align: center;
  user-select: none;
}

/* Botones de navegación entre pantallas */
.next-btn, .next-btn:visited {
  margin-top: 1rem;
  padding: 12px 0;
  background: linear-gradient(90deg, #ff6600, #ffaa33);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}

.next-btn:hover, .next-btn:focus {
  background: linear-gradient(90deg, #ffaa33, #ff6600);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,170,51,0.3); /* sombra naranja */
}

.next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.back-btn, .back-btn:visited {
  margin-top: 1rem;
  padding: 10px 0;
  background: linear-gradient(90deg, #ff6600, #ffaa33);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  text-decoration: none;
}

.back-btn:hover, .back-btn:focus {
  background: linear-gradient(90deg, #ffaa33, #ff6600);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,170,51,0.3); /* sombra naranja */
}

.back-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* END / Botones de navegación entre pantallas */

.errores {
  background: #2a0900;
  border: 1px solid #ff9800;
  padding: 1rem;
  border-radius: 8px;
  color: #ff9800;
  margin-bottom: 1rem;
}

h2 {
  color: #ff9800;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
}

.disciplina-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  margin-bottom: 1rem;
}


.disciplina-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.disciplina-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.disciplina-btn img {
  filter: invert(1) brightness(2); /* Icono blanco sobre fondo oscuro */
  transition: filter 0.2s;
}

input[type="radio"]:checked + .disciplina-btn {
  background: #ff9800;
  border-color: #ffa733;
}

input[type="radio"]:checked + .disciplina-btn img {
  filter: none; /* Icono negro sobre fondo naranja */
}

.disciplina-label {
  font-size: 0.95rem;
  margin-top: 8px;
  color: #ff9800;
  font-weight: normal;
  letter-spacing: 0.2px;
  text-align: center;
  user-select: none;
}

.botones-navegacion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

select, input[type="number"] {
  background: #111;
  border: 1px solid #ff9800;
  color: #ff9800;
  padding: 8px;
  border-radius: 8px;
  margin: 5px 0;
  font-size: 1rem;
}

select:focus, input[type="number"]:focus {
  border-color: #ffa733;
  outline: none;
}

option {
  background: #222;
  color: #ff9800;
}

.alimentacion-buttons, .condiciones-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  justify-items: center;
  margin-bottom: 1rem;
}

.alimentacion-option, .condicion-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alimentacion-btn, .condicion-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

input[type="radio"]:checked + .alimentacion-btn,
input[type="checkbox"]:checked + .condicion-btn {
  background: #ff9800;
  border-color: #ffa733;
}

.alimentacion-btn img, .condicion-btn img {
  width: 36px;
  height: 36px;
  filter: invert(1) brightness(2);
  transition: filter 0.2s;
}

input[type="radio"]:checked + .alimentacion-btn img,
input[type="checkbox"]:checked + .condicion-btn img {
  filter: none;
}

.alimentacion-label, .condicion-label {
  font-size: 0.95rem;
  margin-top: 6px;
  color: #ff9800;
  text-align: center;
  user-select: none;
}

.condicion-otro-input {
  background: #111;
  border: 1px solid #ff9800;
  color: #ff9800;
  border-radius: 8px;
  padding: 6px;
  font-size: 0.95rem;
  width: 100px;
  text-align: center;
}

.horario-buttons {
  display: flex;
  flex-direction: column;
  align-items: center; /* Cambiado de flex-start a center */
  margin-bottom: 1rem;
}

.horario-options {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  margin-top: 0.5rem;
  justify-content: center; /* Añadido para centrar los botones */
}

.horario-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.horario-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

input[type="radio"]:checked + .horario-btn {
  background: #ff9800;
  border-color: #ffa733;
}

.horario-btn img {
  width: 32px;
  height: 32px;
  filter: invert(1) brightness(2);
  transition: filter 0.2s;
}

input[type="radio"]:checked + .horario-btn img {
  filter: none;
}

.horario-label {
  display: block;
  font-size: 0.95rem;
  color: #ff9800;
  text-align: center;
  margin-top: 4px;
  user-select: none;
}

.ninguno-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ninguno-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 4px;
}

input[type="radio"]:checked + .ninguno-btn {
  background: #ff9800;
  border-color: #ffa733;
}

.ninguno-btn img {
  width: 32px;
  height: 32px;
  filter: invert(1) brightness(2);
  transition: filter 0.2s;
}

input[type="radio"]:checked + .ninguno-btn img {
  filter: none;
}

.ninguno-label {
  display: block;
  font-size: 0.95rem;
  color: #ff9800;
  text-align: center;
  margin-bottom: 8px;
  user-select: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.card {
    position: relative;
    background: #111; /* fondo negro */
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow: visible;
    z-index: 0;
}

/* Borde de gradiente animado naranja */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    padding: 2px; /* grosor del borde */
    background: linear-gradient(90deg, #ff6600, #ffaa33, #ff6600);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 200% 200%;
    animation: neonBorder 3s linear infinite;
    z-index: -1;
}

/* Animación del gradiente */
@keyframes neonBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card h2, 
.card h3 {
    color: #ff6600; /* naranja principal */
}

.resumen-usuario {
    text-align: center;
}
/*
.genero-icono {
    font-size: 3rem;
    margin: 0.5rem 0;
    color: linear-gradient(90deg, #ff6600, #ffaa33);
}
*/
.genero-icono {
    font-size: 3rem; /* ajusta según necesites */
    margin: 0.5rem 0;
    font-weight: bold;
    background: linear-gradient(90deg, #ff6600, #ffaa33);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* soporte para otros navegadores */
}


.grafico-peso {
    height: 200px;
    background: #333;
    border-radius: 8px;
    margin: 1rem 0;
}


.tabla-comidas {
    width: 100%;
    border-collapse: collapse;
}

.tabla-comidas th {
    padding: 0.8rem;
}

/* Móvil  */
@media (max-width: 600px) {
    .tabla-comidas th, .tabla-comidas td {
        padding: 0.4rem;
        font-size: 0.95rem;
    }
    .tabla-comidas th {
        font-size: 1rem;
    }
}


.sustitucion-btn {
    background: none;
    border: 1px solid #ff9800;
    color: #ff9800;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}
.recordatorio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

input[type="time"].input-estilizado,
input[type="date"].input-estilizado,
input[type="datetime-local"].input-estilizado {
  background: #111;
  color: #ff9800;
  border: 1px solid #ff9800;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  margin: 5px 0;
  width: 210px;
}

/* Quitar el icono del reloj (Chrome, Safari, Edge) */
input[type="time"].input-estilizado::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(10deg);
  /* Esto pone el icono del reloj en naranja/blanco */
  cursor: pointer;
}

/* Quitar los spinners (Chrome, Safari, Edge) */
input[type="time"].input-estilizado::-webkit-inner-spin-button,
input[type="time"].input-estilizado::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox: No permite cambiar el icono, pero sí el fondo y el color */
input[type="time"].input-estilizado {
  -moz-appearance: textfield;
}

/* Placeholder color (si lo usas) */
input[type="time"].input-estilizado::placeholder {
  color: #ff9800;
  opacity: 0.7;
}

.logout-btn,
.perfil-btn {
    display: inline-flex;
    align-items: center;
    background: #222;
    color: #ff9800;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

.logout-btn:hover,
.perfil-btn:hover {
    background: #ff9800;
    color: #222;
}

.logout-btn:hover img,
.perfil-btn:hover img {
  filter: invert(1) sepia(1) saturate(0) brightness(0);
}

/* Menú Semanal */
.comida-titulo {
  font-weight: bold;
  color: #ffa733;
}

/* Lista de Compra */
.macro-categoria {
  margin-bottom: 1.5rem;
}

.macro-categoria h4 {
  color: #ff9800;
  margin: 0.5rem 0;
}

.macro-categoria ul {
  list-style: none;
  padding-left: 1rem;
}

.macro-categoria li {
  margin: 0.3rem 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-contenido {
  background: #222;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
}

.alternativa-item {
  padding: 1rem;
  border-bottom: 1px solid #ff9800;
}

/* Consejos */
.consejo-item {
  background: #333;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Sección de ajustes */
.ajustes-section {
    background: #333;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.ajuste-box {
    background: #222;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Formulario de sensaciones */
.sensacion-item {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
}

.sensacion-input {
    flex: 1;
}

.sensacion-input input {
    width: 100%;
}

input[type="date"] {
    background: #222;
    border: 1px solid #ff9800;
    color: #ff9800;
    padding: 8px;
    margin: 5px 0;
    border-radius: 8px;
    font-size: 1rem;
}

/* Cambia el color del icono del calendario (Chrome, Edge, Safari) */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.9);
    cursor: pointer;
    opacity: 0.9;
}

/* Firefox: el icono no se puede cambiar, pero el campo sí */
input[type="date"] {
    -moz-appearance: textfield;
}

/* Opcional: color de placeholder si lo usas */
input[type="date"]::placeholder {
    color: #ff9800;
    opacity: 0.7;
}
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1.5rem 0;
}
.premium-card {
    background: #222;
    border: 2px solid #ff9800;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    color: #ff9800;
    box-shadow: 0 4px 24px rgba(255,152,0,0.08);
    position: relative;
}
.premium-card h3 {
    color: #ffa733;
    margin-top: 0;
}
.premium-icon {
    font-size: 2.2rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.2;
}
.premium-btn {
    margin-top: 1rem;
    background: #ff9800;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.premium-btn:hover { background: #ffa733; }
.chat-box {
    background: #333;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 120px;
}
.receta-item {
    background: #333;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.config-item {
    background: #333;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.config-item h4 {
    color: #ff6600;
    margin: 0 0 0.8rem 0;
    font-size: 1.1em;
}

.config-item ul {
    list-style: none;
    padding-left: 1.5rem;
}

.config-item li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tabla-comidas th,
.tabla-comidas td {
  white-space: normal; /* Permite saltos de línea */
  word-break: break-word; /* Rompe palabras largas cuando sea necesario */
}

.comida-titulo {
  min-width: 90px;  /* Ancho mínimo en lugar de porcentaje fijo */
  max-width: 150px;
  white-space: nowrap; /* Evita salto de línea en títulos */
  overflow: hidden;
  text-overflow: ellipsis; /* ... si el texto es muy largo */
  font-weight: 600;
  color: #ff9800; /* Color naranja para destacar */
  vertical-align: middle; /* Mejor alineación vertical */
}

/* RESPONSIVE MOVIL */
@media (max-width: 768px) {
  .comida-titulo {
    width: auto;
    min-width: unset;
    font-size: 0.9rem;
  }

  .tabla-comidas th {
      padding: 6px 8px;
  }

  .card {
      padding: 1rem;
  }

  .tabla-dashboard {
    font-size: 0.85rem;
  }

  .tabla-dashboard td {
    line-height: 1.3;
  }
  
}

/* FINAL RESPONSIVE MOVIL */

.plan {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plan h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.plan p {
    color: #666;
    margin-bottom: 1rem;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #20232a;
    color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 16px;
    border-bottom: 1px solid #333;
    gap: 10px;
}

.sidebar-logo {
  max-width: 150px;
  width: 100%;
  margin-bottom: 6px;
}

.sidebar-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


.sidebar-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: #ff9800;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}

.sidebar-menu a span {
    margin-right: 10px;
    font-size: 1.2em;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #ff9800;
    color: #20232a;
}

/* Botón hamburguesa */
.sidebar-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1100;
    background: #ff9800;
    color: #20232a;
    border: none;
    border-radius: 4px;
    font-size: 1.8rem;
    padding: 4px 12px;
    cursor: pointer;
    display: none;
}

/* Botón cerrar */
.sidebar-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    color: #ff9800;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* Selector idioma sidebar */
.sidebar-lang-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sidebar-lang-selector a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-lang-selector img {
    width: 26px;
    height: 18px;
    opacity: 0.45;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.sidebar-lang-selector a.active img {
    opacity: 1;
    outline: 2px solid #ff9800;
    outline-offset: 2px;
}

.sidebar-lang-selector img:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* Responsive: colapsable en móvil */
@media (max-width: 800px) {
    .sidebar {
        transform: translateX(-100%);
        width: 220px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-toggle {
        display: block;
    }
    .sidebar-close {
        display: block;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 20px;
    }
}

.main-content {
    margin-left: 220px; /* Igual que el ancho del sidebar */
    padding: 30px;
    position: relative;
    z-index: 1; /* Asegura que el contenido esté sobre el menú */
    min-height: 100vh;
    box-sizing: border-box; /* Evita desbordamientos */
}

/* CSS Seguimiento */

.seguimiento-main {
    max-width: 900px;
    margin: 30px auto 30px auto;
    background-color: #222; 
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 40px 30px;
}


.seguimiento-main h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff9800;
}

.form-section {
    margin: 30px 0 40px 0;
    padding: 25px 20px;
    background: #fff6e6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255,152,0,0.08);
}

.form-section h3 {
    margin-bottom: 18px;
    color: #ff9800;
    font-size: 1.1em;
}

.seguimiento-form {
    width: 100%;
}

.seguimiento-main label{
  color: #ff9800;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
}

.form-group {
    flex: 1 1 180px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #ff9800;
}

.form-group input {
    padding: 8px 10px;
    border: 1px solid #ffc266;
    border-radius: 5px;
    font-size: 1em;
    background: #D9D9D9;
    transition: border 0.2s;
    font-weight: bold;
}

.form-group input:focus {
    border: 1.5px solid #ff9800;
    outline: none;
}

.next-btn {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.next-btn:hover {
    background: #e68900;
}

.cancel-btn {
    background: #FF0000;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.cancel-btn:hover {
    background: #E60000;
}


.ajustes-section {
    margin: 30px 0 40px 0;
}

.ajustes-section h3 {
    color: #ff9800;
    margin-bottom: 10px;
}

.ajuste-box {
    background: #fffbe6;
    border-left: 5px solid #ff9800;
    padding: 16px 20px;
    border-radius: 6px;
    color: #444;
    font-size: 1.05em;
    box-shadow: 0 1px 4px rgba(255,152,0,0.06);
}

.no-data {
    color: #bbb;
    text-align: center;
    margin-top: 80px;
    font-size: 1.1em;
}

@media (max-width: 700px) {
    .seguimiento-main {
        padding: 12px 4vw;
    }
    .grafico-container {
        padding: 10px 3vw;
        height: 250px;
    }
    .form-section {
        padding: 10px 3vw;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

.grafico-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 30px 0 40px 0;
    background: #333; /* Fondo oscuro */
    border-radius: 10px;
    padding: 15px 10px 5px 10px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(255,152,0,0.05);
}

.grafico-container h3 {
    margin: 0 0 12px 0;
    color: #ff9800; /* Título naranja */
    font-size: 1.25em;
    font-weight: 600;
    text-align: center;
}

.grafico-container canvas {
    height: 320px !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block;
    margin: 0 auto;
    background: transparent;
}

/* Gráfico en dashboard */
.resumen-usuario {
    position: relative;
}

.grafico-peso {
    height: 200px;
    margin: 20px 0;
    position: relative;
}

.grafico-peso canvas {
    width: 100% !important;
    height: 100% !important;
}

.no-data {
    text-align: center;
    color: #ff9800;
    font-style: italic;
    padding: 20px;
}

/* Contenedor principal de planes */
.suscripciones-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Tarjeta de plan */
.suscripcion-plan {
    background: #222;
    border: 2px solid #ff9800;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    color: #ff9800;
    box-shadow: 0 4px 24px rgba(255,152,0,0.08);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.suscripcion-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 28px rgba(255,152,0,0.15);
}

/* Destacado (plan premium o recomendado) */
.suscripcion-plan.featured {
    border-color: #ffa733;
    background: #2a2a2a;
}

/* Precio y título */
.suscripcion-plan h3 {
    color: #ffa733;
    margin-top: 0;
    font-size: 1.8rem;
}
.suscripcion-plan .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem;
}
.suscripcion-plan .periodo {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Lista de características */
.suscripcion-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.suscripcion-plan li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.suscripcion-plan li i {
    font-size: 1.2rem;
    color: #ff9800;
    min-width: 24px;
    text-align: center;
}

/* Botón de suscripción */
.suscripcion-btn {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #ff6600, #ffaa33);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}
.suscripcion-btn:hover {
    background: linear-gradient(90deg, #ffaa33, #ff6600);
    transform: translateY(-2px);
    color: #fff;
}

/* Badge destacado */
.suscripcion-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff9800;
    color: #222;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255,152,0,0.3);
}

/* Estilos adicionales */
.free-plan {
    border-color: #4CAF50; /* Verde para plan gratuito */
}
.free-plan .price {
    color: #4CAF50;
}
.free-btn {
    background: #4CAF50 !important;
}
.free-btn:hover {
    background: #66bb6a !important;
}

.annual-plan {
    border-color: #ffc107; /* Amarillo para oferta anual */
}
.annual-plan .price {
    color: #ffc107;
}
.annual-btn {
    background: #ffc107 !important;
    color: #000 !important;
}
.annual-btn:hover {
    background: #ffca28 !important;
}

.suscripcion-badge.best-value {
    background: #ffc107;
    color: #000;
}

/* CSS Premium */
.restricted-content {
    position: relative;
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
    min-height: 150px; /* Asegura altura mínima */
}

.premium-overlay {
    position: absolute;
    top: 20px; /* Distancia desde arriba */
    left: 20px;
    right: 20px;
    transform: none; /* Eliminamos el centrado vertical */
    width: auto; /* Ancho automático basado en left/right */
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-width: 400px; /* Ancho máximo para mejor legibilidad */
    margin: 0 auto; /* Centrado horizontal */
}


.lock-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2ecc71;
}

.upgrade-btn {
    padding: 8px 16px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.upgrade-btn:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ajustes específicos para cada sección */
/* Menú Semanal */
.dias-container .premium-overlay {
    max-width: 300px;
}

/* Lista de Compra */
.macro-categoria .premium-overlay {
    background: rgba(245, 245, 245, 0.95);
}

/* Consejos */
.consejo-item .premium-overlay {
    max-width: 250px;
    padding: 15px;
}

/* == MODAL PREPLAN == */
/* --- Modal Fondo --- */
#modalPlan {
    display: none; /* se muestra con JS */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-out;
}

/* --- Contenedor Modal --- */
#modalPlan > div {
    background: #111;
    padding: 25px 30px;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
    color: #fff;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* --- Título --- */
#modalPlan h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    /*color: #ff0055;*/
    color: #ff6600;
    text-align: center;
}

/* --- Inputs --- */
#modalPlan input[type="text"],
#modalPlan input[type="number"],
#modalPlan select {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0 15px 0;
    border-radius: 6px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

#modalPlan input::placeholder {
    color: #999;
}

/* --- Botón enviar --- */
#modalPlan button#enviarPlan {
    width: 100%;
    padding: 10px 0;
    /*background: linear-gradient(90deg, #ff0055, #ff8800);*/
    background: linear-gradient(90deg, #ff6600, #ffaa33);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#modalPlan button#enviarPlan:hover {
    /*background: linear-gradient(90deg, #ff8800, #ff0055);*/
    background: linear-gradient(90deg, #ff6600, #ffaa33);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,136,0,0.3);
}

/* --- Botón cerrar (X) --- */
#cerrarModal {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff0055;
    transition: all 0.3s ease;
}

#cerrarModal:hover {
    color: #ff8800;
    transform: scale(1.2);
}

/* --- Responsive --- */
@media (max-width: 400px){
    #modalPlan > div {
        width: 90%;
        padding: 20px;
    }
    #modalPlan h3 {
        font-size: 1.2rem;
    }
}

/* === CHAT / INTERFAZ DE MENSAJES === */
.chatui-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
    max-height: 400px; /* tamaño del cuadro */
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    scroll-behavior: smooth;
}

/* Mensajes */
.chatui-msg {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-line;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s forwards;
}

/* Usuario */
.chatui-user {
    align-self: flex-end;
    background: #007aff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* IA */
.chatui-ai {
    align-self: flex-start;
    background: #f1f1f1;
    color: #222;
    border-bottom-left-radius: 4px;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* “IA escribiendo…” */
.chatui-typing {
    align-self: flex-start;
    background: #f1f1f1;
    color: #222;
    border-radius: 14px;
    padding: 10px 14px;
    font-style: italic;
    font-size: 14px;
}

/* Formulario de envío */
#chat-form {
    display: flex;
    margin-top: 10px;
}

#chat-form input {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

/* Botón de enviar */
#chat-form button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background: #ff6600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

#chat-form button:hover {
    background: #e65c00;
}


/* Botones FAQ */
.quick-btn { 
    width: auto;
    text-align: center;
    padding: 0.7em 1.5em;
    background: linear-gradient(90deg, #ff6600, #ffaa33);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.quick-btn:hover, 
.quick-btn:focus {
    background: linear-gradient(90deg, #ffaa33, #ff6600);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,170,51,0.3); /* sombra naranja */
}

.quick-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botón nuevo plan */

.plan-new-btn {
    background: #0066ff;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 102, 255, 0.2);
}

.plan-new-btn:hover {
    background: #0054d6;
    transform: translateY(-1px);
}

.plan-new-btn:active {
    transform: translateY(0px);
    background: #003ea7;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    padding: 20px;
    max-width: 350px;
    width: 90%;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-cancel {
    background: #ccc;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.modal-confirm {
    background: #0066ff;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.recipe-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.recipe-tags {
  margin: 0.5rem 0 1rem 0;
}

.tag {
  display: inline-block;
  background: rgba(255,152,0,0.15);
  border: 1px solid #ff9800;
  color: #ff9800;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 6px;
}

pre {
  background: #222;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  color: #fff;
  font-family: inherit;
}

.recipe-history {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.recipe-history-item {
    background: #222;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recipe-history-item:hover {
    background: #ff9800;
    color: #222;
}
#recipeIngredients {
    padding-left: 20px;
}

#recipeIngredients li {
    margin-bottom: 6px;
    line-height: 1.4;
}
#strategicContent p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

#strategicContent p:first-child {
    font-weight: bold;
}

.badge-ai {
    background: #ff9800;
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

.notificacion-item {
    background:#111;
    border-left:4px solid #ff6600;
    padding:12px;
    margin-bottom:10px;
    border-radius:8px;
}

.notificacion-item.tipo-ia {
    border-left-color:#00e5ff;
}

.notificacion-item.tipo-exito {
    border-left-color:#4caf50;
}
#notif-wrapper {
    position: relative;
    margin-right: 16px;
}
#notif-btn {
    display: inline-flex;
    align-items: center;
    background: #222;
    color: #ff9800;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

#notif-btn:hover {
  background: #ff9800;
  color: #222;
}

#notif-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #111;
}

.notif-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.notif-item {
    padding: 14px 16px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: background 0.15s ease;
}

.notif-item:hover {
    background: #2a2a2a;
}

.notif-item strong {
    display: block;
    font-size: 0.95rem;
    color: #ff9800;
    margin-bottom: 4px;
}

.notif-item p {
    font-size: 0.85rem;
    color: #ddd;
    margin: 0;
}

.notif-item small {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    color: #888;
}
.notif-panel p {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}
.hidden {
    display: none;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.toggle {
    position: relative;
    width: 46px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #666;
    border-radius: 26px;
    inset: 0;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked + .slider {
    background-color: #ff9800;
}

.toggle input:checked + .slider:before {
    transform: translateX(20px);
}

/* Dashboard only */
.card-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
}

/* ===== TABLA DASHBOARD ===== */

.tabla-dashboard {
    table-layout: fixed;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.tabla-dashboard th,
.tabla-dashboard td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top;
}

.tabla-dashboard th {
    font-size: 0.9rem;
    color: #ff9800;
    text-align: left;
}

/* Columnas */
.tabla-dashboard th:nth-child(1),
.tabla-dashboard td:nth-child(1) {
    width: 20%;
}

.tabla-dashboard th:nth-child(2),
.tabla-dashboard td:nth-child(2) {
    width: 40%;
}

.tabla-dashboard th:nth-child(3),
.tabla-dashboard td:nth-child(3),
.tabla-dashboard th:nth-child(4),
.tabla-dashboard td:nth-child(4) {
    width: 20%;
    text-align: right;
}

/* Líneas entre filas */
.tabla-dashboard tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Separación vertical ligera */
.tabla-dashboard th:not(:last-child),
.tabla-dashboard td:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.06);
}

/* Hover de fila (UX) */
.tabla-dashboard tr:hover td {
    background: rgba(255,152,0,0.04);
}

/* Columna Comida (Dashboard) */
.tabla-dashboard td.col-comida {
    font-weight: 600;
    color: #ff9800;
    white-space: normal;   /* permite salto */
    word-break: keep-all; /* NO parte palabras */
}
.tabla-dashboard td:nth-child(2) {
    white-space: normal;
}
/* Bloques premium dentro del grid */
.premium-block {
    grid-column: 1 / -1;        /* ocupa todo el ancho del grid */
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

/* Blur solo al fondo, NO al contenido */
.premium-overlay {
    backdrop-filter: blur(6px);
    background: rgba(32, 35, 42, 0.85);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
}

/* Asegurar que el botón siempre está por encima */
.premium-overlay button,
.premium-overlay .upgrade-btn {
    position: relative;
    z-index: 2;
}

/* ===== Selector de días de entrenamiento ===== */

.training-days {
    margin-top: 20px;
}

.training-days span {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.days-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.day-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f1f1;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked + .day-btn {
    background: #111;
    color: #fff;
}

/* Onboarding: form-group compacto */
.slide-container .form-group {
    flex: unset;
    min-width: unset;
}
