:root {
  --bg: #fbf7ef;
  --surface: #fffdf8;
  --surface-strong: #f0e2cf;
  --ink: #1f2520;
  --muted: #67716a;
  --line: #e5d7c6;
  --green: #143f35;
  --green-2: #1f6b4d;
  --whatsapp: #19a863;
  --wood: #a7653f;
  --gold: #d99b3d;
  --shadow: 0 22px 70px rgba(45, 32, 21, 0.13);
  --radius: 8px;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(20, 63, 53, 0.06), transparent 360px),
    var(--bg);
}

body.modal-open {
  overflow: hidden;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 99;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 10px 12px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(229, 215, 198, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(30, 26, 20, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.93rem;
}

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

.header-cta {
  padding: 0.72rem 1rem;
  color: white;
  background: var(--green);
  border-radius: var(--radius);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 3rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 680px;
  font-size: clamp(1.04rem, 1.5vw, 1.25rem);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.trust-pills span {
  padding: 0.58rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.86rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-align: center;
}

.btn-primary {
  color: white;
  background: var(--whatsapp);
  box-shadow: 0 16px 30px rgba(25, 168, 99, 0.24);
}

.btn-primary:hover,
.floating-whatsapp:hover {
  background: #148f54;
}

.btn-secondary,
.btn-card {
  border-color: var(--line);
  background: var(--surface);
  color: var(--green);
}

.hero-media,
.offer-media {
  position: relative;
}

.hero-media img,
.offer-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(250px, calc(100% - 36px));
  padding: 1rem;
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid rgba(229, 215, 198, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(26, 21, 14, 0.16);
}

.price-badge span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.price-badge strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--green);
  font-size: 1.22rem;
}

.confidence-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.confidence-strip article {
  padding: 1.3rem;
  background: var(--surface);
}

.confidence-strip strong,
.confidence-strip span {
  display: block;
}

.confidence-strip strong {
  color: var(--green);
}

.confidence-strip span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0 0;
}

.split-section,
.anti-fraud,
.delivery,
.social-proof {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.copy-block p {
  font-size: 1.04rem;
}

.check-list {
  display: grid;
  gap: 0.72rem;
  margin: 1.3rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--whatsapp);
}

.text-link {
  display: inline-flex;
  color: var(--green);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.promise-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--green);
  border-radius: var(--radius);
}

.promise-band h2,
.promise-band .eyebrow,
.promise-band p {
  color: white;
}

.promise-band p {
  opacity: 0.88;
}

