/* Ovejero Ferreira — Sistema unificado.
   Editorial (Playfair Display) + minimalismo Apple + paleta cálida brand. */

:root {
  /* Background */
  --bg:           #FFFCF8;            /* cream principal */
  --bg-alt:       #F8F1E6;            /* cream un toque más cálido */
  --bg-dark:      #280A1A;            /* violeta brand-900 — para footer / immersive */
  --bg-overlay:   rgba(40,10,26,0.92);

  /* Surface */
  --surface:      #ffffff;
  --surface-alt:  #FDFAF4;

  /* Text */
  --text:         #280A1A;
  --text-2:       rgba(40,10,26,0.78);
  --text-3:       rgba(40,10,26,0.50);
  --text-on-dark: #FFFCF8;
  --text-on-dark-2: rgba(255,252,248,0.78);
  --text-on-dark-3: rgba(255,252,248,0.50);

  /* Borders */
  --border:        rgba(40,10,26,0.08);
  --border-strong: rgba(40,10,26,0.18);

  /* Brand accents */
  --accent:        #D86D2D;            /* naranja primary CTA */
  --accent-hover:  #b55522;
  --accent-soft:   rgba(216,109,45,0.10);

  --secondary:     #6C1D4A;            /* violeta — links + hover prestige */
  --secondary-hover: #551639;
  --secondary-soft: rgba(108,29,74,0.08);

  --gold:          #F1C166;            /* badges sutiles */

  /* States */
  --success:       #30734d;
  --danger:        #d70015;
  --warning:       #b25000;

  /* Shadow */
  --shadow-card:   0 1px 2px rgba(40,10,26,0.04), 0 1px 3px rgba(40,10,26,0.06);
  --shadow-lift:   0 12px 36px -8px rgba(40,10,26,0.18);

  /* Radius */
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --radius-pill:  980px;

  /* Misc */
  --container:    1200px;
  --nav-h:        68px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  background: var(--bg);
  color: var(--text);
}

[x-cloak] { display: none !important; }

/* Headlines — editorial Playfair, brand mood */
h1, h2, h3, h4, .display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--secondary);
  margin: 0;
}
h1 { font-size: clamp(40px, 5.5vw, 56px); line-height: 1.07; }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.12; }
h3 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }

/* Body */
p { margin: 0 0 1em; line-height: 1.6; color: var(--text-2); }
small { font-size: 13px; color: var(--text-3); }

/* Links */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent); }

/* Containers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: inherit; font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, border 0.15s, color 0.15s, transform 0.06s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-secondary {
  background: transparent; color: var(--secondary);
  border-color: rgba(108,29,74,0.3);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-soft); border-color: var(--secondary); color: var(--secondary);
}

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) { background: rgba(40,10,26,0.04); }

.btn-on-dark {
  background: rgba(255,252,248,0.12); color: var(--text-on-dark);
  border-color: rgba(255,252,248,0.25);
  backdrop-filter: blur(10px);
}
.btn-on-dark:hover:not(:disabled) {
  background: rgba(255,252,248,0.2); border-color: rgba(255,252,248,0.4); color: #fff;
}

.btn-whatsapp {
  background: #25d366; color: #fff;
}
.btn-whatsapp:hover:not(:disabled) { background: #1ebe5c; color: #fff; }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ─── Form inputs ──────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: -0.005em;
}
.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 90px; resize: vertical; line-height: 1.5; }

/* ─── Card ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}

/* ─── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-accent { background: var(--accent); color: #fff; }
.badge-secondary { background: var(--secondary); color: #fff; }
.badge-gold { background: var(--gold); color: var(--text); }
.badge-dark { background: rgba(40,10,26,0.85); color: var(--text-on-dark); }
.badge-soft { background: var(--secondary-soft); color: var(--secondary); }

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(108,29,74,0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 40px; display: block; }
.nav-links {
  display: flex; gap: 28px;
  margin-left: auto; align-items: center;
}
.nav-links a {
  color: rgba(255,252,248,0.78);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 4px;
  background: var(--accent); color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, transform 0.06s;
  box-shadow: 0 4px 14px rgba(216,109,45,0.3);
}
.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.nav-cta:active { transform: translateY(1px); }

.nav-burger {
  display: none;
  background: transparent; border: none; padding: 8px;
  margin-left: auto; cursor: pointer;
  color: #fff;
}
.nav-mobile {
  display: none;
  flex-direction: column; gap: 0;
  background: rgba(108,29,74,0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 20px 20px;
}
.nav-mobile a {
  padding: 12px 0; font-size: 15px; color: rgba(255,252,248,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1fr;
  gap: 48px;
}
@media (max-width: 760px) {
  .footer-inner { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-on-dark-3);
  margin: 0 0 18px;
}
.footer p, .footer li, .footer a {
  font-size: 14px; line-height: 1.7;
  color: var(--text-on-dark-2);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer a { text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,252,248,0.10);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-on-dark-3);
  flex-wrap: wrap; gap: 12px;
}
.footer-credit {
  text-align: center; padding: 14px 20px;
  background: rgba(0,0,0,0.25);
  font-size: 11px; color: rgba(255,252,248,0.32);
}
.footer-credit a {
  color: rgba(255,252,248,0.5); text-decoration: none;
  font-size: 11px;
}
.footer-credit a:hover { color: var(--gold); }

/* ─── Sections / Layout helpers ────────────────────────── */
.section {
  padding: clamp(56px, 8vw, 96px) 20px;
}
.section-header {
  text-align: center; max-width: 700px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section-divider {
  display: block;
  width: 56px; height: 3px;
  background: var(--accent);
  margin: 0 auto 24px;
  border-radius: 2px;
}

/* ─── Utils ────────────────────────────────────────────── */
.muted { color: var(--text-3); }
.text-center { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }
