/* ==========================================================================
   C Movil — Espacios Modulares LP
   Dirección: industrial/utilitario — acero, concreto, señalización de obra.
   Mobile-first. Desktop >= 960px.
   ========================================================================== */

:root {
  --ink: #17181b;
  --ink-soft: #24262b;
  --paper: #f3efe5;
  --paper-dim: #e8e1d0;
  --tan: #cdb892;
  --tan-dark: #a9906a;
  --red: #b7262c;
  --red-dark: #8c1d22;
  --safety: #e8b923;
  --white: #ffffff;
  --text-body: #4a4740;

  --font-display: "Oswald", Arial, sans-serif;
  --font-body: "IBM Plex Sans", Arial, sans-serif;

  --container-width: 1280px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

/* Hazard-stripe accent — usado con moderación, solo como detalle de marca */
.stripe-accent {
  height: 6px;
  width: 64px;
  background: repeating-linear-gradient(135deg, var(--ink) 0 10px, var(--safety) 10px 20px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--primary:hover { background: var(--red-dark); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--primary:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  width: 100%;
}
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--block { width: 100%; }

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

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: 14px 0;
  position: relative;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.hero {
  position: relative;
  background: var(--ink);
  z-index: 2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(20,16,10,0.55) 0%, rgba(20,16,10,0.72) 100%),
    url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center 60%;
}

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

.hero__copy { color: var(--white); animation: fadeUp 0.7s ease both; }

.hero__eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--safety);
  margin: 0 0 14px;
}

.hero__title {
  color: var(--white);
  font-size: 28px;
  line-height: 1.18;
  margin-bottom: 18px;
}

.hero__title--accent { color: var(--safety); }

.hero__text {
  font-size: 15px;
  line-height: 1.6;
  color: #d8d6cf;
  margin: 0 0 16px;
  max-width: 560px;
}

.hero__highlight {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--red);
  display: inline-block;
  padding: 8px 14px;
  margin: 0 0 24px;
}

.hero__cta { display: none; } /* el CTA visible del hero vive en el form a mobile; reaparece en desktop si se desea */

/* Lead form --------------------------------------------------------------- */

.lead-form {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 28px 22px;
  position: relative;
  z-index: 3;
  animation: fadeUp 0.7s ease 0.15s both;
  overflow: hidden;
}

.lead-form__title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--ink);
}

.lead-form__divider {
  width: 56px;
  height: 5px;
  background: repeating-linear-gradient(135deg, var(--ink) 0 8px, var(--safety) 8px 16px);
  margin: 0 0 16px;
}

.lead-form__intro {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0 0 20px;
}

.field { margin-bottom: 14px; }

.lead-form__form label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 6px;
}

.lead-form__form input,
.lead-form__form select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: 2px solid #c9c2b0;
  border-radius: 2px;
  appearance: none;
}

.lead-form__form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%2317181b' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.lead-form__form input:focus,
.lead-form__form select:focus {
  outline: none;
  border-color: var(--red);
}

/* Honeypot anti-spam: display:none, fuera del autofill de movil/gestores
   de contrasenas (el patron "visualmente oculto" se seguia autorellenando
   en iOS/Android y tiraba leads reales en silencio). */
.field--honeypot {
  display: none;
}

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

.lead-form__note {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--red);
  margin: 14px 0 0;
  text-align: center;
}

.lead-form__feedback {
  margin: 12px 0 0;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}
.lead-form__feedback[data-state="success"] { color: #1b7a3d; font-weight: 600; }
.lead-form__feedback[data-state="error"] { color: var(--red); font-weight: 600; }

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

.products {
  padding: 56px 0;
  position: relative;
}

.section--white { background: var(--paper); }

.products__title {
  font-size: 24px;
  line-height: 1.25;
  max-width: 960px;
  margin: 0 auto 16px;
  text-align: center;
}

.products__divider {
  width: 64px;
  height: 5px;
  background: repeating-linear-gradient(135deg, var(--ink) 0 8px, var(--safety) 8px 16px);
  margin: 0 auto 24px;
}

.products__body {
  font-size: 15px;
  max-width: 760px;
  margin: 0 auto 16px;
  text-align: center;
}

.products__lead {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 0 0 32px;
  color: var(--ink);
}

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

.product-card {
  background: var(--white);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.2s ease;
}
.product-card.is-visible { opacity: 1; transform: translateY(0); }
.product-card:hover { box-shadow: 6px 6px 0 var(--ink); }

.product-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }

.product-card__title {
  font-size: 19px;
  padding: 18px 18px 0;
  margin-bottom: 8px;
}

.product-card__text {
  font-size: 14px;
  padding: 0 18px;
  margin: 0 0 18px;
  flex-grow: 1;
}

.product-card .btn--outline { border-top: 2px solid var(--ink); border-left: none; border-right: none; border-bottom: none; border-radius: 0; }

/* BENEFITS / PRUEBA SOCIAL ----------------------------------------------- */

.benefits {
  position: relative;
  background: var(--ink);
  padding: 56px 0;
  overflow: hidden;
}

.benefits__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.benefits__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,12,9,0.15) 0%, rgba(14,12,9,0.55) 55%, rgba(14,12,9,0.88) 100%);
}

