/* ============================================
   TEXTOHOME — components.css
   Nav, footer, hero, formularios, tablas y componentes reutilizables
   ============================================ */

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--ink);
  border-bottom: 2px solid var(--accent);
  transition: box-shadow 0.2s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(30,22,8,0.5); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-mono {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-mono span {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 13px; color: var(--paper); letter-spacing: -0.5px;
}
.nav-wm { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--paper); }
.nav-wm em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(253,251,244,0.6); font-size: 13.5px; padding: 8px 14px;
  border-radius: 6px; transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); background: rgba(253,251,244,0.07); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--paper);
  padding: 9px 22px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
  border: none; transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.88; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--paper); border-radius: 2px; }

/* Mobile nav */
.mob-nav {
  display: none; position: fixed; inset: 0; background: var(--ink); z-index: 190;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.mob-nav.open { display: flex; }
.mob-nav a { color: var(--paper); font-size: 22px; font-family: var(--font-display); padding: 12px 32px; }
.mob-close { position: absolute; top: 20px; right: 24px; font-size: 28px; color: var(--stone); background: none; border: none; line-height: 1; }

/* ---- HERO ---- */
.hero {
  background:
    radial-gradient(115% 115% at 88% 12%, rgba(181,131,10,0.12) 0%, transparent 55%),
    radial-gradient(90% 90% at 8% 92%, rgba(138,114,64,0.10) 0%, transparent 52%),
    linear-gradient(135deg, var(--paper) 0%, var(--warm) 100%);
  padding: 96px 32px 88px; position: relative; overflow: hidden;
}
/* Aurora suave animada — solo transform/opacity (compositado por GPU, sin peso de carga) */
.hero::before {
  content: ''; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(32% 32% at 22% 28%, rgba(181,131,10,0.16), transparent 62%),
    radial-gradient(38% 38% at 80% 72%, rgba(184,164,120,0.18), transparent 62%);
  animation: heroAurora 20s ease-in-out infinite alternate;
  will-change: transform;
}
.hero--sub { padding: 80px 32px 72px; }
.hero-rule { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-dk)); z-index: 2; }
.hero-deco {
  position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 360px; line-height: 1; letter-spacing: -14px;
  color: rgba(181,131,10,0.08); pointer-events: none; user-select: none; z-index: 0;
  animation: heroFloat 9s ease-in-out infinite;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1; }
.hero-inner > * { animation: heroRise 0.7s cubic-bezier(0.2,0.7,0.2,1) backwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.04s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.20s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.28s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.36s; }
.hero h1 { color: var(--ink); max-width: 760px; margin-bottom: 22px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead { color: var(--stone); max-width: 540px; margin-bottom: 40px; }
.hero .kicker--dim { color: var(--stone); }
.hero .btn-secondary { border-color: var(--border); color: var(--ink); }
.hero .btn-secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 48px; margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.hero-stat .num { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--accent); line-height: 1; }
.hero-stat .lbl { font-size: 12px; color: var(--stone); margin-top: 4px; text-transform: uppercase; letter-spacing: 1.5px; }

/* Keyframes del hero (GPU: transform/opacity) */
@keyframes heroAurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -1.6%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 1.6%, 0) scale(1.03); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(-53%); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-deco, .hero-inner > * { animation: none; }
}

/* ---- PAIN CARDS ---- */
.pain-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.pain-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-bottom: 16px; }
.pain-card h3 { font-size: 15px; margin-bottom: 8px; }
.pain-card p { font-size: 13.5px; color: var(--stone); line-height: 1.65; }

/* ---- CHANNELS ---- */
.ch-item { text-align: center; padding: 32px 20px; }
.ch-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(181,131,10,0.1); border: 1px solid rgba(181,131,10,0.2);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.ch-item h3 { font-size: 16px; color: var(--paper); margin-bottom: 8px; }
.ch-item p { font-size: 13px; color: rgba(253,251,244,0.5); line-height: 1.6; }

/* ---- STEPS ---- */
.steps-row { display: grid; grid-template-columns: 1fr 1fr 1fr; position: relative; }
.steps-row::before { content: ''; position: absolute; left: 16.66%; right: 16.66%; top: 30px; height: 1px; background: var(--border); }
.step-item { text-align: center; padding: 0 20px; }
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent); color: var(--accent);
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.step-item h3 { font-size: 15px; margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--stone); line-height: 1.65; }

