/* ============================================================
   Foro Viajes - hoja de estilo estatica
   Reproduce fielmente el aspecto del foro SMF original
   (paleta y degradados extraidos del tema default), sin el
   motor SMF, sin logos SMF y sin fechas antiguas.
   Degradados reales muestreados del sprite main_block:
     barra categoria : #7B889A -> #A0B2C5 (texto blanco)
     barra titulo    : #D2D6D9 -> #DDE3E8 (texto oscuro)
   Acento naranja de la pestana activa (tema curve).
   ============================================================ */

* { box-sizing: border-box; }

body {
  background: #e9eef2;
  font: 82%/1.4 Verdana, Arial, Helvetica, sans-serif;
  color: #444;
  margin: 0;
  padding: 14px 0;
}

#wrapper { width: 92%; max-width: 980px; margin: 0 auto; }

a:link, a:visited { color: #2a5c8a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Cabecera ---------- */
#header {
  background: linear-gradient(#f4f7fa, #dce7f1);
  border: 1px solid #b9c9db;
  border-radius: 8px 8px 0 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forumtitle {
  margin: 0;
  font: 400 2.1em "Trebuchet MS", Arial, Helvetica, sans-serif;
  color: #55606b;
  letter-spacing: -.5px;
}
.forumtitle a:link, .forumtitle a:visited { color: #55606b; }
.header_right { color: #8a99a8; font-size: .85em; text-align: right; }

/* ---------- Barra de bienvenida + login + buscar ---------- */
.info_bar {
  background: #fbfcfd;
  border: 1px solid #b9c9db;
  border-top: 0;
  padding: 10px 18px;
  font-size: .92em;
  color: #444;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.info_bar .welcome { flex: 1; min-width: 260px; }
.info_bar .miniform { margin-top: 6px; }
.info_bar input[type=text], .info_bar input[type=password], .info_bar select {
  border: 1px solid #b7c0cb; padding: 3px 4px; font-size: .95em; vertical-align: middle;
}
.info_bar .btn {
  background: linear-gradient(#fdfdfd,#e7ecf1); border: 1px solid #a9b6c4;
  padding: 3px 10px; border-radius: 3px; cursor: pointer; font-size: .9em;
}
.info_bar .news { text-align: right; min-width: 180px; }
.info_bar .news b { color: #2a3f57; }
.info_bar .searchbox { margin-top: 6px; white-space: nowrap; }

/* ---------- Menu principal (pestanas) ---------- */
#main_menu {
  list-style: none; margin: 0 0 12px; padding: 4px 8px;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid #b9c9db; border-top: 0;
  border-radius: 0 0 6px 6px;
}
#main_menu li { float: left; margin-right: 4px; }
#main_menu a {
  display: block; padding: 7px 15px; color: #33475b; font-weight: 700; font-size: .95em;
  border-radius: 4px;
}
#main_menu a:hover { background: #d4dbe4; color: #22303f; text-decoration: none; }
#main_menu a.active {
  background: linear-gradient(#f2a24a, #e07d16);
  color: #fff; border: 1px solid #c9690a;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
#main_menu a.active:hover { background: linear-gradient(#f4ab58, #e5851d); }

/* ---------- Boton la calculadora del viajero (naranja SMF) ---------- */
.cta_calc {
  margin: 0 0 12px;
  background: linear-gradient(#f2a24a, #e07d16);
  border: 1px solid #c9690a;
  border-radius: 5px;
  padding: 11px 14px;
  text-align: center;
}
.cta_calc a { color: #fff !important; font-weight: 700; font-size: 1.05em; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.cta_calc a:hover { text-decoration: none; }
.cta_calc .sub { display: block; font-weight: 400; font-size: .82em; color: #fff3e2; margin-top: 3px; }

/* ---------- Migas de pan ---------- */
.navigate_section {
  font-size: .9em; color: #55677a; margin: 0 0 10px; padding: 6px 2px;
}
.navigate_section a { color: #2a5c8a; }

/* ---------- Barras ---------- */
.catbg {
  background: linear-gradient(#7b889a, #a0b2c5);
  color: #fff;
  font: 700 1.15em Arial, Helvetica, sans-serif;
  padding: 8px 12px; margin: 0;
  border-radius: 5px 5px 0 0;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.catbg a:link, .catbg a:visited { color: #fff; }
.titlebg {
  background: linear-gradient(#d2d6d9, #dde3e8);
  color: #333;
  font: 700 1.02em Arial, Helvetica, sans-serif;
  padding: 6px 12px;
  border: 1px solid #c3cdd6; border-top: 0;
}

/* ---------- Mensajes ---------- */
.post { display: flex; border: 1px solid #c3cdd6; border-top: 0; overflow: hidden; }
.post.windowbg  { background: #e7eaef; }
.post.windowbg2 { background: #f0f4f7; }
.poster { width: 160px; min-width: 160px; padding: 12px; border-right: 1px solid #d5dae1; }
.poster .name { font-weight: 700; color: #2a3f57; }
.poster .role { color: #7286a0; font-size: .82em; margin-top: 2px; }
.poster .avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(#8ea3bb,#6f86a1); color: #fff;
  font: 700 1.5em Arial, sans-serif;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.postarea { flex: 1; padding: 14px 16px; color: #222; }
.postarea p { margin: 0 0 .8em; }
.postarea h3 { color: #2a3f57; font-size: 1.05em; margin: 1.1em 0 .5em; }
.postarea ul { margin: 0 0 .9em; padding-left: 1.3em; }
.postarea li { margin-bottom: .35em; }

/* ---------- Centro de informacion (pie tipo foro) ---------- */
.info_center { margin-top: 16px; }
.info_center .catbg { border-radius: 5px 5px 0 0; }
.info_center .body {
  border: 1px solid #c3cdd6; border-top: 0; background: #f0f4f7; padding: 12px 14px;
}
.info_center .body h4 { margin: 0 0 6px; color: #2a3f57; font-size: 1em; }
.info_center .body p { margin: 0 0 10px; font-size: .95em; }
.info_center .body .stat b { color: #2a3f57; }

/* ---------- Espacios reservados ---------- */
.ad-slot, .aff-slot {
  margin: 12px 0; padding: 18px; text-align: center;
  border: 1px dashed #b9c3d0; border-radius: 5px; background: #fbfcfe;
  color: #8a97a8; font-size: .9em; letter-spacing: .5px;
}
.aff-slot { border-color: #cdb96a; background: #fffdf4; color: #9a8535; }

/* ---------- La calculadora del viajero ---------- */
.calculadora {
  margin: 0 0 14px;
  border: 1px solid #c9690a;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.calculadora .calc-head {
  background: linear-gradient(#f2a24a, #e07d16);
  color: #fff; padding: 10px 14px;
  font-weight: 700; font-size: 1.15em;
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.calculadora .calc-head .sub { display: block; font-weight: 400; font-size: .75em; color: #fff3e2; margin-top: 2px; }
.wizard-step label { display: block; font-size: .85em; color: #55677a; margin: 8px 0 3px; font-weight: 700; }
.wizard-step select, .wizard-step input[type=number], .wizard-step input[type=text] {
  width: 100%; padding: 6px 8px; border: 1px solid #b7c0cb; border-radius: 3px; font-size: .95em;
  background: #fff;
}
.calc-row { display: flex; gap: 12px; flex-wrap: wrap; }
.calc-row > div { flex: 1; min-width: 150px; }
.calc-btn {
  margin-top: 12px; background: linear-gradient(#f2a24a, #e07d16); color: #fff; border: 1px solid #c9690a;
  padding: 8px 18px; border-radius: 4px; font-weight: 700; cursor: pointer; font-size: .95em;
}
.calc-btn:hover { background: linear-gradient(#f4ab58, #e5851d); }
.calc-result {
  margin-top: 14px; padding: 12px 14px; background: #f0f4f7; border: 1px solid #c3cdd6;
  border-radius: 4px; display: none;
}
.calc-result.show, .calc-result.teaser { display: block; }
.calc-result .big { font-size: 1.5em; font-weight: 700; color: #2a3f57; }
.calc-result .breakdown { margin-top: 8px; font-size: .88em; color: #55677a; }
.calc-result .breakdown span { display: inline-block; margin-right: 14px; }
.calc-note { font-size: .78em; color: #8a97a8; margin-top: 8px; }
.calc-cta {
  margin-top: 10px; padding: 8px 10px; background: #fffdf4; border: 1px dashed #cdb96a;
  border-radius: 4px; font-size: .85em; color: #9a8535; text-align: center; font-weight: 700;
}
.calc-checklist label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: #333; margin: 6px 0; }
.calc-progress { height: 8px; background: #e3e9ef; border-radius: 4px; overflow: hidden; margin: 10px 0; }
.calc-progress-bar { height: 100%; background: linear-gradient(#f2a24a,#e07d16); width: 0%; transition: width .2s; }

/* ---------- Carrusel obligatorio (equipaje -> documentos -> vuelo) ---------- */
.wizard-steps { display: flex; gap: 6px; margin-bottom: 16px; }
.wstep {
  flex: 1; text-align: center; padding: 7px 6px; font-size: .82em; font-weight: 700;
  color: #a9b6c4; background: #f0f4f7; border-radius: 4px; border: 1px solid #dde3e8;
}
.wstep .wstep-n {
  display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 50%;
  background: #dde3e8; color: #fff; font-size: .85em; margin-right: 4px;
}
.wstep.active { color: #c9690a; background: #fdf3e6; border-color: #e3c491; }
.wstep.active .wstep-n { background: #e07d16; }
.wstep.done { color: #4a8a5c; }
.wstep.done .wstep-n { background: #4a8a5c; }
.wizard-step { display: none; padding: 16px; }
.wizard-step.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.wizard-nav .wizard-prev { background: #eef2f6; color: #55677a; border-color: #c3cdd6; }
.wizard-final { display: none; padding: 16px; }
.wizard-final.show { display: block; }
.wizard-final h3, .wizard-final > p, .wizard-final > .wizard-prev { text-align: center; }
#resumen_final .calc-result.teaser { text-align: left; margin-bottom: 10px; position: relative; }
.teaser-label { font-weight: 700; color: #2a3f57; font-size: .92em; margin-bottom: 4px; }
.blur-value {
  display: inline-block; filter: blur(6px); -webkit-filter: blur(6px);
  user-select: none; pointer-events: none;
}

.email-capture {
  margin-top: 14px; padding: 18px 16px; text-align: center;
  background: linear-gradient(#f2a24a, #e07d16); border: 1px solid #c9690a; border-radius: 6px;
}
.email-capture-title { color: #fff; font-weight: 700; font-size: 1.05em; text-shadow: 0 1px 0 rgba(0,0,0,.2); margin-bottom: 12px; }
.email-capture-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.email-capture-form input[type=email] {
  flex: 1; min-width: 220px; max-width: 320px; padding: 10px 12px; border: 1px solid #c9690a; border-radius: 4px; font-size: 1em;
}
.email-capture-form input[type=text] {
  padding: 10px 8px; border: 1px solid #c9690a; border-radius: 4px; font-size: 1em; text-align: center;
}
.email-capture-form .calc-btn { background: #2a3f57; border-color: #1c2c3f; }
.email-capture-form .calc-btn:hover { background: #33495f; }
.email-capture-note { margin: 10px 0 0; font-size: .78em; color: #fff3e2; }

/* ---------- Paginas de sistema (stats, login, search, help) ---------- */
.syspage { padding: 16px; }
.syspage h2 { margin: 0 0 14px; color: #2a3f57; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 10px; margin-bottom: 16px; }
.stat-box { background: #f0f4f7; border: 1px solid #c3cdd6; border-radius: 4px; padding: 10px 12px; }
.stat-box .n { font-size: 1.4em; font-weight: 700; color: #2a3f57; }
.stat-box .l { font-size: .82em; color: #66788c; }
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { display: flex; justify-content: space-between; padding: 5px 8px; border-bottom: 1px solid #e3e9ef; font-size: .92em; }
.top-list li b { color: #2a5c8a; }
.login-box { max-width: 380px; margin: 10px auto; }
.login-box label { display: block; font-size: .85em; color: #55677a; margin: 10px 0 3px; font-weight: 700; }
.login-box input { width: 100%; padding: 7px 8px; border: 1px solid #b7c0cb; border-radius: 3px; }
.help-block { margin-bottom: 16px; }
.help-block h3 { color: #2a3f57; font-size: 1.02em; margin: 0 0 4px; }
.help-block p { margin: 0 0 4px; color: #444; font-size: .95em; }
#search_input { padding: 8px 10px; font-size: 1em; }
.search-results { margin-top: 14px; }
.search-item { padding: 10px 0; border-bottom: 1px solid #e3e9ef; }
.search-item a { font-weight: 700; }
.search-item p { margin: 3px 0 0; font-size: .88em; color: #66788c; }
.search-empty { color: #8a97a8; font-size: .92em; padding: 10px 0; }

/* ---------- Pie ---------- */
#footer_section {
  margin-top: 14px; padding: 12px 2px; border-top: 1px solid #c3cdd6;
  font-size: .85em; color: #66788c; text-align: center;
}

@media (max-width: 600px) {
  #header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .info_bar { flex-direction: column; }
  .info_bar .news { text-align: left; }
  .post { display: block; }
  .poster { width: auto; border-right: 0; border-bottom: 1px solid #d5dae1; display: flex; gap: 10px; align-items: center; }
  .poster .avatar { margin-bottom: 0; }
  #main_menu a { padding: 7px 11px; }
}
