/* style.css */

/* Variables CSS para colores - SOLO AZULES Y GRISES/BLANCOS */
:root {
  --primary-blue-light: #C1E1F5;
  --primary-blue-medium: #7EB8DA;
  --primary-blue-dark: #3A6B93;
  --primary-blue-very-dark: #1E3D59;
  --background-light: #FFFFFF;
  --background-gray: #FFFFFF;
  --text-dark: #334A5F;
  --text-medium: #6B7A8B;
  --text-light: #9DAAB8;
  --text-description: #555555;
  --text-white: #FFFFFF;
  --border-color-light: #E1E8EE;
  --border-color-medium: #C0D3E0;
  --highlight-color-1: #69A7CC;
  --highlight-color-2: #3A6B93;
  --shadow-light: rgba(0, 0, 0, 0);
  --shadow-medium: rgba(0, 0, 0, 0);
}

/* Base */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-color: #FFFFFF;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header - COMPLETAMENTE BLANCO SIN SOMBRAS */
.app-header {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: var(--text-dark);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none !important;
  border: none !important;
  border-bottom: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Logo y nombre de la web */
.logo-and-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LOGO AMPLIADO AL DOBLE (de 120px a 240px) */
.hana-logo {
  height: 240px;
  width: auto;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* TEXTO AL LADO DEL LOGO */
.logo-text {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  color: #99bace;
  text-transform: lowercase;
}

/* BOTONES DE IDIOMA EN AZUL (RESPETADOS) */
.language-selector button {
  background-color: transparent;
  border: 1px solid var(--primary-blue-medium);
  color: var(--primary-blue-dark);
  padding: 8px 12px;
  margin-left: 10px;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.language-selector button.active,
.language-selector button:hover {
  background-color: var(--primary-blue-medium);
  color: white;
  border-color: var(--primary-blue-medium);
}
/* Botones de navegación */
.navigation-buttons {
  display: flex;
  gap: 15px;
  margin-left: 30px;
}

.nav-btn {
  background-color: transparent;
  border: 1px solid var(--primary-blue-medium);
  color: var(--primary-blue-dark);
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.nav-btn:hover {
  background-color: var(--primary-blue-medium);
  color: white;
  border-color: var(--primary-blue-medium);
}

/* Contenido Principal Wrapper */
.main-content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border-radius: 0;
  box-shadow: none !important;
  overflow: hidden;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Sección de Título e Introducción */
.header-intro-section {
  background-color: #FFFFFF !important;
  color: var(--text-dark);
  padding: 60px 60px 40px;
  text-align: center;
  border-bottom: none;
}

.main-page-title {
  font-size: 3.5em;
  margin: 0 auto 25px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Estilo para la primera parte del título (en el recuadro) */
.highlight-box-1 {
  background-color: var(--primary-blue-light);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: 8px;
  margin-right: 15px;
  display: inline-block;
  box-shadow: none !important;
  font-weight: 700;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Estilo para la segunda parte del título (texto normal) */
.highlight-text-1 {
  color: var(--primary-blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

.project-intro {
  font-size: 1.1em;
  color: var(--text-description);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
}

/* Efecto de subrayado/resaltado para palabras clave */
.highlight-span-1 {
  background-color: var(--highlight-color-1);
  color: var(--primary-blue-very-dark);
  padding: 0 8px;
  border-radius: 4px;
  box-shadow: none !important;
  font-weight: 600;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

.highlight-span-2 {
  background-color: var(--highlight-color-2);
  color: white;
  padding: 0 8px;
  border-radius: 4px;
  box-shadow: none !important;
  font-weight: 600;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Imagen Decorativa */
.decorative-image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(to right, var(--primary-blue-light), var(--primary-blue-medium));
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-blue-dark);
  font-size: 1.2em;
  font-style: italic;
  border-bottom: 1px solid var(--border-color-medium);
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

.decorative-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenedor del Formulario */
.container {
  padding: 40px 60px;
}

.form-intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-medium);
  font-weight: 400;
}

/* Formulario */
form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .form-section {
    grid-column: span 1;
  }
  .form-section:first-of-type {
    grid-column: 1 / -1;
  }
}

fieldset.form-section {
  border: 1px solid var(--border-color-light);
  border-radius: 10px;
  padding: 25px;
  background-color: #FFFFFF;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

legend {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-blue-dark);
  padding: 0 15px;
  background-color: #FFFFFF;
  border-radius: 6px;
  transform: translateY(-50%);
  position: relative;
  left: 20px;
  top: 0;
}

.form-group {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  background-color: #FFFFFF;
  box-shadow: none !important;
  position: relative;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.0em;
}

input[type="number"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color-medium);
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1.0em;
  color: var(--text-dark);
  background-color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', sans-serif;
}

input[type="number"]:focus,
select:focus,
input[type="range"]:focus {
  border-color: var(--primary-blue-medium);
  box-shadow: 0 0 0 3px rgba(126, 184, 218, 0.2);
  outline: none;
}

/* Estilo para los iconos dentro del input */
.icon-input-group {
  position: relative;
}

.icon-input-group input {
  padding-right: 40px;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-blue-medium);
  font-size: 1.3em;
}

/* Placeholders para iconos */
.icon-car::before { content: "🚗"; }
.icon-scale::before { content: "⚖️"; }
.icon-book::before { content: "📚"; }

input[type="range"] {
  width: calc(100% - 60px);
  vertical-align: middle;
  margin-right: 10px;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: var(--border-color-medium);
  border-radius: 5px;
  outline: none;
  opacity: 0.8;
  transition: opacity .2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-blue-dark);
  cursor: pointer;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-blue-dark);
  cursor: pointer;
  box-shadow: none !important;
  -moz-box-shadow: none !important;
}

input[type="range"] + span {
  display: inline-block;
  width: 50px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-blue-dark);
  vertical-align: middle;
  font-family: 'Inter', sans-serif;
}

.hit-target-display {
  display: inline-block;
  width: auto;
  min-width: 80px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-blue-dark);
  vertical-align: middle;
  font-family: 'Inter', sans-serif;
}