/* ---- FOR WHO ---- */
.profiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.profile-pill {
  padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1px solid rgba(253,251,244,0.12); background: rgba(253,251,244,0.06);
  color: rgba(253,251,244,0.75); font-size: 14px;
}
.not-for {
  margin-top: 28px; padding: 18px 22px; border-radius: var(--radius-md);
  background: rgba(181,131,10,0.1); border-left: 3px solid var(--accent);
  font-size: 14px; color: rgba(253,251,244,0.6);
}

/* ---- PRICING CARDS ---- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.price-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 32px 26px; position: relative; }
.price-card.feat { background: var(--ink); color: var(--paper); border: 2px solid var(--accent); transform: scale(1.03); box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--paper);
  padding: 4px 16px; border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; white-space: nowrap;
}
.price-name { font-size: 10.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--stone); margin-bottom: 7px; }
.price-card.feat .price-name { color: rgba(253,251,244,0.4); }
.price-amount { font-family: var(--font-display); font-size: 42px; font-weight: 900; line-height: 1; color: var(--ink); margin-bottom: 3px; }
.price-card.feat .price-amount { color: var(--paper); }
.price-period { font-size: 12px; color: var(--stone); margin-bottom: 20px; }
.price-card.feat .price-period { color: rgba(253,251,244,0.4); }
.price-tagline { font-size: 13px; color: var(--stone); line-height: 1.55; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.price-card.feat .price-tagline { color: rgba(253,251,244,0.5); border-color: rgba(253,251,244,0.08); }
.price-feats { margin-bottom: 24px; }
.price-feats li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; line-height: 1.5; }
.price-card.feat .price-feats li { border-color: rgba(253,251,244,0.07); color: rgba(253,251,244,0.8); }
.price-feats li:last-child { border-bottom: none; }
.pf-check { color: var(--accent); flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.price-cta { display: block; text-align: center; padding: 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500; border: none; width: 100%; transition: all 0.15s; }
.pc-outline { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.pc-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pc-fill { background: var(--accent); color: var(--paper); }
.pc-fill:hover { background: var(--accent-dk); }

/* ---- BILLING TOGGLE ---- */
.billing-toggle-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.toggle-track { width: 44px; height: 24px; border-radius: 100px; background: var(--border); cursor: pointer; position: relative; transition: 0.2s; }
.toggle-track.on { background: var(--accent); }
.toggle-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; transition: 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle-track.on .toggle-thumb { left: 23px; }
.toggle-lbl { font-size: 14px; color: var(--stone); }
.save-badge { background: rgba(181,131,10,0.12); color: var(--accent); padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }

/* ---- BLOG CARDS ---- */
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: box-shadow 0.15s; }
.blog-card:hover { box-shadow: 0 6px 24px rgba(30,22,8,0.08); }
.blog-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.blog-card h3 { font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
.blog-card p { font-size: 13px; color: var(--stone); line-height: 1.65; margin-bottom: 18px; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--stone-lt); }
.blog-read { color: var(--accent); font-weight: 500; }

/* ---- SERVICE DETAIL ---- */
.svc-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.svc-hd { padding: 16px 24px; background: var(--warm); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.svc-hd h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.svc-tags { display: flex; gap: 6px; }
.stag { padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.stag-all { background: rgba(181,131,10,0.12); color: var(--accent); }
.stag-mid { background: rgba(30,22,8,0.07); color: var(--stone); }
.stag-top { background: var(--ink); color: var(--paper); }
.svc-bd { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.col-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--stone-lt); margin-bottom: 10px; }
.svc-what p { font-size: 13.5px; color: var(--stone); line-height: 1.7; margin-bottom: 10px; }
.specs { display: flex; flex-direction: column; gap: 7px; }
.spec { display: flex; align-items: flex-start; gap: 9px; background: var(--warm); border-radius: 7px; padding: 9px 12px; }
.sp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex-shrink: 0; }
.sp-t strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 1px; }
.sp-t span { font-size: 11.5px; color: var(--stone); }
.svc-ex { background: var(--ink); padding: 16px 24px; border-top: 1px solid var(--border); }
.ex-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 7px; }
.ex-txt { font-size: 13px; color: rgba(253,251,244,0.65); line-height: 1.75; font-style: italic; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-size: 15px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 22px; color: var(--accent); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 18px; font-size: 14px; color: var(--stone); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ---- TIMELINE ---- */
.tl { position: relative; padding-left: 46px; margin-top: 28px; }
.tl::before { content: ''; position: absolute; left: 14px; top: 13px; bottom: 13px; width: 1.5px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -40px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; z-index: 1; }
.tl-day { font-size: 9.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 4px; }
.tl-item h3 { font-size: 15px; margin-bottom: 5px; }
.tl-item p { font-size: 13.5px; color: var(--stone); line-height: 1.65; }

/* ---- COMPARE TABLE ---- */
.tbl-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th { background: var(--ink); color: var(--paper); padding: 13px 18px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; }
thead th:not(:first-child) { text-align: center; }
tbody tr { border-bottom: 1px solid var(--border-lt); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 12px 18px; background: var(--white); vertical-align: middle; }
tbody td:not(:first-child) { text-align: center; }
tbody tr:hover td { background: var(--warm); }
.tr-cat td { background: var(--warm) !important; font-size: 9.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--stone); font-weight: 600; padding: 7px 18px; }
.fn { font-weight: 500; }
.fs { font-size: 11px; color: var(--stone-lt); margin-top: 1px; }
.chk { color: var(--accent); font-size: 15px; font-weight: 700; }
.dash { color: var(--border); font-size: 18px; }
.qty { font-weight: 600; }

