/* ==========================================================================
   Reacciones Químicas — Resinas LP (static rebuild)
   Mobile-first. Desktop layout kicks in at 960px, matching the original
   Unbounce design breakpoint (1280px canvas / 320px mobile canvas).
   ========================================================================== */

:root {
  --navy: #002e74;
  --navy-hover: #00266e;
  --navy-active: #002268;
  --navy-dark: #00245a;
  --gray-cert-bg: #f9f9f9;
  --black: #000000;
  --white: #ffffff;

  --font-heading: "Montserrat", Arial, sans-serif;
  --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(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 16px;
}

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

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

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

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

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

.btn--secondary {
  background: var(--white);
  color: var(--navy);
}

.btn--secondary:hover {
  background: #f1f1f1;
}

/* TOPBAR ------------------------------------------------------------------ */

.topbar {
  background: var(--white);
  padding: 16px 0;
  display: flex;
  justify-content: center;
}

.topbar__logo {
  width: 170px;
  height: auto;
}

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

.hero {
  position: relative;
  background: var(--navy-dark);
  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.56);
}

.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__title {
  color: var(--white);
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero__lead {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 16px;
}

.hero__text {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  font-weight: 400;
}

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

.lead-form__title {
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 16px;
}

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

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

.field__label {
  display: block;
  font-family: var(--font-heading);
  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%;
  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 input[type="text"],
.lead-form__form input[type="email"],
.lead-form__form input[type="tel"] {
  height: 46px;
}

.lead-form__form textarea {
  height: 100px;
  padding-top: 11px;
  padding-bottom: 12px;
  line-height: 1.3;
  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;
}

/* SOLUCIONES INTEGRALES ---------------------------------------------------- */

.solutions {
  position: relative;
  background: var(--white);
  padding: 40px 0;
}

.solutions__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/fondo-pattern-mobile.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.solutions__inner {
  position: relative;
  z-index: 1;
}

.solutions__title {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.3;
  text-align: center;
}

.solutions__intro {
  color: #000;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 280 / 210;
  border-radius: 20px;
  margin: 0 auto 20px;
  max-width: 340px;
}

.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  color: var(--navy);
  font-size: 19px;
  text-align: center;
  margin: 0 0 12px;
}

.card__text {
  color: #000;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* CERTIFICACIONES ---------------------------------------------------------- */

.certs {
  background: var(--gray-cert-bg);
  padding: 40px 0;
}

.certs__intro {
  color: #000;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px;
}

.certs__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 20px;
}

.certs__row img {
  height: 70px;
  width: auto;
}

.certs__wide {
  height: 42px;
}

.certs__mobile-only {
  height: 90px;
}

/* WHY CHOOSE US ---------------------------------------------------------- */

.why {
  background: var(--navy-dark);
  padding: 40px 0;
}

.why__title {
  color: var(--white);
  font-size: 19px;
  line-height: 1.35;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 32px;
}

.why__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.why__item img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.why__item span {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

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

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

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

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

.cta__title {
  color: var(--white);
  font-size: 19px;
  line-height: 1.3;
  max-width: 780px;
  margin: 0 auto 20px;
}

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

.site-footer {
  background: #000000;
  padding: 28px 20px;
  display: flex;
  justify-content: center;
}

.site-footer img {
  width: 150px;
  height: auto;
}

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

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

  .topbar {
    padding: 20px 0;
  }

  .topbar__logo {
    width: 220px;
  }

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

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: center;
    column-gap: 70px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__lead {
    font-size: 24px;
  }

  .hero__text {
    font-size: 18px;
  }

  .hero__list {
    gap: 10px 30px;
    font-size: 18px;
  }

  .lead-form {
    padding: 32px;
  }

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

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

  .solutions {
    padding: 60px 0;
  }

  .solutions__bg {
    background-image: url("../assets/fondo-pattern-desktop.jpg");
  }

  .solutions__title {
    font-size: 28px;
  }

  .solutions__intro {
    font-size: 18px;
    margin-bottom: 44px;
  }

  .cards {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
  }

  .card {
    flex: 1 1 0;
  }

  .card__media {
    aspect-ratio: 320 / 280;
    max-width: 320px;
  }

  .card__title {
    font-size: 24px;
  }

  .card__text {
    font-size: 18px;
  }

  .certs {
    padding: 56px 0;
  }

  .certs__intro {
    font-size: 18px;
    margin-bottom: 36px;
  }

  .certs__row {
    gap: 32px 48px;
  }

  .certs__row img {
    height: 90px;
  }

  .certs__wide {
    height: 55px;
  }

  .certs__mobile-only {
    display: none;
  }

  .why {
    padding: 60px 0;
  }

  .why__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .why__grid {
    flex-direction: row;
    justify-content: space-between;
  }

  .why__item {
    flex: 1 1 0;
    align-items: center;
    gap: 14px;
  }

  .why__item img {
    width: 60px;
    height: 60px;
  }

  .why__item span {
    font-size: 18px;
  }

  .cta {
    padding: 64px 0;
  }

  .cta__bg {
    background-image: url("../assets/cta-banner-desktop.png");
  }

  .cta__title {
    font-size: 24px;
    margin-bottom: 24px;
  }
}
