/*
Theme Name: Insider Stunning
Theme URI: https://insiderstunning.com/
Author: Insider Stunning
Description: Tema a medida para Insider Stunning — agencia de inteligencia artificial para asesorías, inmobiliarias y clínicas dentales. Estética clara, sin dependencias externas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insiderstunning
*/

/* ==========================================================================
   Insider Stunning — Sistema de diseño (edición clara)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Superficies */
  --bg:            #ffffff;
  --bg-soft:       #f6f8fc;
  --bg-softer:     #fbfcfe;
  --surface:       #ffffff;
  --surface-tint:  #f2f6fd;

  /* Tinta */
  --ink:           #0a1424;
  --ink-2:         #26334a;
  --ink-3:         #5a6880;
  --ink-muted:     #78849a;

  /* Marca */
  --brand:         #0b63f6;
  --brand-600:     #0a56d6;
  --brand-300:     #63a6ff;
  --cyan:          #00c2ff;
  --cyan-soft:     #e3f3ff;
  --brand-soft:    #e9f1ff;

  /* Líneas y sombras */
  --line:          rgba(10, 20, 36, .09);
  --line-strong:   rgba(10, 20, 36, .16);
  --shadow-xs:     0 1px 2px rgba(10, 20, 36, .05);
  --shadow-sm:     0 2px 8px rgba(10, 20, 36, .05), 0 1px 2px rgba(10, 20, 36, .04);
  --shadow-md:     0 12px 32px -12px rgba(10, 20, 36, .14), 0 2px 8px rgba(10, 20, 36, .04);
  --shadow-lg:     0 32px 64px -28px rgba(10, 30, 70, .26), 0 8px 24px -12px rgba(10, 20, 36, .08);
  --shadow-brand:  0 16px 40px -16px rgba(11, 99, 246, .45);

  /* Gradientes */
  --grad-brand:    linear-gradient(120deg, #0b63f6 0%, #2b8cff 45%, #00c2ff 100%);
  --grad-text:     linear-gradient(100deg, #0a1424 0%, #0b63f6 55%, #00b0f0 100%);

  /* Métrica */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw:      1180px;
  --gutter:    24px;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font-sans);

  --nav-h: 72px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
button { font: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  font-weight: 800;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ---------- 4. Tipografía utilitaria ---------- */
/* Antetítulo sobrio: texto pequeño, sin píldora ni adornos */
.eyebrow {
  display: block;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.eyebrow .dot { display: none; }
h1, .h1 { font-size: clamp(2.4rem, 5.6vw, 4.05rem); font-weight: 800; letter-spacing: -.035em; }
h2, .h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -.015em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-3); line-height: 1.62; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { margin-bottom: 0; }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 15.5px; font-weight: 700; letter-spacing: -.01em;
  padding: 15px 28px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 48px -18px rgba(11, 99, 246, .6); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand-300); background: var(--brand-soft); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 14.5px; }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- 6. Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(10, 20, 36, .18); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; font-size: 17px; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 36px; height: 36px; border-radius: 11px; flex: none; box-shadow: var(--shadow-sm); }
/* margin-left:auto empuja los enlaces a la derecha, junto al botón de contacto */
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 6px; }
.nav-links a {
  color: var(--ink-3); font-size: 15px; font-weight: 550;
  padding: 9px 14px; border-radius: 10px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
/* El menú es corto (Inicio + Contáctanos): cabe entero también en móvil.
   Solo se recorta el nombre de marca en pantallas muy estrechas. */
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav-links a { padding: 9px 10px; }
  .nav .btn-sm { padding: 10px 16px; font-size: 14px; }
}

