/* Renta Constante — design system */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --teal-950: #0d2e2a;
  --teal-900: #123a35;
  --teal-800: #184b44;
  --teal-600: #256b60;
  --sand-400: #d9a566;
  --sand-300: #e6c090;
  --cream-50: #f7f4ee;
  --cream-100: #efe9dd;
  --ink: #16211f;
  --ink-soft: #3d4b47;
  --white: #ffffff;
  --border: rgba(13, 46, 42, 0.12);
  --radius: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-950);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal-950);
  letter-spacing: -0.01em;
}

.logo span { color: var(--sand-400); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--teal-950); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--teal-950);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--sand-400);
  color: var(--teal-950);
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(217, 165, 102, 0.35); }

.btn-outline {
  background: transparent;
  border-color: var(--teal-900);
  color: var(--teal-950);
}
.btn-outline:hover { background: var(--teal-950); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--teal-950);
}

/* Hero */
.hero {
  background: var(--teal-950);
  color: var(--cream-50);
  padding: 90px 0 80px;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(217, 165, 102, 0.15);
  color: var(--sand-300);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(247, 244, 238, 0.82);
  max-width: 600px;
  margin-bottom: 28px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--cream-100); }
.section-dark { background: var(--teal-950); color: var(--cream-50); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand-400);
  margin-bottom: 10px;
  display: block;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

/* Grid / cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-950);
  color: var(--sand-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* Pricing / packs */
.pack {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.pack.featured {
  border-color: var(--sand-400);
  box-shadow: 0 18px 40px rgba(13, 46, 42, 0.12);
  position: relative;
}

.pack-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--sand-400);
  color: var(--teal-950);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.pack ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  flex-grow: 1;
}
.pack li {
  padding: 8px 0 8px 26px;
  position: relative;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.pack li:first-child { border-top: none; }
.pack li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-600);
  font-weight: 700;
}

.pack .price {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--teal-950);
  margin: 6px 0 4px;
}
.pack .price small {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* Blog cards */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.post-card .tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-600);
}
.post-card.coming-soon {
  opacity: 0.6;
  border-style: dashed;
}

/* Forms */
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 460px;
}
input[type="email"],
input[type="text"],
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex: 1 1 220px;
  background: var(--white);
  color: var(--ink);
}
textarea { width: 100%; min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.65);
  margin-top: 10px;
}
.section-dark .form-note { color: rgba(247, 244, 238, 0.65); }
body:not(.section-dark) .form-note { color: var(--ink-soft); }

/* Cupo widget */
.cupo-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.section-dark .cupo-widget {
  background: rgba(247, 244, 238, 0.06);
  border-color: rgba(247, 244, 238, 0.16);
}
.cupo-month {
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.section-dark .cupo-month { color: rgba(247, 244, 238, 0.85); }
.cupo-month strong { color: var(--sand-400); }
.cupo-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.cupo-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--teal-600);
  background: transparent;
}
.section-dark .cupo-dot { border-color: var(--sand-400); }
.cupo-dot.filled { background: var(--teal-600); }
.section-dark .cupo-dot.filled { background: var(--sand-400); }
.cupo-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.section-dark .cupo-count { color: rgba(247, 244, 238, 0.75); }
.cupo-count.lleno { color: #c25b4a; }
.section-dark .cupo-count.lleno { color: var(--sand-300); }

/* Footer */
footer.site {
  background: var(--teal-950);
  color: rgba(247, 244, 238, 0.75);
  padding: 56px 0 32px;
}
footer.site .logo { color: var(--white); }
footer.site .logo span { color: var(--sand-400); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a:hover { color: var(--sand-300); }
.footer-bottom {
  border-top: 1px solid rgba(247, 244, 238, 0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Author strip */
.author-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.author-strip .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-900);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0 56px; }
  section { padding: 52px 0; }
}