.promise-line {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.08;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product-card,
.gallery-grid article,
.feature-grid article,
.steps article,
.proof-placeholders article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

.product-card div {
  padding: 1.1rem;
}

.product-card p {
  min-height: 58px;
  font-size: 0.96rem;
}

.card-price {
  display: block;
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1;
}

.btn-card {
  width: 100%;
  min-height: 44px;
}

.offer {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.offer-media img {
  aspect-ratio: 1 / 1;
}

.offer-copy {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.microcopy {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

.feature-grid,
.steps,
.gallery-grid,
.proof-placeholders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-grid article,
.steps article {
  padding: 1.3rem;
}

.feature-icon,
.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  color: white;
  background: var(--green);
  border-radius: 6px;
  font-weight: 900;
}

.process {
  padding-bottom: 0;
}

.process .center-action,
.comparison .center-action {
  justify-content: center;
  margin-top: 1.3rem;
}

.anti-fraud {
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  background: #fff3df;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.security-box {
  padding: 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.security-box strong {
  display: block;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 1.22rem;
  line-height: 1.3;
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid article {
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.gallery-grid h3,
.gallery-grid p,
.gallery-grid span,
.gallery-grid a {
  margin-left: 1rem;
  margin-right: 1rem;
}

.gallery-grid h3 {
  margin-top: 1rem;
}

.gallery-grid p {
  margin-bottom: 0.2rem;
  color: var(--green);
  font-weight: 900;
}

.gallery-grid span {
  display: block;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-grid a {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.72rem;
  color: white;
  background: var(--green);
  border-radius: var(--radius);
  font-weight: 900;
  text-align: center;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.comparison-table [role="row"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-table span,
.comparison-table strong {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.comparison-table span {
  color: var(--muted);
}

.comparison-table strong {
  color: var(--green);
  background: rgba(31, 107, 77, 0.08);
}

.comparison-table .table-head span {
  border-top: 0;
  color: white;
  background: var(--green);
  font-weight: 900;
}

.social-proof {
  align-items: center;
}

.proof-placeholders {
  grid-template-columns: repeat(3, 1fr);
}

.proof-placeholders article {
  display: grid;
  min-height: 170px;
  align-content: end;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(20, 63, 53, 0.12), rgba(217, 155, 61, 0.16)),
    var(--surface);
}

.proof-placeholders .proof-photo {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}

.proof-photo img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
}

.proof-photo strong,
.proof-photo span {
  display: block;
  margin-left: 1rem;
  margin-right: 1rem;
}

.proof-photo strong {
  margin-top: 1rem;
}

.proof-photo span {
  margin-bottom: 1rem;
}

.proof-placeholders span {
  color: var(--muted);
  font-size: 0.9rem;
}

.delivery {
  align-items: center;
  padding: clamp(2.2rem, 5vw, 3.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.delivery .btn {
  justify-self: end;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  padding: 1.05rem 1.1rem;
  color: var(--green);
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
}

.final-cta {
  width: min(calc(100% - 32px), var(--max));
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding: clamp(3rem, 7vw, 5.5rem);
  color: white;
  background:
    linear-gradient(rgba(20, 63, 53, 0.88), rgba(20, 63, 53, 0.88)),
    url("assets/images/real-sala-esquinera-gris.jpg") center / cover;
  border-radius: var(--radius);
  text-align: center;
}

.final-cta h2,
.final-cta p,
.final-cta .eyebrow,
.final-cta small {
  color: white;
}

.final-cta p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta small {
  display: block;
  margin-top: 0.9rem;
  opacity: 0.86;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  margin: 2rem auto 6rem;
  padding: 1.2rem 0;
  color: var(--muted);
}

.site-footer strong,
.site-footer a {
  color: var(--green);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: calc(100% - 36px);
  min-height: 54px;
  padding: 0.72rem 1rem;
  color: white;
  background: var(--whatsapp);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(25, 168, 99, 0.3);
}

.floating-whatsapp span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 16px;
}

.lead-modal.is-open {
  display: grid;
  place-items: center;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 16, 0.72);
  backdrop-filter: blur(8px);
}

.lead-modal__panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.lead-modal__panel h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.65rem, 5vw, 2.5rem);
}

.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--green);
  background: #f4eadc;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.lead-form label {
  display: grid;
  gap: 0.38rem;
}

.lead-form span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.76rem 0.85rem;
  color: var(--ink);
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(31, 107, 77, 0.12);
}

.lead-form__wide,
.lead-form__submit,
.lead-form small {
  grid-column: 1 / -1;
}

.lead-form__submit {
  width: 100%;
  margin-top: 0.2rem;
  cursor: pointer;
}

.lead-form small {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .split-section,
  .promise-band,
  .offer,
  .anti-fraud,
  .delivery,
  .social-proof {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    aspect-ratio: 16 / 11;
  }

  .confidence-strip,
  .category-grid,
  .feature-grid,
  .steps,
  .gallery-grid,
  .proof-placeholders {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery .btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    padding: 0.68rem 0.82rem;
  }

  .hero,
  .section,
  .confidence-strip,
  .final-cta,
  .site-footer {
    width: calc(100% - 20px);
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .hero-actions,
  .hero-actions .btn,
  .center-action .btn,
  .offer .btn,
  .delivery .btn,
  .final-cta .btn {
    width: 100%;
  }

  .trust-pills span {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }

  .confidence-strip,
  .category-grid,
  .feature-grid,
  .steps,
  .gallery-grid,
  .proof-placeholders,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
  }

  .product-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .product-card p {
    min-height: 0;
  }

  .promise-band,
  .anti-fraud,
  .final-cta {
    padding: 2rem 1rem;
  }

  .comparison-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .comparison-table strong {
    border-top: 0;
  }

  .floating-whatsapp {
    left: 10px;
    right: 10px;
    justify-content: center;
  }

  .lead-modal {
    padding: 10px;
    align-items: end;
  }

  .lead-modal__panel {
    max-height: 90vh;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card img {
    aspect-ratio: 1.35 / 1;
  }
}
