/* ---------- Vivida — Landing ---------- */

:root {
  --ink: #2D3926;        /* verde oscuro de marca */
  --ink-soft: #4A5A42;
  --cream: #FFF4D3;      /* crema de marca */
  --cream-soft: #FBF6E7; /* fondo general, crema aclarado */
  --paper: #FFFFFF;
  --border: #E4DEC6;
  --border-dark: rgba(255, 244, 211, 0.18);
  --text-body: #3A4433;
  --text-muted: #6B7563;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-text-short { display: none; }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(45, 57, 38, 0.25); }

.btn-inverse {
  background: var(--cream);
  color: var(--ink);
}
.btn-inverse:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

.btn-ghost-dark {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-dark);
}
.btn-ghost-dark:hover { background: rgba(255,244,211,0.08); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img { border-radius: 6px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 96px 0 84px;
}

.hero-inner { max-width: 780px; }

.eyebrow, .section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.85;
  margin: 0 0 16px;
}

.section-eyebrow { color: var(--ink-soft); opacity: 1; }
.section-eyebrow-light { color: var(--cream); opacity: 0.85; }

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 4.3vw, 3.4rem);
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 244, 211, 0.88);
  max-width: 56ch;
}

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

.hero-trust {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 244, 211, 0.65);
}

/* ---------- Sections shared ---------- */

section { padding: 88px 0; }

.diferenciales, .servicios, .faq { background: var(--cream-soft); }
.proceso { background: var(--paper); }

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  max-width: 20ch;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: -8px;
}

/* ---------- Cards ---------- */

.cards-grid {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}

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

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0; }

.card-service { background: var(--cream-soft); }
.servicios .card-service { background: var(--paper); }

/* ---------- Proceso ---------- */

.steps {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin-left: 16px;
}
.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  color: var(--text-muted);
  padding-bottom: 18px;
  margin: 0;
}

/* ---------- CTA final ---------- */

.cta-final {
  background: var(--ink);
  color: var(--cream);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.cta-copy h2 { color: var(--cream); }
.cta-copy p { color: rgba(255, 244, 211, 0.85); }

.cta-includes {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-includes li {
  padding-left: 26px;
  position: relative;
  color: rgba(255, 244, 211, 0.92);
  font-size: 0.95rem;
}
.cta-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cream);
  font-weight: 700;
}

.contact-form {
  background: var(--cream-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text-body);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink);
  min-height: 1.2em;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 244, 211, 0.7);
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner .logo-word { color: var(--cream); }
.footer-inner p { margin: 0; font-size: 0.88rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { padding: 9px 14px; font-size: 0.82rem; }
  .header-actions .btn-text-full { display: none; }
  .header-actions .btn-text-short { display: inline; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 560px) {
  .cards-3, .cards-4, .steps { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
