/* --- Detalles del producto (clon de Garantía, sin icono) --- */
.nutri-details {
  margin: 30px auto;
  padding: 0 0px;
  max-width: 1300px;
  box-sizing: border-box;
  overflow-x: hidden; /* 🔧 evita desbordamiento lateral */
}

.nutri-details-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
}

.nutri-details-content {
  flex: 1 1 540px;
  min-width: 0; /* 🔧 evita desbordes por contenido largo */
}

.nutri-details-subtitle {
  font-size: 22px;
  font-weight: bold;
  color: black;
  margin-bottom: 10px;
  line-height: 1.6;
}

.nutri-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nutri-details-item {
  background: #f9f9f9;
  border-radius: 10px;
border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.nutri-details-item:hover {
  background: #f1f6fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.nutri-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
padding-left: 18px;
  padding-right: 18px;
}

.nutri-details-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: black;
  flex: 1;
}

.nutri-details-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: black;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nutri-details-item.active .nutri-details-toggle {
  transform: rotate(45deg);
}

.nutri-details-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  color: #333;
  font-size: 17px;
  padding-left: 30px;
  line-height: 1.7;
}

.nutri-details-item.active .nutri-details-desc {
  max-height: 500px;
  opacity: 1;
  background-color: #F5F6F7;
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}

.nutri-details-toggle:hover,
.nutri-details-toggle:focus {
  background: transparent;
  color: black;
}

/* === Contenido interno de los detalles del producto === */
.nutri-details-desc {
  color: #243b53;
  font-size: 16px;
  line-height: 1.75;
}

/* Títulos dentro de los bloques */
.nutri-details-desc h3,
.nutri-details-desc h4 {
  font-size: 17px;
  color: black;
  font-weight: 700;
  margin: 18px 0 10px;
}

/* Párrafos */
.nutri-details-desc p {
  margin-bottom: 12px;
}

/* Negritas y cursivas */
.nutri-details-desc strong {
  color: black;
  font-weight: 700;
}
.nutri-details-desc em {
  color: black;
  font-style: italic;
}

/* Listas */
.nutri-details-desc ul {
  padding-left: 24px;
  margin: 12px 0;
}
.nutri-details-desc li {
  margin-bottom: 6px;
}

/* Tablas */
.nutri-details-desc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.nutri-details-desc th,
.nutri-details-desc td {
  border: 1px solid #d9e3ea;
  padding: 10px 12px;
  text-align: left;
}
.nutri-details-desc th {
  background: #f5f9fc;
  color: white;
  font-weight: 700;
}
.nutri-details-desc td {
  background: #ffffff;
  color: #333;
}

/* Enlaces */
.nutri-details-desc a {
  color: white;
  text-decoration: underline;
}
.nutri-details-desc a:hover {
  color: #163d63;
}

/* Espaciado al final */
.nutri-details-desc:last-child {
  margin-bottom: 0;
}

/* ============================================================= */
/* 📱 TABLET (max-width: 1024px) */
/* ============================================================= */
@media (max-width: 1024px) {
  .nutri-details {
    padding: 0 15px;
  }

  .nutri-details-inner {
    flex-direction: column;
    gap: 30px;
  }

  .nutri-details-header h2 {
    font-size: 18px;
  }

  .nutri-details-subtitle {
    font-size: 16px;
  }

  .nutri-details-item {
    padding: 14px 16px;
  }

  .nutri-details-desc {
    font-size: 15px;
    padding-left: 20px;
  }
}

/* ============================================================= */
/* 📱 MÓVIL (max-width: 600px) */
/* ============================================================= */
@media (max-width: 600px) {
  .nutri-details {
    margin: 20px auto;
    padding: 0 12px;
    overflow-x: hidden;
  }

  .nutri-details-inner {
    gap: 20px;
  }

  .nutri-details-header h2 {
    font-size: 16px;
  }

  .nutri-details-subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  .nutri-details-item {
    padding: 12px 14px;
  }

  .nutri-details-desc {
    font-size: 14.5px;
    padding-left: 15px;
  }

  .nutri-details-desc h3,
  .nutri-details-desc h4 {
    font-size: 15px;
  }

  .nutri-details-desc table {
    font-size: 13.5px;
    display: block;
    overflow-x: auto;
  }
}
