/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--cream); margin: 0; padding: 0; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
main { display: block; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 900; line-height: 0.97; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; line-height: 1.3; color: var(--ink); }

.em { color: var(--clay); font-style: italic; }

section { position: relative; }
.container {
  padding: 2.5rem;
}
@media (max-width: 768px) {
  .container { padding: 1.5rem; }
}

.section-padding { background: var(--cream); padding: 2.5rem; }
.post-body { background: var(--cream); }

/* ===== NAVEGACIÓN (4.1) ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 56px;
  background: var(--nav);
  border-bottom: 1px solid rgba(196, 101, 42, 0.18);
  margin: 0;
}
body > nav:first-of-type { margin-top: 0; }
nav + * { margin-top: 0; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { color: var(--cream); }
.nav-logo-dot {
  width: 6px; height: 6px;
  background: var(--electric);
  border-radius: 50%;
  margin-bottom: 1px;
}
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, 0.45);
  padding: 0 0.9rem;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
  border-bottom-color: var(--clay);
}
.nav-cta {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--clay);
  color: var(--cream);
  padding: 0.42rem 1.2rem;
  border-radius: var(--radius-pill);
  margin-left: 0.8rem;
  transition: background var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-cta:hover { background: var(--clay-dark); }
.nav-hamburger { display: none; }
nav { transition: transform var(--transition); }
.nav--hidden { transform: translateY(-100%); }
.nav--scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
body.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar nav { top: 46px; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--cream);
  padding: 0.8rem 2.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.breadcrumb a { color: var(--clay); }
.breadcrumb a:hover { color: var(--clay-dark); }
.bc-sep { color: rgba(26,18,8,0.15); }
.bc-current { color: var(--ink); font-weight: 600; }

/* ===== FOOTER (4.2) ===== */
footer { background: #080604; color: rgba(255,255,255,0.6); }
.ft-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 2.8rem 2.5rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}
.ft-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.ft-logo span { color: white; }
.ft-logo-dot {
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  margin-bottom: 1px;
}
.ft-brand p { font-size: 0.78rem; color: rgba(255,255,255,0.38); line-height: 1.7; margin-bottom: 1rem; }
.social-row { display: flex; gap: 0.5rem; }
.s-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,0.35);
  cursor: pointer; transition: all var(--transition);
}
.s-btn:hover { border-color: var(--clay); color: var(--cream); background: rgba(196,101,42,0.15); }
.ft-col h4 {
  font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}
.ft-col li { margin-bottom: 0.45rem; }
.ft-col li a { font-size: 0.75rem; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.ft-col li a:hover { color: white; }
.ft-ci-lbl { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-top: 0.7rem; }
.ft-ci-lbl:first-child { margin-top: 0; }
.ft-ci-val { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.ft-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1600px;
  margin: 0 auto;
}
.ft-bottom p { font-size: 0.67rem; color: rgba(255,255,255,0.2); }
.ft-bottom-links { display: flex; gap: 1.2rem; }
.ft-bottom-links a { font-size: 0.67rem; color: rgba(255,255,255,0.25); transition: color var(--transition); }
.ft-bottom-links a:hover { color: white; }

/* ===== TAGS (4.3) ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.26rem 0.85rem;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
}
.tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.tag-clay    { color: var(--clay);         border: 1px solid rgba(196,101,42,0.32);  background: rgba(196,101,42,0.06);  }
.tag-teal    { color: var(--electric);     border: 1px solid rgba(78,205,196,0.3);   background: rgba(78,205,196,0.07);  }
.tag-cream   { color: rgba(253,250,244,0.7); border: 1px solid rgba(253,250,244,0.2); background: rgba(253,250,244,0.05); }

 
/* ===== BOTONES (4.4) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-clay { background: var(--clay); color: var(--cream); }
.btn-clay:hover { background: var(--clay-dark); }

.btn-white { background: var(--cream); color: var(--clay-dark); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-white::after { content: '→'; }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #1da051; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-ghost { font-size: 0.81rem; color: rgba(253,250,244,0.4); background: none; border: none; }
.btn-ghost:hover { color: var(--cream); }
.icon { width: 1em; height: 1em; vertical-align: middle; }

/* ===== PLAN CARDS COMPARTIDOS ===== */
.tarifas-index { background: var(--cream); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.plan {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(26,18,8,0.07);
  padding: 1.8rem;
  position: relative;
}
.plan.pop {
  border: 2px solid var(--clay);
  padding-top: 2.4rem;
}
.pop-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--clay); color: white;
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.27rem 1rem;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
}
.plan-name {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.3rem;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 900;
  color: var(--ink); line-height: 1;
  margin-bottom: 0.2rem;
}
.plan-price span {
  font-size: 0.7rem; font-weight: 400;
  color: var(--muted-light);
}
.plan-desc {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.feat-list { margin-bottom: 1.5rem; }
.feat-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.77rem; color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(26,18,8,0.05);
}
.feat-list li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ===== HERO INTERIOR (4.5) ===== */
.ph {
  background: var(--ink);
  padding: 2.8rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.ph-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 50%,
    rgba(196,101,42,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.ph-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(196,101,42,0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,101,42,0.048) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.ph-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.ph h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 0.9rem;
}
.ph p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(253,250,244,0.52);
  line-height: 1.72;
  max-width: 480px;
}
.ph.centered { text-align: center; }
.ph.centered .ph-inner { margin: 0 auto; }
.ph.centered p { margin: 0 auto; }

/* ===== FONDOS DECORATIVOS (4.6) ===== */
.hero-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 75% 50%, rgba(196,101,42,0.13) 0%, transparent 62%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(78,205,196,0.06) 0%, transparent 55%);
  pointer-events: none;
}
/* ===== CTA FINAL (shared across pages) ===== */
.cta-final {
  padding: 3rem 2.5rem;
  background: var(--clay);
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; top: -40%; left: -5%;
  width: 45%; height: 200%;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.cta-final::after {
  content: '';
  position: absolute; bottom: -20%; right: 8%;
  width: 28%; height: 120%;
  background: rgba(0,0,0,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 { color: white; margin-bottom: 0.6rem; }
.cta-final p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; line-height: 1.6; }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,101,42,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,101,42,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; color: rgba(255,255,255,0.85); }
.cookie-banner a { color: var(--clay); text-decoration: underline; }
.cookie-banner a:hover { color: #fff; }
.cookie-banner .btn {
  flex-shrink: 0;
  padding: 0.45rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}
@media (max-width: 576px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 0.8rem 1rem;
  }
}
