/* ==========================================================================
   RLB — Refrigeración Las Brisas LP (static rebuild)
   Mobile-first. Desktop layout kicks in at 960px, matching the original
   Unbounce design breakpoint (1440px canvas / 320px mobile canvas).
   ========================================================================== */

:root {
  --navy: #183241;
  --navy-rgb: 24, 50, 65;
  --blue: #0098db;
  --blue-hover: #0088d0;
  --blue-active: #007cc5;
  --blue-mid: #356c9d;
  --blue-light: #4894da;
  --body-gray: #5b5b5b;
  --gray-light: #e7e7e7;
  --page-bg: #eeeeee;
  --white: #ffffff;

  --font-heading: "Poppins", Arial, sans-serif;
  --font-body: "Poppins", 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(--page-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  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(--blue);
  color: var(--white);
}

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

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

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

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

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

.hero__logo {
  width: 130px;
  height: auto;
  margin: 0 auto 20px;
}

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

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

.hero__title strong {
  font-weight: 700;
}

.hero__text {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.hero__text strong {
  font-weight: 700;
}

.lead-form {
  background: rgba(var(--navy-rgb), 0.9);
  border-radius: 8px;
  padding: 24px 20px;
}

.lead-form__title {
  color: var(--white);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 12px;
}

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

.lead-form__intro {
  color: var(--white);
  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-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--white);
  margin-bottom: 4px;
}

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

/* 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%;
  font-size: 15px;
  padding: 14px 24px;
}

.lead-form__feedback {
  margin: 12px 0 0;
  font-size: 14px;
  min-height: 20px;
  color: var(--white);
}

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

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

/* BAR (tagline strip) ---------------------------------------------------- */

.bar {
  background: var(--navy);
  padding: 20px 0;
  text-align: center;
}

.bar__text {
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* TRUST / PILLARS --------------------------------------------------------- */

.trust {
  background: var(--white);
  padding: 40px 0 0;
}

.trust__title {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.trust__title strong {
  font-weight: 700;
}

.trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 32px;
  margin-bottom: 28px;
}

.trust__logos img {
  height: 32px;
  width: auto;
}

.trust__logos img.is-wide {
  height: 24px;
}

.trust__intro {
  color: var(--body-gray);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.trust__pillars-title {
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
}

.pillars {
  display: flex;
  flex-direction: column;
}

.pillar {
  color: var(--white);
  text-align: center;
  padding: 32px 24px;
}

.pillar h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 10px;
  text-wrap: balance;
}

.pillar p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  text-wrap: pretty;
}

.pillar--a {
  background: var(--blue-light);
}

.pillar--b {
  background: var(--blue-mid);
}

.pillar--c {
  background: var(--navy);
}

.trust__cta {
  text-align: center;
  padding: 32px 0 40px;
}

/* FAQ ----------------------------------------------------------------- */

.faq {
  background: var(--gray-light);
  padding: 48px 0;
}

.faq__title {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.faq-container {
  width: 100%;
  box-sizing: border-box;
}

.faq-container details {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  width: 100%;
}

.faq-container details[open] {
  background-color: #ffffff;
  border-color: #cccccc;
}

.faq-container summary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: #333333;
  list-style-type: none;
  position: relative;
  padding-right: 40px;
  line-height: 1.3;
  outline: none;
}

.faq-container summary::-webkit-details-marker {
  display: none;
}

.faq-container summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: #666;
}

.faq-container details[open] summary::after {
  content: "-";
}

.faq-container p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  margin-top: 15px;
  margin-bottom: 0;
  color: #555555;
  line-height: 1.5;
}

/* SOLUTIONS --------------------------------------------------------------- */

.solutions {
  background: var(--white);
  padding: 72px 0;
}

.solutions__title {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 12px;
  text-wrap: balance;
}

.solutions__title strong {
  font-weight: 700;
}

