/* =========================================================
   NEW FOOTER (prueba) — scoped under .nh-footer
   No modifica style.css / comision.blade del footer legacy
   ========================================================= */

.nh-footer {
  --nh-green: #6fc13a;
  --nh-green-dark: #57a029;
  --nh-dark: #231c16;
  --nh-darker: #1a1511;
  --nh-black: #221f1c;
  --nh-gray: #f5f3ec;
  --nh-gray2: #e7e3d8;
  --nh-text: #333;
  --nh-text-light: #4e4b45;
  --nh-white: #fff;
  --nh-radius: 10px;
  font-family: 'Raleway', sans-serif;
  display: block;
  width: 100%;
  max-width: none;
  float: none;
  clear: both;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.65);
  background: var(--nh-dark);
  font-size: 13.5px;
}

.nh-footer *,
.nh-footer *::before,
.nh-footer *::after {
  box-sizing: border-box;
}

.nh-footer a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}

.nh-footer a:hover {
  color: var(--nh-green);
}

.nh-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- CONSULTAS / FORM (alineado a home #contacto; fondo propio) ---------- */
.nh-footer__consultas {
  background: #f3f3ef;
  border-top: 1px solid var(--nh-gray2);
  padding: 48px 0 64px;
  color: var(--nh-text);
}

.nh-footer__title--dark {
  color: var(--nh-green-dark);
}

.nh-footer__consultas-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.nh-footer__consultas-heading {
  font-family: 'Raleway', sans-serif !important;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--nh-black);
  line-height: 1.15;
  margin: 0 0 10px;
}

.nh-footer__consultas-text {
  color: var(--nh-text-light);
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  max-width: 42ch;
}

.nh-footer__consultas-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--nh-text-light);
}

.nh-footer__consultas-points li {
  padding-left: 0;
  font-weight: 400;
  line-height: 1.4;
}

.nh-footer__consultas-points li::before {
  content: "— ";
  color: var(--nh-green);
  font-weight: 700;
}

.nh-footer__consultas .nh-footer__btn--outline {
  width: auto;
  margin-bottom: 0;
  background: #fff;
  color: var(--nh-black) !important;
  border-color: var(--nh-gray2);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
}

.nh-footer__consultas .nh-footer__btn--outline:hover {
  border-color: var(--nh-green);
  color: var(--nh-green) !important;
}

.nh-footer__form {
  background: #fff;
  border: 1px solid var(--nh-gray2);
  border-radius: var(--nh-radius);
  box-shadow: 0 2px 10px rgba(30, 24, 16, 0.06);
  padding: 26px;
  display: grid;
  gap: 14px;
}

.nh-footer__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.nh-footer__field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--nh-text-light);
  display: block;
  margin-bottom: 5px;
}

.nh-footer__form input[type="text"],
.nh-footer__form input[type="email"],
.nh-footer__form input[type="tel"],
.nh-footer__form input[type="file"],
.nh-footer__form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--nh-gray2);
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  background: #eae9e9;
  color: var(--nh-text);
  outline: none;
  box-shadow: none;
  float: none;
  height: auto;
  max-width: none;
}

.nh-footer__form textarea {
  min-height: 90px;
  resize: vertical;
}

.nh-footer__form input:focus,
.nh-footer__form textarea:focus {
  border-color: var(--nh-green);
  background: #fff;
}

.nh-footer__reasons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nh-footer__reason {
  padding: 7px 14px;
  border: 1px solid var(--nh-gray2);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--nh-gray);
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  color: var(--nh-text-light);
  line-height: 1.2;
}

.nh-footer__reason.active {
  background: var(--nh-green);
  color: #fff;
  border-color: var(--nh-green);
}

.nh-footer__form-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.nh-footer__form-bottom .nh-footer__btn {
  width: auto;
  min-width: 160px;
  margin-bottom: 0;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
}

.nh-footer__form-bottom .nh-footer__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nh-footer__main {
  padding: 50px 0 30px;
}

.nh-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.nh-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fff !important;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.nh-footer__logo:hover {
  color: #fff !important;
}

.nh-footer__logo-leaf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 18px;
  line-height: 1;
  color: var(--nh-green);
  flex-shrink: 0;
}

.nh-footer__logo img,
.nh-footer__logo-icon {
  display: none;
}

.nh-footer__tagline {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  max-width: 32ch;
}

.nh-footer__contact {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

.nh-footer__contact p {
  margin: 0 0 12px;
}

.nh-footer__contact a {
  color: rgba(255, 255, 255, 0.65);
}

.nh-footer__contact a:hover {
  color: var(--nh-green);
}

.nh-footer__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.nh-footer__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-start;
}

.nh-footer__col a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

.nh-footer__col a:hover {
  color: #fff;
}

.nh-footer__bottom {
  padding: 18px 0 22px;
  border-top: none;
  background: transparent;
}

.nh-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.nh-footer__bottom-inner a {
  color: rgba(255, 255, 255, 0.4);
}

.nh-footer__bottom-inner a:hover {
  color: var(--nh-green);
}

.nh-footer__cta-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px 16px;
}

.nh-footer__cta-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.nh-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}

.nh-footer__btn--primary {
  background: var(--nh-green);
  color: #fff !important;
}

.nh-footer__btn--primary:hover {
  background: var(--nh-green-dark);
  color: #fff !important;
}

.nh-footer__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

.nh-footer__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.nh-footer__badges {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.nh-footer__badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.7) !important;
}

.nh-footer__badge:hover {
  border-color: rgba(106, 191, 30, 0.35);
  color: #fff !important;
}

.nh-footer__badge img {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

.nh-footer__badge span {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

/* Legal / comisiones — mismo fondo que el resto del footer */
.nh-footer__legal {
  background: transparent;
  padding: 8px 0 20px;
  border-top: none;
}

.nh-footer__legal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.nh-footer__legal-copy p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.nh-footer__legal-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nh-footer__legal-aside img {
  height: 56px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

.nh-footer__top {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.nh-footer__top:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.nh-footer__details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.nh-footer__details summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nh-footer__details summary::-webkit-details-marker {
  display: none;
}

.nh-footer__details summary::after {
  content: '+';
  font-size: 16px;
  color: var(--nh-green);
}

.nh-footer__details[open] summary::after {
  content: '–';
}

.nh-footer__details-body {
  padding: 4px 0 8px;
}

.nh-footer__details-body p {
  margin: 0 0 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.48);
}

.nh-footer__details-body a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
}

.nh-footer__details-body a:hover {
  color: var(--nh-green);
}

.nh-footer__details-body strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.nh-footer__accent {
  color: var(--nh-green);
  font-weight: 700;
}

.nh-footer__legal .nh-footer__details + .nh-footer__details {
  margin-top: 2px;
}

/* Cuando hay footer nuevo */
.nh + .nh-footer,
.row.margin-header + .nh-footer {
  clear: both;
}

@media (max-width: 900px) {
  .nh-footer__consultas-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nh-footer__form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .nh-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nh-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nh-footer__inner {
    padding: 0 16px;
  }

  .nh-footer__consultas {
    padding: 36px 0 48px;
  }

  .nh-footer__form-bottom .nh-footer__btn {
    width: 100%;
  }

  .nh-footer__main {
    padding: 36px 0 22px;
  }

  .nh-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nh-footer__grid {
    grid-template-columns: 1fr;
  }

  .nh-footer__brand {
    grid-column: auto;
  }
}
