/* ================================================================
   GALGO GROUP — Overrides & mejoras de diseño
   Cargado después de style.css y custom.css para mayor especificidad
   ================================================================ */

/* ─── HONEYPOT: trampa anti-bot ─────────────────────────────── */
.lw-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  tab-index: -1;
}

/* ─── BANNER: contenido pegado a la derecha ──────────────────── */
#home .slide-item .auto-container {
  display: flex;
  justify-content: flex-end;
}
#home .slide-item .content-box {
  text-align: right;
  padding-left: 0;
  padding-right: 48px;
}
#home .slide-item .content-box:before {
  left: auto;
  right: 0;
}
#home .slide-item .content-box .btn-box {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 991.98px) {
  #home .slide-item .auto-container {
    justify-content: center;
  }
  #home .slide-item .content-box {
    text-align: center;
    padding-right: 0;
  }
  #home .slide-item .content-box:before {
    left: 0;
    right: auto;
  }
  #home .slide-item .content-box .btn-box {
    justify-content: center;
  }
}

/* ─── INPUTS: estados focus y validación visual ──────────────── */

/* Inputs en secciones oscuras (#contacto, #cotiza) */
#contacto .form-column .block .form-group input,
#contacto .form-column .block .form-group textarea,
#cotiza .form-column .block .form-group input:not([type=checkbox]),
#cotiza .form-column .block .form-group select,
#cotiza .form-column .block .form-group textarea {
  border: 2px solid rgba(255,255,255,0.2);
  padding: 11px 16px;
  font-size: 15px;
  color: #1a1a2e;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

#contacto .form-column .block .form-group input:focus,
#contacto .form-column .block .form-group textarea:focus,
#cotiza .form-column .block .form-group input:not([type=checkbox]):focus,
#cotiza .form-column .block .form-group select:focus,
#cotiza .form-column .block .form-group textarea:focus {
  border-color: #5bc6de;
  box-shadow: 0 0 0 3px rgba(91,198,222,0.3);
  outline: none;
  background-color: #fff;
}

/* Validación visual: rojo si inválido, verde si válido (solo tras interacción) */
#contacto .form-column .block .form-group input:invalid:not(:placeholder-shown),
#cotiza .form-column .block .form-group input:not([type=checkbox]):invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231,76,60,0.2);
}
#contacto .form-column .block .form-group input:valid:not(:placeholder-shown),
#cotiza .form-column .block .form-group input:not([type=checkbox]):valid:not(:placeholder-shown) {
  border-color: #27ae60;
}

/* Select vacío (placeholder) */
#cotiza .form-column .block .form-group select:invalid {
  color: #9ca3af;
}

/* Inputs en página de contacto (fondo claro) */
#contacto-page .contactForm input,
#contacto-page .contactForm textarea {
  border: 2px solid #dde6f0;
  padding: 11px 16px;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#contacto-page .contactForm input:focus,
#contacto-page .contactForm textarea:focus {
  border-color: #5bc6de;
  box-shadow: 0 0 0 3px rgba(91,198,222,0.2);
  outline: none;
  background-color: #fff;
}
#contacto-page .contactForm input:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}
#contacto-page .contactForm input:valid:not(:placeholder-shown) {
  border-color: #27ae60;
}

/* Newsletter */
#subscribe .subscribe-form .form-control {
  border: 2px solid rgba(255,255,255,0.35);
  padding: 11px 16px;
  font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#subscribe .subscribe-form .form-control:focus {
  border-color: #5bc6de;
  box-shadow: 0 0 0 3px rgba(91,198,222,0.25);
  outline: none;
}
#subscribe .subscribe-form .form-control:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

/* ─── BOTONES SUBMIT: mejoras ─────────────────────────────────── */

