/* ============================================================
   PlanIA · main.css
   Paleta: tierra #C4622D | carbon #1E1A16 | arena #E8D5B7
   Fuentes: Playfair Display (títulos) + DM Sans (cuerpo)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tierra:        #C4622D;
  --tierra-dark:   #9E4B1F;
  --tierra-light:  #F5EDE0;
  --tierra-ultra:  #FBF5EE;
  --arena:         #E8D5B7;
  --arena-dark:    #C4A882;
  --verde:         #3D5A3E;
  --ocre:          #D4A853;
  --carbon:        #1E1A16;
  --carbon-2:      #2C2520;
  --gris:          #6B6157;
  --gris-light:    #A89A8A;
  --border:        #E2DAD0;
  --fondo:         #FAF7F2;
  --fondo-dark:    #130F0B;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 20px 60px rgba(30,26,22,.13);
  --shadow-lg: 0 32px 80px rgba(30,26,22,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--fondo);
  color: var(--carbon);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }


/* ── UTILIDADES ─────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

.label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--tierra); margin-bottom: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }


/* ── BOTONES ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-tierra {
  background: var(--tierra); color: white;
}
.btn-tierra:hover {
  background: var(--tierra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,98,45,.3);
}
.btn-outline {
  background: transparent; color: var(--carbon);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--tierra); color: var(--tierra); }
.btn-white {
  background: white; color: var(--tierra);
}
.btn-white:hover { background: var(--arena); transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 10px; }


/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196,98,45,.1);
  height: 66px;
}
.nav .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img  { height: 34px; }
.nav-links     { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a   { font-size: 14px; font-weight: 500; color: var(--gris); transition: color .2s; }
.nav-links a:hover { color: var(--carbon); }
.nav-cta { padding: 10px 22px; font-size: 14px; }


/* ── HERO ────────────────────────────────────────────────── */
.hero { padding: 96px 0 72px; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--tierra-light); border: 1px solid var(--arena);
  color: var(--tierra); font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 20px;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800; line-height: 1.08;
  color: var(--carbon); letter-spacing: -.025em;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--tierra); font-style: normal; }

.hero-sub {
  font-size: 18px; color: var(--gris);
  max-width: 580px; margin: 0 auto 14px;
  line-height: 1.75;
}

.hero-proof {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 44px;
  font-size: 13px; color: var(--gris-light);
}
.hero-proof span { display: flex; align-items: center; gap: 5px; }
.hero-proof .dot { width: 4px; height: 4px; background: var(--border); border-radius: 50%; }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-screenshot {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(30,26,22,.07);
  max-width: 980px; margin: 0 auto;
}


/* ── SOCIAL PROOF / STATS ────────────────────────────────── */
.stats-band { background: var(--carbon); padding: 56px 0; }
.stats-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}
.stat-item { padding: 24px; border-right: 1px solid rgba(255,255,255,.08); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 42px; font-weight: 800;
  color: var(--tierra); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: #A89A8A; line-height: 1.5; }


/* ── PARA QUIÉN ──────────────────────────────────────────── */
.for-who { padding: 96px 0; }
.for-who .container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.for-who-header { grid-column: 1/-1; text-align: center; margin-bottom: 16px; }
.for-who-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px,3.5vw,40px); font-weight: 800;
  color: var(--carbon); letter-spacing: -.02em;
}

.fw-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: 0 4px 20px rgba(30,26,22,.05);
  transition: transform .25s, box-shadow .25s;
}
.fw-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fw-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--tierra-light); border: 1px solid var(--arena);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.fw-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--carbon);
  margin-bottom: 8px;
}
.fw-card .subtitle { font-size: 14px; color: var(--gris); margin-bottom: 20px; line-height: 1.6; }
.fw-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fw-list li {
  font-size: 14px; color: var(--carbon);
  display: flex; gap: 9px; align-items: flex-start; line-height: 1.5;
}
.fw-list li::before { content: '✓'; color: var(--tierra); font-weight: 700; flex-shrink: 0; margin-top: 1px; }


/* ── FEATURES ────────────────────────────────────────────── */
.feat-section { padding: 80px 0; }
.feat-section.alt { background: var(--tierra-ultra); }

.feat {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.feat.flip .feat-text  { order: 2; }
.feat.flip .feat-img   { order: 1; }

.feat-tag {
  display: inline-block; background: var(--tierra-light);
  border: 1px solid var(--arena);
  color: var(--tierra); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.feat h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px,2.8vw,32px); font-weight: 800;
  color: var(--carbon); line-height: 1.2; margin-bottom: 14px;
  letter-spacing: -.015em;
}
.feat p { font-size: 15px; color: var(--gris); line-height: 1.8; margin-bottom: 22px; }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feat-list li {
  font-size: 14px; color: var(--carbon);
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
}
.feat-list li .ico {
  width: 20px; height: 20px; background: var(--tierra-light);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 1px;
  color: var(--tierra); font-size: 11px; font-weight: 700;
}
.feat-img-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30,26,22,.07);
}


