/* Sparta — sitio web. Paleta y tipografías según Brand Guidelines (marzo 2023). */

/* Figtree (OFL 1.1, fuente variable 300–900): la más parecida a Airbnb Cereal */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
/* Blankid: solo para taglines y frases destacadas grandes (> 30 pt) */
@font-face {
  font-family: "Blankid";
  src: url("/fonts/Blankid.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ivory: #ffffeb;
  --tan: #d9b88f;
  --goldenrod: #d8a33a;
  --green: #164729;
  --green-dark: #11331d;
  --white: #ffffff;
  --wa: #25d366;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(17, 51, 29, 0.14);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--green-dark);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

.statement {
  font-family: "Blankid", "Figtree", cursive;
  font-weight: 400;
  color: var(--goldenrod);
  line-height: 1.1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 71, 41, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.site-header .logo img {
  height: 40px;
  width: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  border: 1.5px solid rgba(22, 71, 41, 0.25);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  font: 600 13px/1 "Figtree", sans-serif;
  color: var(--green);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--green);
  color: var(--ivory);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 16px/1 "Figtree", sans-serif;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--green);
  color: var(--ivory);
  box-shadow: 0 10px 24px rgba(22, 71, 41, 0.25);
}
/* WhatsApp desactivado (i18n.js → WHATSAPP_ENABLED) */
.btn.is-disabled,
.btn.is-disabled:hover {
  background: #c9c9b8;
  color: #5b5b4f;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.btn-primary:hover {
  background: var(--green-dark);
}
.btn-gold {
  background: var(--goldenrod);
  color: var(--green-dark);
}
.btn-small {
  padding: 10px 16px;
  font-size: 14px;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(216, 163, 58, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  color: var(--green);
  margin: 22px 0 10px;
  letter-spacing: -0.02em;
}
.hero .statement {
  font-size: clamp(64px, 8vw, 104px);
  margin: -6px 0 22px;
}
.hero p.lead {
  font-size: 19px;
  max-width: 34em;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.price-note {
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
}
.availability {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--green);
}
.availability strong {
  font-weight: 600;
}
.price-note strong {
  color: var(--green-dark);
}

/* Teléfono de ejemplo */
.phone {
  position: relative;
  width: min(360px, 100%);
  margin-inline: auto;
  background: var(--green-dark);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.phone::before {
  content: "";
  position: absolute;
  inset: -40px -60px auto auto;
  width: 220px;
  height: 220px;
  background: var(--goldenrod);
  opacity: 0.18;
  border-radius: 50%;
  z-index: -1;
}
.chat {
  background: #efe9d8;
  border-radius: 28px;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--ivory);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
}
.chat-head img {
  width: 34px;
  height: 34px;
  background: var(--ivory);
  border-radius: 50%;
  padding: 4px;
}
.chat-head small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.8;
}
.chat-body {
  padding: 18px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
}
.bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 14px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.bubble.me {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 4px;
}
.bubble.bot {
  align-self: flex-start;
  background: var(--white);
  border-top-left-radius: 4px;
}
.bubble .place {
  font-weight: 600;
}
.bubble .muted {
  color: #5b6b60;
}
.example-label {
  text-align: center;
  font-size: 12px;
  color: var(--green);
  opacity: 0.7;
  margin-top: 12px;
}

/* ---------- Secciones ---------- */
section {
  padding: 88px 0;
}
.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.section-sub {
  font-size: 18px;
  max-width: 40em;
  margin: 0 0 44px;
}

/* Cómo funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 6px 24px rgba(17, 51, 29, 0.06);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--goldenrod);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 21px;
  line-height: 1.25;
  color: var(--green);
  margin: 0 0 8px;
}
.step p {
  margin: 0;
  font-size: 16px;
}

/* Por qué Sparta */
.why {
  background: var(--green);
  color: var(--ivory);
}
.why .section-title {
  color: var(--ivory);
}
.why .quote {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--goldenrod);
  margin: 0 0 40px;
  max-width: 26em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.why-item {
  border: 1.5px solid rgba(255, 255, 235, 0.18);
  border-radius: var(--radius);
  padding: 26px;
}
.why-item h3 {
  color: var(--goldenrod);
  font-size: 19px;
  margin: 0 0 6px;
}
.why-item p {
  margin: 0;
  font-size: 16px;
  opacity: 0.92;
}

/* Precio */
.pricing .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.price-card {
  background: var(--white);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border-top: 8px solid var(--goldenrod);
}
.price-card .amount {
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}
.price-card .amount span {
  font-size: 22px;
  font-weight: 500;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
}
.price-card li {
  padding: 8px 0 8px 32px;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--goldenrod)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z' fill='%2311331d'/%3E%3C/svg%3E")
    center/14px no-repeat;
}

/* FAQ */
.faq {
  background: #fbf6dc;
}
.faq-list {
  max-width: 820px;
}
.faq details {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 24px;
  color: var(--goldenrod);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 10px 0 0;
}

/* CTA final */
.final-cta {
  text-align: center;
  background: var(--tan);
}
.final-cta .statement {
  color: var(--green);
  font-size: clamp(56px, 7vw, 96px);
  margin: 0 0 10px;
}
.final-cta p {
  margin: 0 auto 28px;
  max-width: 32em;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: var(--ivory);
  padding: 56px 0 36px;
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
}
.site-footer img {
  height: 70px;
  width: auto;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer a {
  text-decoration: none;
  opacity: 0.85;
}
.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}
.copyright {
  width: 100%;
  opacity: 0.6;
  font-size: 13px;
  margin-top: 8px;
}

/* Página legal */
.legal {
  padding: 56px 0 80px;
}
.legal article {
  max-width: 780px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.legal h1 {
  color: var(--green);
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 6px;
}
.legal h2 {
  color: var(--green);
  font-size: 20px;
  margin: 30px 0 6px;
}
.legal .updated {
  opacity: 0.7;
  font-size: 14px;
  margin: 0 0 20px;
}
[hidden] {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap,
  .pricing .wrap {
    grid-template-columns: 1fr;
  }
  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding-top: 36px;
  }
}
@media (max-width: 560px) {
  .site-header .logo img {
    height: 32px;
  }
  .header-cta {
    display: none;
  }
  .btn {
    width: 100%;
  }
  .legal article {
    padding: 28px 22px;
  }
}