/* Botón de formularios (contact + contacto page) */
#contacto .form-column .block .form-group .btnForm,
#contacto-page .contactForm .btnForm {
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background-color 0.25s ease, color 0.25s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}
#contacto .form-column .block .form-group .btnForm:hover,
#contacto-page .contactForm .btnForm:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(91,198,222,0.45);
}
#contacto .form-column .block .form-group .btnForm:active,
#contacto-page .contactForm .btnForm:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Botón cotiza */
#cotiza .form-column .block .form-group .btnCotiza {
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background-color 0.25s ease, color 0.25s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
}
#cotiza .form-column .block .form-group .btnCotiza:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(91,198,222,0.45);
}
#cotiza .form-column .block .form-group .btnCotiza:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Newsletter subscribe button */
#subscribe .btnSubscribe {
  transition: background-color 0.25s ease, transform 0.18s ease;
}
#subscribe .btnSubscribe:hover {
  transform: scale(1.06);
}

/* Botones CTA generales (theme-btn) */
.theme-btn.btn-style-one {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.theme-btn.btn-style-one:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4,67,163,0.22);
}
.theme-btn.btn-style-one:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ─── ALERTS / FEEDBACK ──────────────────────────────────────── */
.contact-form-success,
.contact-form-error {
  border-radius: 8px;
  font-size: 14px;
  padding: 12px 16px;
}

/* ─── FORMULARIO COTIZA: mejoras de legibilidad ──────────────── */
#cotiza .form-column .block .titleBlock {
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
  margin-top: 8px;
  margin-bottom: 14px;
}

/* Checkboxes más grandes y usables */
#cotiza .form-column .block .form-group .checkBox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
  accent-color: #5bc6de;
  margin-top: 2px;
}
#cotiza .form-column .block .form-group .flexCheck .textCheckbox {
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  flex: 0 0 calc(90% - 8px);
  padding-left: 8px;
}

/* ─── MOBILE: correcciones ───────────────────────────────────── */
@media (max-width: 767.98px) {

  /* Header top info: reducir tamaño y gaps */
  .header-top .header-top-list {
    gap: 10px;
    font-size: 12px;
  }

  /* Formulario contacto homepage: columnas a full width */
  #contacto .form-column .block .form-group.col-md-6,
  #contacto .form-column .block .form-group.col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  /* Sección contacto: apilar columnas */
  #contacto .row.g-0 .form-column,
  #contacto .row.g-0 .secondColumn {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  /* Cotiza: columnas a full width */
  #cotiza .form-column .block .form-group.col-md-6,
  #cotiza .form-column .block .form-group.col-lg-6,
  #cotiza .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  /* Banner: tamaño de texto ajustado */
  #home .slide-item .content-box .title {
    font-size: 26px !important;
    line-height: 1.2;
  }
  #home .slide-item .content-box .sub-title {
    font-size: 15px;
  }

  /* Botón banner: centrado */
  #home .slide-item .content-box .btn-box {
    justify-content: center;
    margin-top: 16px;
  }

  /* Página de contacto: stack columnas */
  #contact-top .col-xl-6,
  #contacto-page .col-xl-7,
  #contacto-page .col-xl-5 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  /* Calculadoras: stack vertical */
  [id^="calculadora-"] .row.g-0 > div {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    order: 0 !important;
  }

  /* Ajuste de padding en secciones */
  #cotiza {
    padding: 50px 0;
  }
  .page-title.headerSection {
    min-height: 180px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 575.98px) {
  /* Botones: full width en móvil muy pequeño */
  .theme-btn.btn-style-one {
    display: block;
    text-align: center;
    width: 100%;
  }
  #subscribe .theme-btn.btn-style-one,
  .header-top .theme-btn.btn-style-one,
  #contacto .secondColumn .theme-btn.btn-style-one,
  #contacto-page .theme-btn.btn-style-one {
    display: inline-block;
    width: auto;
  }
}

/* ================================================================
   HEADER — reestructura completa
   Corrige: top-bar layout, nav overflow en desktop, posicionamiento
   mobile (576-991px), sticky header y active state.
   ================================================================ */

