/* ======== SECCIONES ======== */
.side-section {
  background-color: #eeeeee;
  padding: 20px;
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

.center-section {
  background-color: #fff;
  padding: 40px;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  min-height: 100vh;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Títulos */
.center-section h1,
.center-section h2,
.center-section h3,
.center-section h5 {
  color: #973026;
}

/* Formularios */
.calculadora-form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
  border: 2px solid transparent;
}

.calculadora-form select {
  width: 300px; /* más cortos */
  display: block;
  padding: 6px;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.calculadora-form input[type="number"] {
  width: 150px; /* aún más cortos */
  display: block;
  padding: 6px;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.calculadora-form label:hover,
.calculadora-form select:hover,
.calculadora-form input:hover {
  border-color:#000
}


/* Campo obligatorio */
.required-msg {
  color: #ff4a4a;
  font-size: 0.9rem;
  margin-top: -5px;
  margin-bottom: 8px;
}

/* Botón calcular */
.btn-calcular {
  background-color: #f79300;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
}

/* ===== Card de resultados ===== */
.resultado-card {
  /* top: -1000px; */
  border: 2px solid #000;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  background-color: #fff;
  position: relative;
  margin-bottom: 20px;
  z-index: 10;
}

body.high-contrast .resultado-card {
  background-color: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.resultado-card .positiva,
.resultado-card .negativa {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Botón volver */
.resultado-card .volver-texto {
  /*  align: center; */
  display: center;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
  font-weight: bold;
}

.volver-texto {
  background-color: #973026;
  border-color: #973026;
  color: white;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.volver-texto:hover {
  border-color: #000;
  
}
/* Alto contraste del botón volver */
body.high-contrast .volver-texto {
  background-color: #000;
  border-color: #ffff00;
  color: #ffff00;
}

body.high-contrast .volver-texto:hover {
  border-color: #61CE70;
  color: #61CE70;

}

/* .resultado-card .volver img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
} */

/* Iconos PDF/DOCX */
.resultado-card img.pdf-icon,
.resultado-card img.doc-icon {
  align-self: center;
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 5px;
}

body.high-contrast .form-card {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

/* Alto contraste */
/* body.high-contrast .card {
    background-color: #000 !important; 
    color: #fff !important;
    border: 2px solid #fff !important;
}
*/
body.high-contrast .card select,
body.high-contrast .card input {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}

/* Recomendaciones negativas */
.resultado-card li.negativa {
  background-color: #ff4a4a;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Recomendaciones positivas (opcional) */
.resultado-card li.positiva {
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* CARD ESPECIAL P10 */
.card-p10 {
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  color: #fff;
}

.card-p10.naranja {
  background-color: #f79300;
}

.card-p10.granate {
  background-color: #973026;
}

/* Iconos PDF/DOCX */
.pdf-icon,
.doc-icon {
  width: 40px;
  height: 40px;
  margin-right: 5px;
  vertical-align: middle;
}

/* Botón calcular */
.btn-calcular {
  background-color: #f79300;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid transparent;
  cursor: pointer;
  margin-top: 15px;
}

.btn-calcular:hover {
  border-color: #000;
}

body.high-contrast .btn-calcular {
  background-color: #000 !important;
  color: #f79300;
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid #f79300; /* ← AQUI SÍ SE PINTA */
  cursor: pointer;
  margin-top: 15px;
}

body.high-contrast .btn-calcular:hover {
  border-color: #fff;
  color: #fff;
  font-weight: bold;
}

/* es_calculadora.css */
.positiva {
  background-color: #d4edda; /* verde suave */
  color: #155724;
  border-left: 4px solid #28a745;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.negativa {
  background-color: #f8d7da; /* granate suave */
  color: #721c24;
  border-left: 4px solid #dc3545;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

/* Recomendaciones */
/* tarjeta de recomendación (base) */
/* .rec-card {
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-left: 4px solid transparent;
} */

/* positiva: verde */
.rec-card.positiva {
  background-color: #d4edda; /* verde suave */
  color: #155724; /* texto verde oscuro */
  border-left-color: #28a745;
}

/* alta visibilidad para alto contraste */
body.high-contrast .rec-card.positiva {
  background-color: #000; /* fondo negro */
  color: #61ce70; /* texto igual que el border */
  border-left-color: #61ce70;
  border-color: #61ce70;
}

/* negativa: granate / rosado suave */
.rec-card.negativa {
  background-color: #f8d7da; /* rosa/granate suave */
  color: #721c24; /* texto granate oscuro */
  border-left-color: #dc3545;
}

/* alta visibilidad para alto contraste */
body.high-contrast .rec-card.negativa {
  background-color: #000; /* fondo negro */
  color: #973026; /* texto igual que el border */
  border-left-color: #973026;
  border-color: #973026;
}

.card-descargables {
  background-color: #f79300;
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

body.high-contrast .card-descargables {
  background-color: #000;
  color: #00b0ff;
  border-color: #f79300;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

/* Ajustes responsivos opcionales (que mantengan la columna) */
@media (max-width: 767px) {
  .rec-card {
    width: 100% !important;
  }
}
