/* =========================================================
   Landing Cooperativas — Toyota Jorge Ferro

   ========================================================= */

:root {
  --paper: #f7f7f7c5;
  --ink: #1f1a14;
  --rule: #d9d2c4;
  --muted: #6b6253;
  --primary: #b3261e;
  --card: #fbf7ee;
  --container: 1280px;
  --whatsapp: #25d366; /* Agregada la variable de WhatsApp */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

span {
  display: block;
}

main {
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;

}

.btn-whatsApp {
  margin-top: 1rem;
  width: fit-content;
  border-radius: 15px;
  background: var(--whatsapp);
  color: #fff;
  padding: 0.95rem 1.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn-whatsApp:hover {
  transform: translateY(-2px);
}

/* Tipografía */
h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.75rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.display-xl {
  font-size: clamp(2.2rem, 6vw, 5rem);
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  text-align: left; /* Justificar en web suele romper espacios en móvil, mejor alinear a la izquierda o usar hyphens */
}

@media (min-width: 768px) {
  .lead {
    text-align: justify;
  }
}

.lead-light {
  color: rgba(246, 241, 231, 0.7);
}

.muted {
  color: var(--muted);
}

.dim {
  color: rgba(246, 241, 231, 0.5);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.eyebrow-light {
  color: rgba(246, 241, 231, 0.6);
}

.mono-xs {
  font-size: 0.75rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem; /* Menor gap en móvil */
}

@media (min-width: 768px) {
  .grid {
    gap: 2.5rem; /* Mayor gap en escritorio */
  }
}

.section {
  border-bottom: 1px solid var(--rule);
  padding: 1rem;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 1.5rem 0;
}

/* Botones / links */
.btn {
  background: var(--ink);
  color: var(--paper);
  padding: 0.95rem 1.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
  display: inline-block;
  text-align: center;
}

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

.link-underline {
  display: inline-block;
  font-size: 0.875rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.link-underline:hover {
  color: var(--primary);
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: 1rem;
}

@media (min-width: 480px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
  }
}

/* NAV */
.nav-wrap {
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand-name {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  display: none;
}

@media (min-width: 640px) {
  .brand-tag {
    display: inline;
  }
}

.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* HERO */
.hero {
  padding: 3rem 0; /* Menos padding vertical en móvil */
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-copy {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero-copy {
    grid-column: span 6;
    gap: 2rem;
  }
}

/* Section heads */
.section-head {
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 4rem;
  }
}

.head-left {
  grid-column: span 12;
}

.head-right {
  grid-column: span 12;
  align-self: end;
}

@media (min-width: 768px) {
  .head-left {
    grid-column: span 5;
  }
  .head-right {
    grid-column: 7 / span 6;
  }
}

.head-left .eyebrow {
  margin-bottom: 1rem;
}

/* Padding vertical de cada sección con container */
.section .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section:first-of-type .container {
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .section .container {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.section .container.grid.hero {
  padding-top: 0;
  padding-bottom: 0;
}

/* BENEFICIOS — lista */
.benefit-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.benefit-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s ease;
}

@media (min-width: 768px) {
  .benefit-list li {
    grid-template-columns: 3rem 1fr;
    padding: 1.5rem 0.5rem;
  }
}

.benefit-list li:hover {
  background: rgba(0, 0, 0, 0.025);
}

.benefit-list .num {
  font-size: 0.75rem;
  color: var(--muted);
}

.benefit-list .item {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

/* REINTEGRO */
.reintegro {
  padding: 0;
}

.reintegro .head-left {
  grid-column: span 12;
}

.reintegro-copy {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

@media (min-width: 768px) {
  .reintegro .head-left {
    grid-column: span 5;
  }
  .reintegro-copy {
    grid-column: span 7;
  }
}

/* CONTACTO */
.contact-intro {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-intro p {
  text-align: start;
  font-size: 1rem;
  padding: 0rem;
}

.contact-form {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background-color: transparent;
}

@media (min-width: 768px) {
  .contact-intro {
    grid-column: span 5;
  }
  .contact-form {
    grid-column: span 7;
    gap: 2rem;
    padding: 2.5rem;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.field {
  display: block;
}

.field .eyebrow {
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(31, 26, 20, 0.3);
  padding: 0.5rem 0;
  font: inherit;
  color: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  gap: 1rem;
  flex-direction: column-reverse;
}

@media (min-width: 480px) {
  .form-foot {
    flex-direction: row;
  }
}

.form-foot .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .form-foot .btn {
    width: auto;
  }
}

/* SORTEOS */
.sorteos {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .sorteos {
    align-items: center;
  }
}

.sorteos .head-left {
  grid-column: span 12;
}

.sorteos-body {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .sorteos .head-left {
    grid-column: span 5;
  }
  .sorteos-body {
    grid-column: 7 / span 6;
  }
}