/* ── WORKFLOW ────────────────────────────────────────────── */
.workflow-section { padding: 96px 0; background: var(--carbon); }
.workflow-header { text-align: center; margin-bottom: 64px; }
.workflow-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px,3.5vw,42px); font-weight: 800;
  color: white; letter-spacing: -.02em; margin-bottom: 12px;
}
.workflow-header p { font-size: 17px; color: #A89A8A; }

.workflow-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; position: relative;
}
.workflow-steps::before {
  content: '';
  position: absolute; top: 32px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,98,45,.4), transparent);
}
.step {
  text-align: center; padding: 0 16px; position: relative;
}
.step-num {
  width: 64px; height: 64px; background: var(--tierra);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 18px;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 800; color: white;
  position: relative; z-index: 1;
}
.step h4 {
  font-size: 14px; font-weight: 700; color: white;
  margin-bottom: 8px; line-height: 1.3;
}
.step p { font-size: 12px; color: #A89A8A; line-height: 1.6; }


/* ── PRICING ─────────────────────────────────────────────── */
.pricing-section { padding: 96px 0; }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px,3.5vw,42px); font-weight: 800;
  color: var(--carbon); letter-spacing: -.02em; margin-bottom: 12px;
}
.pricing-header p { font-size: 16px; color: var(--gris); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px; align-items: start;
}

.pricing-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.hot {
  background: var(--tierra); border-color: var(--tierra);
  transform: scale(1.02);
}
.pricing-card.hot:hover { transform: scale(1.02) translateY(-4px); }

.hot-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ocre); color: var(--carbon);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.p-tier {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gris); margin-bottom: 10px;
}
.pricing-card.hot .p-tier { color: rgba(255,255,255,.75); }

.p-price {
  font-family: 'Playfair Display', serif;
  font-size: 44px; font-weight: 800;
  color: var(--carbon); line-height: 1; margin-bottom: 4px;
}
.p-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; display: inline-block; }
.p-price .period { font-size: 14px; font-weight: 400; color: var(--gris-light); font-family: 'DM Sans', sans-serif; }
.pricing-card.hot .p-price { color: white; }
.pricing-card.hot .p-price .period { color: rgba(255,255,255,.65); }

.p-desc { font-size: 13px; color: var(--gris); margin-bottom: 24px; line-height: 1.55; }
.pricing-card.hot .p-desc { color: rgba(255,255,255,.75); }

.p-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 20px; }
.pricing-card.hot .p-divider { border-color: rgba(255,255,255,.2); }

.p-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.p-list li {
  font-size: 13px; color: var(--carbon);
  display: flex; gap: 8px; align-items: flex-start; line-height: 1.45;
}
.p-list li::before { content: '✓'; color: var(--tierra); font-weight: 700; flex-shrink: 0; }
.pricing-card.hot .p-list li { color: white; }
.pricing-card.hot .p-list li::before { color: rgba(255,255,255,.8); }

.btn-p {
  display: block; width: 100%; text-align: center; padding: 12px;
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all .2s;
}
.btn-p-tierra { background: var(--tierra); color: white; }
.btn-p-tierra:hover { background: var(--tierra-dark); }
.btn-p-outline { background: transparent; border: 1.5px solid var(--border); color: var(--carbon); }
.btn-p-outline:hover { border-color: var(--tierra); color: var(--tierra); }
.btn-p-white { background: white; color: var(--tierra); }
.btn-p-white:hover { background: var(--tierra-light); }

.social-strip {
  margin-top: 20px; background: var(--verde);
  border-radius: var(--radius); padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.social-strip h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: white; margin-bottom: 4px;
}
.social-strip p { font-size: 13px; color: rgba(255,255,255,.7); }
.btn-verde {
  background: rgba(255,255,255,.15); color: white;
  border: 1.5px solid rgba(255,255,255,.3);
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: all .2s; flex-shrink: 0;
}
.btn-verde:hover { background: rgba(255,255,255,.25); }

.pricing-note { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gris-light); }


/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section { padding: 96px 0; max-width: 760px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 800; color: var(--carbon); margin-bottom: 8px;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600; color: var(--carbon);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.faq-q .arr { flex-shrink: 0; color: var(--tierra); transition: transform .25s; }
.faq-item.open .faq-q .arr { transform: rotate(180deg); }
.faq-a {
  display: none; padding-bottom: 20px;
  font-size: 15px; color: var(--gris); line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }


/* ── CTA FINAL ───────────────────────────────────────────── */
.cta-band {
  background: var(--tierra);
  padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,.08), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px,4vw,52px); color: white;
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; line-height: 1.1;
}
.cta-band p { color: rgba(255,255,255,.82); font-size: 18px; margin-bottom: 40px; }


/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--fondo-dark); padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
footer img { height: 26px; opacity: .7; }
.f-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.f-links a { color: #4A4038; font-size: 13px; transition: color .2s; }
.f-links a:hover { color: var(--arena); }
.f-copy { font-size: 12px; color: #4A4038; text-align: right; line-height: 1.8; }
.f-copy a { color: var(--tierra); }


/* ── ZOOM AUTOMÁTICO EN IMÁGENES DE FEATURES ─────────────────────────────── */
@keyframes kenburns {
  0%   { transform: scale(1);    }
  100% { transform: scale(1.06); }
}

.feat-img-wrap {
  cursor: zoom-in;
  overflow: hidden;
}

.feat-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
  animation: kenburns 8s ease-in-out infinite alternate;
  will-change: transform;
}

.feat-img-wrap:hover img {
  animation-play-state: paused;
  transform: scale(1.04);
}


/* ── LIGHTBOX ────────────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,16,12,.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  animation: lightbox-in .25s ease forwards;
  cursor: zoom-out;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  width: auto; height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  animation: lightbox-scale .3s cubic-bezier(.34,1.56,.64,1) forwards;
  cursor: default;
}

@keyframes lightbox-scale {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: white; width: 40px; height: 40px; border-radius: 50%;
  font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

.lightbox-hint {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.45); font-size: 12px; font-family: 'DM Sans', sans-serif;
  pointer-events: none;
}