/*
Theme Name: Familias Libres
Theme URI: https://familiaslibres.com
Author: Familias Libres
Description: Tema editorial elegante para coaching financiero, mentoría y educación de dinero basada en valores.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: familias-libres
*/

:root {
  --ink: #15211d;
  --muted: #60706a;
  --paper: #fbfaf5;
  --white: #ffffff;
  --green: #0f4b3b;
  --green-2: #174f68;
  --sage: #dce8dc;
  --gold: #c59a45;
  --line: #e5e0d4;
  --soft: #f1eee5;
  --shadow: 0 18px 50px rgba(21, 33, 29, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 99;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 245, .92);
  border-bottom: 1px solid rgba(229, 224, 212, .9);
  backdrop-filter: blur(16px);
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  border-radius: 8px;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #344640;
  font-size: 14px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 28px rgba(15, 75, 59, .22);
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  background:
    linear-gradient(90deg, rgba(251, 250, 245, .96) 0%, rgba(251, 250, 245, .86) 50%, rgba(251, 250, 245, .32) 100%),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1800&q=82") center right / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 42px;
  min-height: 690px;
  padding: 58px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 76px);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

.hero-copy {
  max-width: 700px;
}

.lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: #3d4d48;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-panel {
  align-self: end;
  padding: 26px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(229, 224, 212, .9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  align-items: start;
}

.check,
.stage-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--green);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .65fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stage-card,
.offer-card,
.testimonial,
.post-card,
.contact-card,
.author-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(21, 33, 29, .06);
}

.stage-card {
  padding: 28px;
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  color: var(--green);
  background: var(--sage);
  border-radius: 8px;
}

.stage-card h3 span {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-card p {
  color: var(--muted);
}

.benefit {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 800;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  padding: 20px;
}

.offer-card strong {
  display: block;
  margin-bottom: 7px;
}

.offer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: center;
}

.image-band {
  min-height: 440px;
  background:
    linear-gradient(180deg, rgba(15, 75, 59, .12), rgba(15, 75, 59, .45)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=82") center / cover;
  border-radius: 8px;
}

.author-box {
  padding: 34px;
}

.author-box p {
  color: var(--muted);
}

.credentials {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.credentials li {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: #344640;
  font-weight: 700;
}

.testimonials,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial {
  padding: 25px;
}

.testimonial p {
  color: #3d4d48;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-thumb {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(15, 75, 59, .78), rgba(23, 79, 104, .7)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=80") center / cover;
}

.post-body {
  padding: 24px;
}

.post-meta {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-body h3 {
  margin-top: 8px;
}

.post-body p {
  color: var(--muted);
}

.read-more {
  color: var(--green);
  font-weight: 900;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.contact-card {
  padding: 30px;
}

.contact-card form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  color: #344640;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.notice {
  padding: 12px 14px;
  color: var(--green);
  background: var(--sage);
  border-radius: 7px;
  font-weight: 800;
}

.cta-final {
  padding: 78px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(15, 75, 59, .96), rgba(23, 79, 104, .94)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.cta-final h2,
.cta-final p {
  color: var(--white);
}

.cta-final p {
  max-width: 650px;
  font-size: 19px;
}

.site-footer {
  padding: 36px 0;
  color: #dce8dc;
  background: #111b18;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.legal {
  margin: 14px 0 0;
  max-width: 820px;
  color: #a8b9b1;
  font-size: 13px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(240px, 1fr);
  gap: 42px;
  padding: 72px 0;
}

.article-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-card h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.article-content {
  margin-top: 24px;
}

.article-content a {
  color: var(--green);
  font-weight: 800;
}

.sidebar-box {
  position: sticky;
  top: 102px;
  padding: 24px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
}

.sidebar-box h3,
.sidebar-box p {
  color: var(--white);
}

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

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid,
  .section-head,
  .split,
  .contact-wrap,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 46px;
  }

  .hero-panel {
    align-self: auto;
  }

  .stages,
  .offers-grid,
  .testimonials,
  .posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1140px);
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .stages,
  .offers-grid,
  .testimonials,
  .posts-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .cta-final .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