.explanation-text {
  font-size: 0.95em;
  color: var(--text-medium);
  margin-bottom: 15px;
  font-style: italic;
}

.sub-text {
  font-size: 0.85em;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.4;
}

button[type="submit"] {
  grid-column: 1 / -1;
  background-color: var(--primary-blue-medium);
  color: white;
  padding: 16px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  margin-top: 25px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-family: 'Inter', sans-serif;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

button[type="submit"]:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-3px);
}

/* Resultados */
#results {
  margin-top: 40px;
  padding: 30px;
  border: 2px solid var(--primary-blue-medium);
  border-radius: 10px;
  background-color: #EBF5FB;
  font-weight: 600;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

#results p {
  margin: 10px 0;
  line-height: 1.6;
}

#results p strong {
  color: var(--primary-blue-dark);
}

.small-text {
  font-size: 0.8em;
  color: var(--text-medium);
  font-weight: 400;
  font-style: italic;
  margin-top: 20px;
}

/* Sección "Acerca de / Metodología" (Acordeón) */
.about-section {
  margin-top: 40px;
  border: 1px solid var(--border-color-medium);
  border-radius: 10px;
  overflow: hidden;
  background-color: #FFFFFF;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

.accordion {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue-dark);
  cursor: pointer;
  padding: 20px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.15em;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion:after {
  content: '\\25BC';
  font-size: 1em;
  color: var(--primary-blue-dark);
  float: right;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.accordion.active:after {
  transform: rotate(180deg);
}

.active, .accordion:hover {
  background-color: var(--primary-blue-medium);
  color: white;
}

.active:after, .accordion:hover:after {
  color: white;
}

.panel {
  padding: 0 20px;
  background-color: #FFFFFF;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.panel p {
  padding: 20px 0;
  margin: 0;
  font-size: 0.95em;
  color: var(--text-dark);
}

/* Footer */
.app-footer {
  background-color: var(--primary-blue-very-dark);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 35px 40px;
  margin-top: 60px;
  font-size: 0.9em;
  line-height: 1.8;
  box-shadow: none !important;
  font-weight: 300;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

.app-footer p {
  margin: 5px 0;
}

.app-footer a {
  color: white;
  text-decoration: underline;
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px;
  }

  .logo-and-name {
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
  }

  .language-selector {
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }

  .language-selector button {
    margin: 0 5px;
  }
.navigation-buttons {
    margin-left: 0;
    justify-content: center;
    order: 2;
  }
  
  .language-selector {
    order: 3;
  }
  
  .nav-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .header-intro-section {
    padding: 30px 20px 20px;
  }

  .main-page-title {
    font-size: 2.2em;
    flex-direction: column;
  }

  .highlight-box-1 {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .highlight-text-1 {
    white-space: normal;
  }

  .project-intro {
    font-size: 1em;
    text-align: center;
  }

  .container {
    padding: 30px 20px;
  }

  fieldset.form-section {
    padding: 15px;
  }

  legend {
    font-size: 1.2em;
    left: 10px;
  }

  .form-group {
    padding: 10px;
  }

  label {
    font-size: 0.95em;
  }

  input[type="number"], select {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  button[type="submit"] {
    font-size: 1.05em;
    padding: 12px 20px;
  }

  #results {
    padding: 20px;
    font-size: 0.9em;
  }

  .accordion {
    font-size: 1em;
    padding: 15px;
  }

  .panel p {
    padding: 15px 0;
    font-size: 0.9em;
  }

  .app-footer {
    padding: 25px 20px;
    font-size: 0.85em;
  }

  /* LOGO EN MÓVIL TAMBIÉN AMPLIADO AL DOBLE (de 80px a 160px) */
  .hana-logo {
    height: 160px;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    filter: none !important;
    -webkit-filter: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
  }
}