.solutions__subtitle {
  color: var(--body-gray);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.solutions__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.solution-card {
  text-align: center;
}

.solution-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 333 / 187;
  border-radius: 6px;
  margin-bottom: 16px;
}

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

.solution-card h3 {
  color: var(--blue-mid);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.solution-card p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 10px;
}

.solution-card__apps {
  font-size: 14px;
  line-height: 1.4;
  margin: 12px 0 0;
}

.solution-card__apps strong {
  display: block;
  margin-bottom: 8px;
}

.solution-card__apps ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.solution-card__apps li {
  margin-bottom: 6px;
}

/* CTA (inline, light) ------------------------------------------------------ */

.cta-inline {
  text-align: center;
  padding: 40px 0 0;
}

.cta-inline__title {
  color: var(--navy);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  max-width: 640px;
  margin: 0 auto 10px;
}

.cta-inline__text {
  color: var(--body-gray);
  font-size: 14px;
  line-height: 1.4;
  margin: 0 auto 20px;
  max-width: 560px;
}

/* CTA (photo banner) -------------------------------------------------------- */

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

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

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

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

.cta__title {
  color: var(--blue);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  max-width: 640px;
  margin: 0 auto 10px;
}

.cta__text {
  color: var(--white);
  font-size: 14px;
  line-height: 1.4;
  max-width: 560px;
  margin: 0 auto 20px;
}

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

.site-footer {
  background: var(--navy);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

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

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

.site-footer__label {
  color: var(--white);
  font-size: 16px;
  margin: 0;
}

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

@media (min-width: 960px) {
  .hero__bg {
    background-image: url("../assets/hero-bg-desktop.jpg");
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 460px;
    align-items: stretch;
    column-gap: 56px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero__copy {
    align-self: center;
    padding: 56px 0;
  }

  .hero__logo {
    width: 160px;
    margin: 0 0 24px;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__text {
    font-size: 16px;
  }

  .lead-form {
    padding: 0 32px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .lead-form__title {
    font-size: 22px;
    padding-top: 32px;
  }

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

  .bar__text {
    font-size: 17px;
  }

  .trust {
    padding: 60px 0 0;
  }

  .trust__title {
    font-size: 28px;
  }

  .trust__logos img {
    height: 40px;
  }

  .trust__logos img.is-wide {
    height: 30px;
  }

  .trust__intro {
    font-size: 16px;
  }

  .trust__pillars-title {
    font-size: 22px;
  }

  .pillars {
    flex-direction: row;
    max-width: 1000px; /* narrower than .container, like the original —
                           keeps each pillar's title on two lines */
    margin: 0 auto;
  }

  .pillar {
    flex: 1 1 0;
    padding: 56px 32px;
  }

  .pillar h3 {
    font-size: 22px;
  }

  .pillar p {
    font-size: 16px;
  }

  .trust__cta {
    padding: 40px 0 60px;
  }

  .faq {
    padding: 60px 0;
  }

  .faq__title {
    font-size: 28px;
  }

  .solutions {
    padding: 60px 0;
  }

  .solutions__title {
    font-size: 28px;
  }

  .solutions__subtitle {
    font-size: 16px;
  }

  .solutions__grid {
    flex-direction: row;
    gap: 32px;
  }

  .solution-card {
    flex: 1 1 0;
  }

  .solution-card h3 {
    font-size: 22px;
  }

  .solution-card p,
  .solution-card__apps {
    font-size: 15px;
  }

  .cta-inline {
    padding: 56px 0 0;
  }

  .cta-inline__title {
    font-size: 28px;
    max-width: 900px;
  }

  .cta-inline__text {
    font-size: 16px;
  }

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

  .cta__title {
    font-size: 28px;
    max-width: 900px;
  }

  .cta__text {
    font-size: 16px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 40px;
  }

  .site-footer__contact {
    flex-direction: row;
    gap: 16px;
  }

  .site-footer__label {
    font-size: 18px;
  }
}
