/* ==========================================================================
   IME García — Equipos Megger LP (static rebuild)
   Mobile-first. Desktop layout kicks in at 960px, matching the original
   Unbounce design breakpoint (1280px canvas / 320px mobile canvas).
   ========================================================================== */

:root {
  --green: #026000;
  --green-hover: #025b00;
  --green-active: #015600;
  --red-accent: #ef0000;
  --near-black: #111111;
  --gray-light: #f6f6f6;
  --gray-desc: #686868;
  --body-gray: #444444;
  --white: #ffffff;

  --font-body: "Roboto", Arial, sans-serif;

  --container-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-gray);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 26px;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0 0 16px;
  color: #000;
}

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  border-radius: 5px;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-hover);
}

.btn--primary:active {
  background: var(--green-active);
}

.btn--contact {
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  padding: 11px 12px;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.btn--contact:hover {
  background: var(--green-hover);
}

.btn--contact:active {
  background: var(--green-active);
}

/* HEADER ------------------------------------------------------------------ */

.site-header {
  background: var(--white);
  padding: 16px 0;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-header__logo {
  width: 210px;
  height: auto;
}

.site-header__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-group__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.contact-group__icon {
  width: 18px;
  height: auto;
}

.contact-group__buttons {
  display: flex;
  gap: 8px;
}

/* WhatsApp: un solo botón, así que el flex:1 del genérico .btn--contact lo
   estiraba a todo el ancho; aquí va en fila junto con la etiqueta. */
.contact-group:nth-child(2) {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.contact-group:nth-child(2) .contact-group__buttons {
  flex: 1 1 auto;
}

.contact-group:nth-child(2) .btn--contact {
  flex: 1 1 auto;
  width: auto;
}

/* HERO ------------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--near-black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-bg-mobile.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__copy {
  color: var(--white);
}

.hero__eyebrow {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.hero__title {
  color: var(--white);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero__divider {
  width: 100px;
  height: 6px;
  background: var(--red-accent);
  margin: 0 0 16px;
}

.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.7;
}

.lead-form {
  background: var(--white);
  border-radius: 8px;
  padding: 24px 20px;
}

.lead-form__title {
  color: #000;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.lead-form__title strong {
  font-weight: 700;
}

.lead-form__intro {
  color: #000;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 20px;
}

.lead-form__form .field {
  margin-bottom: 14px;
}

.lead-form__form label {
  display: block;
  font-family: Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  margin-bottom: 4px;
}

.lead-form__form input[type="text"],
.lead-form__form input[type="email"],
.lead-form__form input[type="tel"],
.lead-form__form textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: #000;
  background: #fff;
  border: 1px solid #bbbbbb;
  border-radius: 5px;
}

.lead-form__form textarea {
  height: 96px;
  padding: 10px 14px;
  resize: vertical;
}

/* Honeypot anti-spam: display:none para que quede fuera del árbol de
   accesibilidad y del autofill de móvil/gestores de contraseñas (el
   patrón "visualmente oculto" anterior seguía siendo detectado por el
   autofill de iOS/Android, lo que tiraba leads reales en silencio). */
.field--honeypot {
  display: none;
}

.lead-form__actions {
  margin-top: 20px;
}

.lead-form__actions .btn {
  width: 100%;
}

.lead-form__feedback {
  margin: 12px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.lead-form__feedback[data-state="success"] {
  color: #1b8a4b;
}

.lead-form__feedback[data-state="error"] {
  color: #c0392b;
}

/* PRODUCTS ---------------------------------------------------------------- */

.products {
  background: var(--white);
  padding: 48px 0;
  text-align: center;
}

.products__eyebrow {
  color: var(--red-accent);
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 12px;
}

.products__divider {
  width: 100px;
  height: 6px;
  background: var(--green);
  margin: 0 auto 20px;
}

.products__title {
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  max-width: 820px;
  margin: 0 auto 36px;
}

.products__title strong {
  font-weight: 500;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.product-card__media {
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto 20px;
  max-width: 340px;
}

.product-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 266 / 224;
  object-fit: cover;
}

.product-card h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  max-width: 320px;
  margin: 0 auto 12px;
}

.product-card p {
  color: var(--gray-desc);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* BANNER (green) ------------------------------------------------------------ */

.banner--green {
  background: var(--green);
  padding: 40px 0;
}

.banner__text {
  color: var(--white);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  text-align: center;
  max-width: 985px;
  margin: 0 auto;
}

.banner__text strong {
  font-weight: 500;
}

/* WHY ----------------------------------------------------------------- */

.why {
  background: var(--white);
  padding: 48px 0;
  text-align: center;
}

.why__title {
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto 36px;
}

.why__title strong {
  font-weight: 500;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
}

.why-card img {
  margin: 0 auto 16px;
}

.why-card h3 {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  max-width: 220px;
  margin: 0 auto;
}

/* CTA --------------------------------------------------------------------- */

.cta {
  position: relative;
  padding: 48px 0;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/fondo-rojo-cta.png");
  background-size: cover;
  background-position: center;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta__text {
  color: var(--white);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  max-width: 970px;
  margin: 0 auto 24px;
}

/* FOOTER ---------------------------------------------------------------- */

.site-footer {
  background: var(--near-black);
  padding: 24px 20px;
  display: flex;
  justify-content: center;
}

.site-footer img {
  width: 130px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Desktop (>= 960px) — matches original Unbounce breakpoint
   ========================================================================== */

@media (min-width: 960px) {
  .container {
    padding: 0 20px;
  }

  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .site-header__logo {
    width: 230px;
  }

  .site-header__contact {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    width: auto;
  }

  .contact-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .contact-group__buttons {
    gap: 10px;
  }

  .btn--contact {
    flex: 0 0 auto;
    width: 150px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  /* El botón de WhatsApp es de ancho automático (un solo botón, no dos
     como el de teléfono) -- el padding:0 genérico de arriba lo dejaba
     pegado al texto por los lados. */
  .contact-group:nth-child(2) .btn--contact {
    padding: 0 20px;
  }

  .hero__bg {
    background-image: url("../assets/hero-bg-desktop.jpg");
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 500px;
    align-items: center;
    column-gap: 60px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero__eyebrow {
    font-size: 20px;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__list {
    font-size: 20px;
  }

  .lead-form {
    padding: 32px;
  }

  .lead-form__title {
    font-size: 20px;
  }

  .lead-form__intro {
    font-size: 16px;
  }

  .products {
    padding: 64px 0;
  }

  .products__eyebrow {
    font-size: 20px;
  }

  .products__title {
    font-size: 28px;
  }

  .products__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 32px;
  }

  .product-card__media {
    max-width: none;
  }

  .product-card h3 {
    font-size: 20px;
  }

  .product-card p {
    font-size: 16px;
  }

  .banner--green {
    padding: 56px 0;
  }

  .banner__text {
    font-size: 36px;
  }

  .why__title {
    font-size: 28px;
  }

  .why__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .why-card h3 {
    font-size: 20px;
  }

  .cta {
    padding: 64px 0;
  }

  .cta__text {
    font-size: 28px;
  }
}
