/* Estilos generales */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 80px; /* ajusta este valor a la altura real del header */
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f5f5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header h1 {
  font-weight: 300;
  font-size: 1.8rem;
}

nav ul {
  display: flex;
  list-style: none;
  margin-top: 10px;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 300;
}

nav ul li a:hover {
  text-decoration: underline;
}

nav ul li a.active {
  color: #ffffff;
  background-color: #2980b9;
  border-radius: 5px;
  padding: 5px 10px;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: white;
  margin-bottom: 2rem;
  border-radius: 5px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Formulario */
.form-recomendador {
  background: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #2980b9;
}

/* Resultados */
.resultados-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .resultados-container {
    grid-template-columns: 1fr 1fr;
  }
}

.producto {
  background: white;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.producto h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.producto p {
  margin-bottom: 0.5rem;
}

details {
  margin-top: 1rem;
}

details summary {
  font-weight: 500;
  cursor: pointer;
}

details ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

.consejos-adicionales {
  background: white;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.consejos-adicionales h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.consejos-adicionales ul {
  padding-left: 1.5rem;
}

.consejos-adicionales li {
  margin-bottom: 0.5rem;
}

.alert {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid #f5c6cb;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

footer p {
  font-weight: 300;
}

.tabla-con-lineas {
  width: 100%;
  border-collapse: collapse;
}

.tabla-con-lineas th,
.tabla-con-lineas td {
  border-bottom: 1px solid #ccc;
  padding: 0.1rem;
  text-align: left;
}

.tabla-con-lineas thead th {
  border-bottom: 2px solid #666;
  background-color: #f0f0f0;
}

/* 🎯 Efecto pijama */
.tabla-con-lineas tbody tr:nth-child(even) {
  background-color: #f3f2f2; /* un gris muy suave */
}

.logo-fixed {
  position: fixed; /* Mantiene el logo fijo en la pantalla */
  top: 15px; /* Distancia desde la parte superior. Ajusta según necesites. */
  left: 15px; /* Distancia desde la parte izquierda. Ajusta según necesites. */
  z-index: 1002; /* Alto z-index para asegurar que esté por encima de todo, incluyendo el banner de cookies (z-index: 1000) */
  max-width: 120px; /* Tamaño máximo del logotipo. Ajusta el valor. */
  height: auto; /* Mantiene la proporción de la imagen */
  /* Puedes añadir transiciones para un efecto suave al pasar el ratón */
  transition: transform 0.3s ease-in-out;
}

.logo-fixed:hover {
  transform: scale(1.05); /* Ligeramente más grande al pasar el ratón */
}

/* Clase para reducir el tamaño del logo */
.logo-small {
  max-width: 40px; /* Tamaño reducido del logotipo. AJUSTA ESTE VALOR */
  /* Opcional: ajustar posición si el cambio de tamaño afecta la alineación */
  /* top: 25px; */
  /* left: 25px; */
}

@media (max-width: 768px) {
  .logo-fixed {
    max-width: 90px; /* Tamaño del logo para pantallas más pequeñas */
    top: 10px;
    left: 10px;
  }
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 400;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.form-group {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  background-color: #fcfcfc;
}

#technical-report {
  overflow: visible !important;
  height: auto !important;
  background: white;
}

#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9998;
}