/* ─── TOP BAR ─────────────────────────────────────────────────── */
.lw-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 4px 0;
  gap: 16px;
  min-height: 44px;
}

/* Info list */
.header-top .header-top-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
}
.header-top .header-top-list li {
  margin: 0;
  white-space: nowrap;
  font-size: 12px;
}
/* La dirección puede truncarse si el viewport es estrecho */
.header-top .header-top-list li.lw-address {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}
/* Icono de color de marca */
.header-top .header-top-list li i {
  color: #5bc6de !important;
  margin-right: 6px;
}

/* CTA button top-right */
.header-top .top-right .btnTwo {
  background-color: #5bc6de !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-top .top-right .btnTwo span {
  color: #fff;
  font-family: "Mukta Mahee", sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.header-top .top-right .btnTwo:hover span {
  color: #fff !important;
}

/* Ocultar address en pantallas medianas */
@media (max-width: 1199.98px) {
  .header-top .header-top-list li.lw-address {
    display: none;
  }
}
/* El top-bar completo se oculta en mobile (tema ya lo hace en header-style-two) */

/* ─── MAIN BOX: flex extremo a extremo ────────────────────────── */
.header-style-two .header-lower .main-box {
  max-width: none !important;
  padding: 0 40px !important;
  display: flex !important;
  align-items: center !important;
}

/* ─── LOGO BOX ─────────────────────────────────────────────────── */
.header-style-two .header-lower .main-box .logo-box {
  flex-shrink: 0 !important;
  min-width: auto !important;
  height: auto !important;
  margin-top: 0 !important;
  margin-right: 32px !important;
  padding: 16px 0 !important;
}
.header-style-two .header-lower .main-box .logo-box:before {
  display: none !important;
}
.header-style-two .header-lower .main-box .logo-box .logo img {
  width: 180px !important;
  height: auto !important;
  display: block !important;
}
@media (max-width: 1399.98px) {
  .header-style-two .header-lower .main-box .logo-box .logo img {
    width: 150px !important;
  }
}

/* ─── NAV OUTER: flex fill ─────────────────────────────────────── */
.header-style-two .main-box .nav-outer {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: flex-end !important;
  overflow: visible;
}

/* ─── NAV ITEMS: tamaños que sí caben en una sola fila ───────────
   Cálculo con max-width: none y logo 200px + 32px = 232px:
   ≥1400px (13px, 22px gap): ~780px nav < 1056px+ disponible ✓
   1200-1400px (11.5px, 16px gap): ~680px < 880px disponible ✓
   992-1200px (10.5px, 12px gap): ~640px < 750px disponible ✓
   ──────────────────────────────────────────────────────────── */
.header-style-two .header-lower .main-box .main-menu .navigation > li {
  margin-right: 22px !important;
  padding: 20px 0 !important;
  white-space: nowrap;
}
.header-style-two .header-lower .main-box .main-menu .navigation > li:last-child {
  margin-right: 0 !important;
}
.header-style-two .header-lower .main-box .main-menu .navigation > li > a {
  font-size: 13px !important;
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: var(--theme-color-light) !important;
}
.header-style-two .header-lower .main-box .main-menu .navigation > li > a:hover {
  color: #5bc6de !important;
}

/* Dropdown chevron ajustado */
.header-style-two .header-lower .main-box .main-menu .navigation > li.dropdown > a {
  padding-right: 15px !important;
  margin-right: -15px !important;
}
.header-style-two .header-lower .main-box .main-menu .navigation > li.dropdown > a:after {
  right: 2px !important;
  font-size: 10px !important;
}

@media (max-width: 1399.98px) {
  .header-style-two .header-lower .main-box .main-menu .navigation > li {
    margin-right: 16px !important;
  }
  .header-style-two .header-lower .main-box .main-menu .navigation > li > a {
    font-size: 11.5px !important;
    letter-spacing: 0.1px !important;
  }
}
@media (max-width: 1199.98px) {
  .header-style-two .header-lower .main-box .main-menu .navigation > li {
    margin-right: 12px !important;
  }
  .header-style-two .header-lower .main-box .main-menu .navigation > li > a {
    font-size: 10.5px !important;
    letter-spacing: 0 !important;
  }
}

/* ─── DROPDOWN PANEL ────────────────────────────────────────────── */
.main-menu .navigation > li > ul {
  border-top: 2px solid #3366ca;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}
.main-menu .navigation > li > ul > li > a {
  font-family: "Mukta Mahee", sans-serif;
  font-size: 13px !important;
  font-weight: 600;
}

/* ─── ACTIVE STATE ─────────────────────────────────────────────── */
.main-header .main-menu .navigation > li.active:before {
  background-color: #5bc6de !important;
  left: 0 !important;
  width: 100% !important;
}
.main-header .main-menu .navigation > li.active > a {
  color: #5bc6de !important;
}

/* ─── OUTER BOX (toggler desktop) ─────────────────────────────── */
.header-style-two .header-lower .main-box .outer-box {
  flex-shrink: 0;
  margin-right: 0 !important;
  margin-left: 16px;
  display: flex;
  align-items: center;
}

/* ─── MOBILE (576px – 991px): header sólido en el flujo ───────── */
/* El tema oculta header-top a ≤991px pero header-lower sigue siendo
   position:absolute — esto lo rompe en tablets. Lo corregimos: */
@media (max-width: 991.98px) {
  .header-style-two .header-lower {
    position: relative !important;
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
  }
  .header-style-two .header-lower .main-box {
    padding: 0 !important;
    justify-content: space-between;
  }
  .header-style-two .header-lower .main-box .logo-box {
    margin-right: 0 !important;
    padding: 12px 0 !important;
  }
  .header-style-two .header-lower .main-box .logo-box .logo img {
    max-width: 130px !important;
    max-height: 44px;
  }
}

/* ─── STICKY HEADER ─────────────────────────────────────────────── */
.header-style-two .sticky-header {
  background-color: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}
/* Sticky: logo izquierda, nav centrada */
.header-style-two .sticky-header .container-sticky {
  max-width: none !important;
  padding: 0 !important;
}
.header-style-two .sticky-header .inner-container {
  max-width: none !important;
  padding: 0 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
.header-style-two .sticky-header .nav-outer {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
}
.header-style-two .sticky-header .logo img {
  width: 130px !important;
  height: auto !important;
  display: block !important;
}

/* Sticky nav items */
.header-style-two .sticky-header .main-menu .navigation > li {
  margin-left: 20px !important;
  margin-right: 0 !important;
  padding: 16px 0 !important;
  white-space: nowrap;
}
.header-style-two .sticky-header .main-menu .navigation > li > a {
  font-size: 13px !important;
  color: #0443a3 !important;
  white-space: nowrap;
}
.header-style-two .sticky-header .main-menu .navigation > li > a:hover {
  color: #3366ca !important;
}
@media (max-width: 1399.98px) {
  .header-style-two .sticky-header .main-menu .navigation > li {
    margin-left: 14px !important;
  }
  .header-style-two .sticky-header .main-menu .navigation > li > a {
    font-size: 11px !important;
  }
}
.header-style-two .sticky-header .main-menu .navigation > li.active:before {
  background-color: #3366ca !important;
  left: 0 !important;
  width: 100% !important;
}
.header-style-two .sticky-header .main-menu .navigation > li.active > a {
  color: #3366ca !important;
}
/* Toggler en sticky */
.sticky-header .mobile-nav-toggler {
  color: #0443a3 !important;
  font-size: 26px;
}

/* ─── MOBILE MENU (panel lateral) ──────────────────────────────── */
.mobile-menu .navigation li a {
  font-family: "Mukta Mahee", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.mobile-menu .navigation li:hover > a,
.mobile-menu .navigation li.active > a {
  color: #0443a3 !important;
}