/* ---- NOT WE ---- */
.nw-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-top: 24px; }
.nw-row { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--white); }
.nw-row:last-child { border-bottom: none; }
.nw-no { font-size: 13.5px; color: var(--stone-lt); text-decoration: line-through; }
.nw-arr { color: var(--accent); font-size: 14px; text-align: center; font-weight: 700; }
.nw-yes { font-size: 13.5px; font-weight: 500; }

/* ---- FORMS ---- */
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: var(--white); outline: none; transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.ci-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.ci-item:last-child { border-bottom: none; }
.ci-ico { width: 38px; height: 38px; border-radius: 9px; background: rgba(181,131,10,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--stone-lt); margin-bottom: 2px; }
.ci-val { font-size: 14px; font-weight: 500; }
.steps-after { margin-top: 28px; }
.sa-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-lt); }
.sa-item:last-child { border-bottom: none; }
.sa-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--paper); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.sa-text { font-size: 13.5px; color: var(--stone); line-height: 1.55; }
#form-success { display: none; text-align: center; padding: 48px 24px; }
#form-success .ok-ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(181,131,10,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 22px; }

/* ---- CTA SECTION ---- */
.cta-sec { background: var(--accent); padding: 72px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-sec::after { content: 'th.'; position: absolute; right: -20px; bottom: -30px; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 200px; line-height: 1; letter-spacing: -8px; color: rgba(30,22,8,0.06); pointer-events: none; }
.cta-sec h2 { color: var(--paper); max-width: 540px; margin: 0 auto 14px; position: relative; z-index: 1; }
.cta-sec p { color: rgba(253,251,244,0.7); font-size: 15px; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-sec .btn { position: relative; z-index: 1; }

/* ---- FOOTER ---- */
footer { background: var(--ink); border-top: 2px solid var(--accent); }
.footer-top { max-width: var(--max-width); margin: 0 auto; padding: 56px 32px 48px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: 13.5px; color: rgba(253,251,244,0.4); line-height: 1.65; margin-top: 12px; max-width: 220px; }
.footer-col h4 { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--stone); margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(253,251,244,0.55); font-size: 13.5px; padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(253,251,244,0.07); padding: 20px 32px; max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(253,251,244,0.3); }
.footer-socials { display: flex; gap: 10px; }
.soc-link { width: 34px; height: 34px; border-radius: 8px; background: rgba(253,251,244,0.06); border: 1px solid rgba(253,251,244,0.07); display: flex; align-items: center; justify-content: center; color: rgba(253,251,244,0.5); transition: all 0.15s; }
.soc-link:hover { background: rgba(181,131,10,0.15); color: var(--accent); }

/* ---- TAGLINE ---- */
.tagline-main { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.3; border-left: 4px solid var(--accent); padding-left: 22px; margin-bottom: 28px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .steps-row { grid-template-columns: 1fr; gap: 32px; }
  .steps-row::before { display: none; }
  .price-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .svc-bd { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nw-row { grid-template-columns: 1fr; }
  .nw-arr, .nw-no { display: none; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .price-card.feat { transform: none; }
  .hero { padding: 64px 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-deco { font-size: 200px; }
}
