/* ===================================================================
   cuaderno.css  ·  Sales Landing (conservación habitable)
   =================================================================== */

:root {
  --s-gap: clamp(2rem, 5vw, 4rem);
  --s-section: clamp(4rem, 10vw, 8rem);
  --radius: 3px;
}

html, body {
  background: var(--crema);
  color: var(--negro);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(28px, 6vw, 56px); }
h2 { font-size: clamp(24px, 4.5vw, 42px); font-weight: 500; }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

p { font-family: var(--font-body); line-height: 1.7; }

/* ---- botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 13px 28px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--verde);
  color: var(--crema);
}
.btn-primary:hover { background: var(--verde-tinta); }

.btn-outline {
  background: transparent;
  color: var(--verde);
  border-color: var(--verde);
}
.btn-outline:hover { background: var(--verde); color: var(--crema); }

.btn-large {
  padding: 16px 40px;
  font-size: 15px;
  min-height: 48px;
}

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 2rem;
  background: var(--crema);
  border-bottom: 1px solid var(--borde);
}

.nav__logo {
  display: flex;
  align-items: center;
  min-width: 40px;
  text-decoration: none;
}
.nav__logo img { width: 28px; height: 28px; }

.nav__menu {
  display: none;
  flex: 1;
}
.nav__menu ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--negro);
  transition: color 0.2s;
}
.nav__menu a:hover { color: var(--verde); }

.nav__cta { display: none; }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  width: 100%;
  height: 2px;
  background: var(--negro);
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .nav { padding: 1.2rem 2rem; }
  .nav__menu { display: flex; }
  .nav__burger { display: none; }
  .nav__cta { display: inline-flex; }
}

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--s-gap);
  padding: var(--s-section) 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__headline {
  font-weight: 600;
  line-height: 1.2;
}

.hero__sub {
  font-size: 18px;
  color: var(--gris);
  font-weight: 400;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__right {
  width: 100%;
}
.hero__right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

@media (min-width: 968px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: var(--s-section) 2rem;
  }
  .hero__ctas { flex-direction: row; }
}

/* ---- pilares ---- */
.pilares {
  padding: var(--s-section) 1rem;
  background: var(--crema-soft);
}

.pilares__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-gap);
  max-width: var(--max-w);
  margin: 0 auto;
}

.pilar {
  padding: 2.5rem;
  background: var(--crema);
  border-radius: var(--radius);
  border: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.pilar__icon {
  width: 48px;
  height: 48px;
  color: var(--verde);
  flex-shrink: 0;
}

.pilar h3 {
  margin: 0;
  color: var(--negro);
}

.pilar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--negro);
}

@media (min-width: 768px) {
  .pilares__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- parcelas ---- */
.parcelas {
  padding: var(--s-section) 1rem;
}

.sec-head {
  text-align: center;
  margin-bottom: 4rem;
}

.sec-head h2 {
  margin: 0 0 1rem 0;
}

.sec-head p {
  font-size: 16px;
  color: var(--gris);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.parcelas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto 3rem;
}

.parcela-card {
  background: var(--crema-soft);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.parcela-card:hover {
  border-color: var(--verde);
  box-shadow: 0 4px 16px rgba(62, 74, 54, 0.08);
}

.parcela-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.parcela-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.parcela-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.parcela-card__title {
  margin: 0;
  font-size: 20px;
  color: var(--negro);
}

.parcela-card__badge {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  line-height: 1.4;
}

.parcela-card__badge--disponible {
  background: var(--oro);
  color: white;
}

.parcela-card__badge--ultimas {
  background: var(--tierra);
  color: white;
}

.parcela-card__badge--reservada {
  background: var(--gris);
  color: white;
}

.parcela-card__meta {
  font-size: 14px;
  color: var(--gris);
  margin: 0;
}

.parcela-card__cta {
  margin-top: auto;
}

.parcela-card__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--verde);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: gap 0.2s;
}

.parcela-card__cta-link:hover {
  gap: 0.75em;
}

.parcelas-note {
  text-align: center;
  font-size: 14px;
  color: var(--gris);
}

.link-map {
  color: var(--verde);
  text-decoration: none;
  font-weight: 500;
}

.link-map:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .parcelas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .parcelas-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- territorio ---- */
.territorio {
  padding: var(--s-section) 1rem;
  background: var(--crema-soft);
}

.territorio__title {
  text-align: center;
  margin: 0 0 3rem;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.container--wide {
  width: 100%;
  max-width: none;
}

.territorio__scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.territorio__scroll::-webkit-scrollbar {
  height: 6px;
}

.territorio__scroll::-webkit-scrollbar-thumb {
  background: var(--verde);
  border-radius: 3px;
}

.territorio__item {
  flex-shrink: 0;
  width: 300px;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.territorio__item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.territorio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .territorio__item { width: 360px; height: 280px; }
}

/* ---- modelo ---- */
.modelo {
  padding: var(--s-section) 1rem;
}

.modelo__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-gap);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.modelo__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modelo__text h2 {
  margin: 0;
}

.modelo__text p {
  margin: 0;
  font-size: 16px;
  color: var(--negro);
  line-height: 1.7;
}

.modelo__image {
  width: 100%;
}

.modelo__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

@media (min-width: 968px) {
  .modelo__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- cta final ---- */
.cta-final {
  padding: var(--s-section) 1rem;
  background: var(--verde-tinta);
  color: var(--crema);
  text-align: center;
}

.cta-final h2 {
  margin: 0 0 1rem;
  color: var(--crema);
  font-size: clamp(24px, 4vw, 40px);
}

.cta-final > .container--narrow > p {
  margin: 0 0 2.5rem;
  font-size: 16px;
  color: var(--crema-soft);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final__options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.cta-final__divider {
  font-size: 14px;
  color: var(--crema-soft);
}

.cta-final .btn {
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

.cta-final .btn-primary {
  background: var(--oro);
  color: var(--negro);
}

.cta-final .btn-primary:hover {
  background: #D4A747;
}

.cta-final .btn-outline {
  color: var(--crema);
  border-color: var(--crema);
}

.cta-final .btn-outline:hover {
  background: var(--crema);
  color: var(--verde-tinta);
}

/* ---- form ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
  margin: 2rem auto 0;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__field label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crema);
}

.form__field input,
.form__field textarea {
  padding: 12px;
  border: 1px solid var(--crema-soft);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: rgba(245, 242, 237, 0.1);
  color: var(--crema);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--crema-soft);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--oro);
  background: rgba(200, 155, 58, 0.1);
}

.form__check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  color: var(--crema);
  cursor: pointer;
  margin-bottom: 1rem;
}

.form__check input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form__check input:checked {
  accent-color: var(--oro);
}

/* ---- footer ---- */
.footer {
  padding: 3rem 1rem;
  background: var(--negro);
  color: var(--crema);
  font-size: 13px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245, 242, 237, 0.1);
}

.footer__inner > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__inner img {
  width: 24px;
  height: 24px;
}

.footer__inner p {
  margin: 0;
}

.footer__contact {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.footer__contact a {
  color: var(--oro);
  text-decoration: none;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__location {
  text-align: center;
  color: var(--gris);
}

.footer__copy {
  text-align: center;
  color: var(--gris);
  margin: 0;
}

/* ---- reveal (scroll) ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- responsive mobile ---- */
@media (max-width: 767px) {
  .hero__ctas { gap: 0.75rem; }
  .cta-final__options { gap: 1rem; }
  .territorio__item { width: 240px; height: 180px; }
}