/* ---------- 7. Fondos decorativos ---------- */
.bg-grid::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  opacity: .8;
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: .5; }
.blob-a { width: 520px; height: 520px; background: rgba(11, 99, 246, .22); top: -180px; right: -120px; }
.blob-b { width: 440px; height: 440px; background: rgba(0, 194, 255, .2); top: 180px; left: -180px; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(60px, 8vw, 104px); overflow: hidden; background: linear-gradient(180deg, #fbfcff 0%, #ffffff 62%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 540px; margin-bottom: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: 14.5px; color: var(--ink-muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* ---------- 9. Tarjetas ---------- */
.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(11, 99, 246, .22); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-3); font-size: 15.5px; margin-bottom: 0; line-height: 1.62; }
.card-num {
  font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .1em;
  color: var(--brand); margin-bottom: 18px; display: block;
}
.icon-badge {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, #eef4ff, #e2f4ff); border: 1px solid rgba(11, 99, 246, .14);
  color: var(--brand); margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* Tarjeta destacada con degradado */
.card-feature { background: linear-gradient(155deg, #fbfdff, #f3f8ff); }

/* ---------- 10. Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-val { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-lab { font-size: 14px; color: var(--ink-muted); margin-top: 9px; }
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- 11. Proceso (timeline) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, rgba(11,99,246,.1), rgba(11,99,246,.45), rgba(0,194,255,.15));
  z-index: 0;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-dot {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 22px;
  display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--brand);
}
.step-dot svg { width: 30px; height: 30px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-3); font-size: 15.5px; margin: 0; }

/* ---------- 12. Lista de checks ---------- */
.checks li { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; color: var(--ink-2); font-size: 16px; }
.checks li + li { border-top: 1px solid var(--line); }
.checks .tick { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-top: 2px; }
.checks .tick svg { width: 14px; height: 14px; }
.checks strong { color: var(--ink); font-weight: 700; }

/* ---------- 13. Panel de gráfico ---------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative; overflow: hidden;
}
.panel::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(11,99,246,.05), transparent 42%);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; position: relative; z-index: 1; }
.panel-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.pill { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-600); letter-spacing: .02em; }
.pill-live { background: #e7f8ee; color: #0a7a41; display: inline-flex; align-items: center; gap: 7px; }
.pill-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #12b05f; box-shadow: 0 0 0 3px rgba(18,176,95,.18); animation: pulse 1.9s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 14. Categorías de la colección ---------- */
.cat {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
  transition: transform .22s ease, box-shadow .28s ease, border-color .22s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(11,99,246,.22); }
.cat .icon-badge { width: 46px; height: 46px; border-radius: 13px; margin: 0; }
.cat .icon-badge svg { width: 22px; height: 22px; }
.cat h3 { font-size: 1.02rem; margin-bottom: 5px; }
.cat p { font-size: 14.5px; color: var(--ink-muted); margin: 0; line-height: 1.55; }

/* ---------- 15. Banda CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--grad-brand);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 68px) clamp(28px, 5vw, 64px);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 18% 22%, rgba(255,255,255,.28), transparent 42%),
                    radial-gradient(circle at 86% 78%, rgba(255,255,255,.2), transparent 46%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 560px; }
.cta-band .btn-white { background: #fff; color: var(--brand-600); box-shadow: 0 14px 34px -14px rgba(0,0,0,.4); }
.cta-band .btn-white:hover { color: var(--brand-600); transform: translateY(-2px); }
.cta-band .btn-outline { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; box-shadow: var(--shadow-xs); overflow: hidden; transition: border-color .2s ease, box-shadow .25s ease; }
.faq-item[open] { border-color: rgba(11,99,246,.28); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.03rem; color: var(--ink); letter-spacing: -.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--brand); transition: transform .25s ease, background .2s ease; }
.faq-item[open] summary .chev { transform: rotate(45deg); background: var(--brand-soft); }
.faq-item .faq-body { padding: 0 26px 24px; color: var(--ink-3); font-size: 15.8px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: clamp(52px, 6vw, 76px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; margin-bottom: 16px; }
.footer-links a { display: block; padding: 6px 0; color: var(--ink-3); font-size: 15px; }
.footer-links a:hover { color: var(--brand); }
.footer-about p { color: var(--ink-muted); font-size: 15px; max-width: 320px; margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink-3); box-shadow: var(--shadow-xs);
  transition: transform .18s ease, color .18s ease, border-color .18s ease;
}
.socials a:hover { color: var(--brand); border-color: var(--brand-300); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink-muted);
}

/* ---------- 18. Páginas internas ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 52px); background: linear-gradient(180deg, #f7faff, #fff); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 16px; }
.page-head .lead { max-width: 680px; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-3); font-size: 16.5px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 19. Precio / oferta ---------- */
.offer { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-lg); text-align: center; }
.price-card .price { font-family: var(--font-head); font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.price-card .price small { font-size: 1rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; }
.price-card .btn { width: 100%; margin-top: 22px; }
.price-note { font-size: 13.5px; color: var(--ink-muted); margin-top: 16px; }

/* ---------- 20. Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- 21. Utilidades ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; } .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.overflow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