.benefits .container { position: relative; z-index: 1; }

.benefits__title {
  color: var(--white);
  font-size: 22px;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.benefit-card {
  background: rgba(23,24,27,0.55);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-top: 3px solid var(--safety);
  border-radius: 14px;
  padding: 24px 24px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.benefit-card__index {
  position: absolute;
  right: 16px;
  bottom: -6px;
  font-family: var(--font-display);
  font-size: 110px;
  font-weight: 700;
  color: rgba(255,255,255,0.1);
  -webkit-text-stroke: 1px rgba(255,255,255,0.14);
  line-height: 1;
  pointer-events: none;
}

.benefit-card__title {
  position: relative;
  color: var(--white);
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 85%;
}

.benefit-card__text {
  position: relative;
  color: #e3e1d9;
  font-size: 14px;
  margin: 0;
  max-width: 90%;
}

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

.cta-final {
  position: relative;
  background: var(--red);
  padding: 56px 0;
  overflow: hidden;
}

.cta-final__stripes {
  position: absolute;
  inset: -20% -10%;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.14) 0 24px, transparent 24px 48px);
  background-size: 67.88px 67.88px;
  animation: stripeSlide 6s linear infinite;
}

@keyframes stripeSlide {
  from { background-position: 0 0; }
  to { background-position: 67.88px 67.88px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-final__stripes { animation: none; }
}

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

.cta-final__title {
  color: var(--white);
  font-size: 24px;
  line-height: 1.28;
  max-width: 760px;
  margin: 0 auto 18px;
}

.cta-final__text {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  max-width: 800px;
  margin: 0 auto 28px;
}

.cta-final .btn--primary {
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}
.cta-final .btn--primary:hover { background: #000; }

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

.faq { padding: 56px 0; }

.faq__title { font-size: 24px; text-align: center; margin-bottom: 16px; }

.faq__divider {
  width: 64px;
  height: 5px;
  background: repeating-linear-gradient(135deg, var(--ink) 0 8px, var(--safety) 8px 16px);
  margin: 0 auto 32px;
}

.faq__list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 2px solid var(--ink);
  padding: 18px 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  font-size: 14px;
  margin: 14px 0 0;
}

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

.site-footer {
  background: var(--ink);
  padding: 40px 0;
  text-align: center;
}

.footer__logo { height: 56px; width: auto; margin: 0 auto 16px; filter: brightness(0) invert(1); }

.footer__tagline {
  color: #c7c4ba;
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 20px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer__contacts a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.footer__contacts a:hover { color: var(--safety); }

/* WHATSAPP FLOTANTE ---------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  z-index: 60;
  animation: waPulse 2.4s ease infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 14px rgba(0,0,0,0.35), 0 0 0 10px rgba(37,211,102,0); }
}

.whatsapp-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
}
.whatsapp-modal.is-open { display: flex; }

.whatsapp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23,24,27,0.45);
}

.whatsapp-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  padding: 0 0 20px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 78px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  animation: fadeUp 0.25s ease both;
}

.whatsapp-modal__header {
  background: #075e54;
  padding: 18px 40px 18px 18px;
  position: relative;
}

.whatsapp-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
}

.whatsapp-modal__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--white);
  margin: 0;
}

.whatsapp-modal__form { padding: 18px 18px 0; }
.whatsapp-modal__form .field { margin-bottom: 12px; }

.whatsapp-modal__form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #ccc;
  border-radius: 4px;
}
.whatsapp-modal__form input:focus { outline: none; border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,0.25); }

.whatsapp-modal__phone-row {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.whatsapp-modal__phone-row:focus-within { border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,0.25); }
.whatsapp-modal__flag {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-size: 16px;
  border-right: 1px solid #ccc;
  background: #f5f5f5;
}
.whatsapp-modal__phone-row input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.whatsapp-modal__phone-row input:focus { box-shadow: none; }

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  border: none;
  border-radius: 4px;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  margin: 6px 18px 0;
  width: calc(100% - 36px);
}
.btn--whatsapp:hover { background: #1fb959; }

/* Animations ---------------------------------------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy, .lead-form, .product-card { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Desktop (>= 960px)
   ========================================================================== */

@media (min-width: 960px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 440px;
    align-items: center;
    column-gap: 56px;
    padding: 80px 20px;
  }

  .hero__copy {
    padding: 0;
  }

  .hero__title { font-size: 42px; max-width: 700px; }
  .hero__text { font-size: 16px; max-width: 640px; }

  .lead-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
  }

  .products { padding: 88px 0; }
  .products__title { font-size: 32px; }
  .products__body { font-size: 16px; }

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

  .benefits { padding: 88px 0; }
  .benefits__title { font-size: 30px; }

  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .cta-final { padding: 88px 0; }
  .cta-final__title { font-size: 32px; }

  .faq { padding: 88px 0; }
  .faq__title { font-size: 32px; }

  .footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
    gap: 32px;
  }
  .footer__logo { margin: 0; }
  .footer__tagline { margin: 0; max-width: 420px; }
  .footer__contacts { flex-direction: row; gap: 24px; align-items: center; }
}
