/* KINTRIA · Plantilla común de las páginas de producto (y /precios/).
 * Misma estructura y comportamiento responsive en todas:
 *   1 Cabecera (.p-hero)  2 Qué resuelve  3 Cómo funciona / qué ves  4 Qué puedes hacer
 *   5 Para quién / casos  6 Precio (.p-price)  7 Preguntas frecuentes (.p-faq)
 *   8 Cierre (.p-cta o el formulario de la landing)  9 Otros productos (.p-related)
 * Colores, tipografía y botones son los del resto de kintria.com.
 */
:root {
  --navy: #071326; --ink: #081123; --muted: #61708a; --line: #e5ebf4; --soft: #f5f8fc;
  --teal: #16d5b5; --blue: #3158f4; --yellow: #ffc13a; --orange: #ff7a35; --red: #f35b6b;
  --violet: #7b5cf5;
  --shadow: 0 24px 80px rgba(8, 17, 35, .12);
  --shadow-sm: 0 10px 34px rgba(8, 17, 35, .06);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container, .nav-inner, footer .inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* --- Cabecera del sitio ---------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 950; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 850; color: #40506a; }
.nav-actions { display: flex; gap: 10px; }

/* --- Tipografía y botones -------------------------------------------------------------- */
h1 { margin: 0 0 22px; font-size: clamp(38px, 5.2vw, 66px); line-height: .98; font-weight: 950; letter-spacing: -.5px; }
h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 950; letter-spacing: -.3px; }
h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; font-weight: 950; }
p { line-height: 1.65; color: var(--muted); font-weight: 650; margin: 0 0 14px; }
.lead { font-size: 19px; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--teal); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: 1.8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 6px rgba(22, 213, 181, .14); }
.eyebrow.is-blue { color: var(--blue); }
.eyebrow.is-blue::before { box-shadow: 0 0 0 6px rgba(49, 88, 244, .12); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 950; border: 1px solid transparent; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { color: #fff; background: var(--navy); }
.btn-primary { color: #071326; background: linear-gradient(90deg, var(--teal), var(--yellow)); box-shadow: 0 12px 34px rgba(22, 213, 181, .25); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(22, 213, 181, .34); }
.btn-white, .btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --- 1. Cabecera de producto ----------------------------------------------------------- */
.p-hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(circle at 12% 8%, rgba(22, 213, 181, .24), transparent 34%),
  radial-gradient(circle at 92% 18%, rgba(49, 88, 244, .30), transparent 38%),
  linear-gradient(150deg, #071326, #0d1730 58%, #111d44); }
.p-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%); }
.p-hero-inner { position: relative; z-index: 1; min-height: 640px; padding: 92px 0 84px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.p-hero h1 { color: #fff; }
.p-hero h1 .accent { background: linear-gradient(90deg, var(--teal), var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-hero .lead { color: #c8d3e7; }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.p-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: #a9b7cf; font-size: 14px; font-weight: 800; }
.p-trust li { display: flex; align-items: center; gap: 8px; }
.p-trust li::before { content: ""; width: 16px; height: 16px; border-radius: 999px; background: rgba(22, 213, 181, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2316d5b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.p-visual { position: relative; border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 20, 44, .72); backdrop-filter: blur(10px); border-radius: 20px; padding: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.p-visual-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; color: #fff; font-size: 14px; font-weight: 950; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 16px; }
.p-visual-top .status { display: inline-flex; align-items: center; gap: 6px; color: #9fb0cc; font-size: 12px; font-weight: 800; }
.p-visual-top .status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 4px rgba(22, 213, 181, .18); }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.p-visual-note { margin: 14px 4px 0; font-size: 12px; color: #8ea0be; font-weight: 750; }

/* Chat (Kintria Talk) */
.chat { display: grid; gap: 14px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; font-weight: 700; }
.bubble b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .75; margin-bottom: 4px; }
.bubble.user { justify-self: end; background: var(--teal); color: #071326; border-bottom-right-radius: 4px; }
.bubble.bot { justify-self: start; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .12); border-bottom-left-radius: 4px; }
.chat-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.chat-kpi { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.chat-kpi small { display: block; color: #9fb0cc; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .8px; }
.chat-kpi strong { display: block; margin-top: 2px; font-size: 20px; font-weight: 950; color: #fff; }
.chat-kpi strong.up { color: var(--teal); }
.chat-chart { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 12px; padding: 12px 12px 0; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.chat-chart span { flex: 1; border-radius: 6px 6px 0 0; background: rgba(255, 255, 255, .16); }
.chat-chart span.now { background: linear-gradient(180deg, var(--teal), rgba(22, 213, 181, .35)); }
.chat-chart-labels { display: flex; gap: 8px; padding: 6px 12px 0; color: #8ea0be; font-size: 10px; font-weight: 850; }
.chat-chart-labels span { flex: 1; text-align: center; }
.typing { display: inline-flex; gap: 4px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); justify-self: start; }
.typing span { width: 6px; height: 6px; border-radius: 999px; background: #9fb0cc; animation: typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* --- Secciones ------------------------------------------------------------------------- */
.p-section { padding: 96px 0; }
.p-section.is-soft { background: var(--soft); }
.p-section.is-dark { color: #fff; background: linear-gradient(150deg, #071326, #101b38); }
.p-section.is-dark h2, .p-section.is-dark h3 { color: #fff; }
.p-section.is-dark p { color: #b9c6dc; }
.p-head { max-width: 760px; margin-bottom: 44px; }
.p-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.p-head.is-center .eyebrow { justify-content: center; }
.p-head p { font-size: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }

/* Tarjetas con icono (2. Qué resuelve) */
.card { position: relative; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(8, 17, 35, .09); border-color: #d6e0ee; }
.card p:last-child { margin-bottom: 0; }
.icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; color: #071326; background: linear-gradient(135deg, rgba(22, 213, 181, .22), rgba(255, 193, 58, .26)); }
.icon svg { width: 24px; height: 24px; }
.icon.is-blue { background: linear-gradient(135deg, rgba(49, 88, 244, .16), rgba(123, 92, 245, .18)); color: var(--blue); }
.icon.is-orange { background: linear-gradient(135deg, rgba(255, 122, 53, .18), rgba(255, 193, 58, .24)); color: #c2410c; }

/* Pasos (3. Cómo funciona) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 16px; font-size: 14px; font-weight: 950; letter-spacing: 1px; color: var(--blue); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -18px; width: 12px; height: 12px; border-top: 2px solid #c9d5e6; border-right: 2px solid #c9d5e6; transform: rotate(45deg); }
.steps h3 { font-size: 19px; }
.steps p { margin: 0; }

/* Preguntas de ejemplo (4. Qué puedes hacer / preguntar) */
.prompts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.prompt { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 850; color: var(--ink); line-height: 1.45; }
.prompt::before { content: ""; flex: 0 0 34px; height: 34px; border-radius: 10px; background: rgba(49, 88, 244, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233158f4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/18px no-repeat; }
.prompt.is-follow { background: linear-gradient(135deg, rgba(22, 213, 181, .1), rgba(255, 193, 58, .12)); border-color: rgba(22, 213, 181, .3); }
.prompt.is-follow::before { background-color: rgba(22, 213, 181, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071326' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E"); }

/* Píldoras (conexiones, sistemas) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pills li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 850; color: #40506a; }
.p-section.is-dark .pills li, .p-hero .pills li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #d7e2f3; }

/* Lista con check */
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #40506a; font-weight: 750; line-height: 1.5; }
.checks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 999px; background: rgba(22, 213, 181, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23059f86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* --- 6. Precio ------------------------------------------------------------------------- */
.p-price { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 44px; border-radius: 24px; background: #fff; border: 1px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(120deg, var(--teal), var(--yellow), var(--blue)); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: var(--shadow); }
.p-price-amount { margin: 6px 0 14px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1; font-weight: 950; color: var(--ink); letter-spacing: -.5px; }
.p-price-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 950; letter-spacing: .4px; color: #071326; background: linear-gradient(90deg, rgba(22, 213, 181, .25), rgba(255, 193, 58, .3)); }
/* Precio cerrado como gancho (Analytics Holded/Factorial): en la cabecera, junto al botón, y en la tarjeta */
/* Titulares largos con precio: más pequeños para que el precio quepa en el primer pantallazo */
.p-hero h1.is-long { font-size: clamp(36px, 3.9vw, 52px); line-height: 1.06; }
@media (max-width: 560px) { .p-hero h1.is-long { font-size: 31px; } }
.p-hero h1 [data-precio], .p-price h2 [data-precio] { white-space: nowrap; }
.p-hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 22px 0 0; color: #c8d3e7; font-size: 14px; font-weight: 800; line-height: 1.4; }
.p-hero-price strong { font-size: 34px; font-weight: 950; line-height: 1.1; letter-spacing: -.5px; color: #fff; white-space: nowrap; }
.p-price-amount small { display: inline-block; margin-left: 8px; font-size: 15px; font-weight: 900; color: var(--muted); letter-spacing: 0; }
.p-plan { margin-top: 4px; }
.p-plan li { color: var(--ink); }
.p-price.is-plan { grid-template-columns: 1fr 1fr; align-items: start; gap: 28px 48px; }
.p-price-head { grid-column: 1 / -1; max-width: 760px; }
.p-price .p-price-head h2 { margin: 0 0 10px; }
.p-price-head p { margin: 0; font-size: 17px; }
.p-plan-card { padding: 28px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.p-plan-card .p-price-amount { margin: 16px 0 18px; }
@media (max-width: 980px) { .p-price.is-plan { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .p-plan-card { padding: 22px 18px; } }
.p-price-notes { margin: 14px 0 0; font-size: 13px; }
.p-price-notes + .p-price-notes { margin-top: 4px; }
.p-price-notes a { color: var(--blue); font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.p-soon { margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--soft); border: 1px dashed #c9d5e6; font-size: 14px; color: #40506a; }
.p-soon strong { color: var(--blue); }
.price-group-head h2 .badge { margin-left: 8px; vertical-align: middle; }
.price-card .users { margin: 0 0 6px; font-size: 14px; font-weight: 850; color: var(--ink); }

/* --- 7. Preguntas frecuentes ----------------------------------------------------------- */
.p-faq { display: grid; gap: 12px; max-width: 860px; }
.p-faq.is-center { margin: 0 auto; }
.p-faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0; box-shadow: var(--shadow-sm); transition: border-color .2s ease; }
.p-faq details[open] { border-color: rgba(22, 213, 181, .55); }
.p-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 950; color: var(--ink); }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: ""; flex: 0 0 28px; height: 28px; border-radius: 999px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23071326' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .2s ease; }
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq details p { margin: 0; padding: 0 22px 20px; }

/* --- 8. Cierre ------------------------------------------------------------------------- */
.p-cta { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(circle at 85% 20%, rgba(22, 213, 181, .25), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(49, 88, 244, .28), transparent 40%),
  linear-gradient(150deg, #071326, #101b38); }
.p-cta-box { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 88px 0; }
.p-cta h2 { color: #fff; margin-bottom: 10px; }
.p-cta p { color: #c8d3e7; font-size: 18px; margin: 0; }
.p-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- 9. Otros productos ---------------------------------------------------------------- */
.p-related { padding: 64px 0; background: var(--soft); border-top: 1px solid var(--line); }
.p-related h2 { font-size: 24px; margin-bottom: 22px; }
.p-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.p-related-grid a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.p-related-grid a:hover { border-color: var(--teal); transform: translateY(-2px); }
.p-related-grid strong { font-size: 15px; font-weight: 950; }
.p-related-grid span { font-size: 13px; color: var(--muted); font-weight: 700; }

/* --- Pie ------------------------------------------------------------------------------- */
footer { padding: 34px 0; background: #050c18; color: #98a6bd; font-size: 14px; font-weight: 750; }
footer .inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- Responsive ------------------------------------------------------------------------ */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .p-hero-inner, .split, .p-price, .p-cta-box { grid-template-columns: 1fr; }
  .p-hero-inner { min-height: auto; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .prompts { grid-template-columns: 1fr; }
  .p-section { padding: 68px 0; }
  .p-price { padding: 30px 24px; }
}
@media (max-width: 560px) {
  .nav-inner, .container, footer .inner { width: auto; margin-left: 16px; margin-right: 16px; }
  .p-hero-inner { padding: 64px 0 60px; }
  .lead { font-size: 17px; }
  .grid-4 { grid-template-columns: 1fr; }
  .p-hero-actions .btn, .p-cta-actions .btn, .p-price-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .bubble { max-width: 100%; }
  .p-cta-box { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .typing span { animation: none; }
  .btn, .card, .p-related-grid a { transition: none; }
}
.chat-legend { display: flex; gap: 14px; padding: 8px 12px 0; color: #9fb0cc; font-size: 11px; font-weight: 850; }
.chat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chat-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.chat-legend span.now::before { background: var(--teal); }
.p-price-amount small { font-size: .42em; font-weight: 900; color: var(--muted); letter-spacing: 0; margin-left: 6px; }

/* --- /precios/: tarjetas de producto con precio ---------------------------------------- */
.p-hero.is-compact .p-hero-inner { min-height: 0; padding: 88px 0 120px; grid-template-columns: 1fr; text-align: center; }
.p-hero.is-compact .eyebrow, .p-hero.is-compact .p-trust { justify-content: center; }
.p-hero.is-compact .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.price-group { margin-top: 56px; }
.price-group:first-child { margin-top: 0; }
.price-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.price-group-head h2 { font-size: 24px; margin: 0; }
.price-group-head p { margin: 0; font-size: 15px; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-cards.is-2 { grid-template-columns: repeat(2, 1fr); }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.price-card:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(8, 17, 35, .1); border-color: #d2ddec; }
.price-card .icon { margin-bottom: 16px; }
.price-card h3 { margin-bottom: 4px; }
.price-card .tagline { margin: 0 0 18px; font-size: 14px; font-weight: 850; color: var(--blue); }
.price-card .amount { margin: 0 0 6px; font-size: 32px; line-height: 1.05; font-weight: 950; letter-spacing: -.3px; color: var(--ink); }
.price-card .amount small { font-size: 14px; font-weight: 900; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.price-card .extra { margin: 0 0 14px; font-size: 13px; font-weight: 850; color: #059f86; }
.price-card .desc { margin: 10px 0 22px; font-size: 15px; }
.price-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 950; color: var(--ink); }
.price-card .more::after { content: "→"; transition: transform .15s ease; }
.price-card:hover .more::after { transform: translateX(3px); }
.price-card .badge { position: absolute; top: 22px; right: 22px; }
.price-card.is-featured { color: #fff; border: 0; background:
  radial-gradient(circle at 90% 10%, rgba(22, 213, 181, .28), transparent 45%),
  radial-gradient(circle at 0% 100%, rgba(49, 88, 244, .35), transparent 50%),
  linear-gradient(150deg, #071326, #111d44); box-shadow: 0 30px 80px rgba(7, 19, 38, .3); }
.price-card.is-featured h3, .price-card.is-featured .amount, .price-card.is-featured .more { color: #fff; }
.price-card.is-featured .tagline { color: var(--teal); }
.price-card.is-featured .desc, .price-card.is-featured .amount small { color: #c8d3e7; }
.price-card.is-featured .checks li { color: #d7e2f3; }
.price-card.is-wide { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding: 38px; }
.price-card.is-wide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.price-note { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding: 20px 24px; border-radius: 16px; background: #fff; border: 1px dashed #cfdbea; }
.price-note p { margin: 0; font-size: 15px; }
.price-note .icon { margin: 0; flex: 0 0 44px; width: 44px; height: 44px; }
@media (max-width: 1120px) {
  .price-cards { grid-template-columns: repeat(2, 1fr); }
  .price-card.is-wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .price-cards, .price-cards.is-2 { grid-template-columns: 1fr; }
  .price-card.is-wide { padding: 28px; }
}
.p-overlap { position: relative; z-index: 2; margin-top: -72px; }
.price-card .amount small, .p-price-amount small { white-space: nowrap; display: inline-block; }
@media (max-width: 560px) {
  .price-card .amount { font-size: 28px; }
  .price-card.is-wide .actions .btn { width: 100%; }
  .price-card .badge { position: static; align-self: flex-start; margin-bottom: 12px; }
}

/* --- Tema sector clínicas y medicina estética (<body class="theme-clinica">) -------------
 * Mantiene la identidad rosa de /analytics/: acentos, fondos suaves e iconos en rosa;
 * los botones principales siguen siendo los de la marca para no restar conversión. */
.theme-clinica { --blush: #fbe6e8; --blush-ink: #a5455a; --blush-accent: #ff6f91; --blush-wash: linear-gradient(180deg, #fdf1f2, #fbf6f2); }
.theme-clinica .eyebrow { color: var(--blush-accent); }
.theme-clinica .eyebrow::before { box-shadow: 0 0 0 6px rgba(255, 111, 145, .16); }
.theme-clinica .eyebrow.is-blue { color: var(--blush-ink); }
.theme-clinica .p-hero { background:
  radial-gradient(circle at 12% 8%, rgba(255, 111, 145, .26), transparent 36%),
  radial-gradient(circle at 92% 18%, rgba(22, 213, 181, .18), transparent 38%),
  linear-gradient(150deg, #1a0f1f, #24142a 55%, #2b1630); }
.theme-clinica .p-hero h1 .accent { background: linear-gradient(90deg, #ff9ab3, var(--yellow)); -webkit-background-clip: text; background-clip: text; }
.theme-clinica .p-section.is-soft, .theme-clinica .p-related { background: var(--blush-wash); }
.theme-clinica .icon { color: var(--blush-ink); background: linear-gradient(135deg, rgba(255, 111, 145, .2), rgba(255, 193, 58, .22)); }
.theme-clinica .checks li::before { background-color: rgba(255, 111, 145, .16); }
.theme-clinica .p-faq details[open] { border-color: rgba(255, 111, 145, .5); }
.theme-clinica .steps li::before { color: var(--blush-accent); }
.theme-clinica .badge { background: linear-gradient(90deg, rgba(255, 111, 145, .25), rgba(255, 193, 58, .3)); }

/* --- Landings con formulario de demo (sobre todo móvil) --------------------------------- */
.p-form-card { padding: 30px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
/* Formulario de demo (las landings de Analytics llevan además los suyos en línea, con los mismos valores) */
.p-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.p-demo .checks { margin-top: 22px; }
.p-demo-alt { margin: 22px 0 0; font-size: 15px; }
.p-demo-alt a { color: var(--blue); font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.demo-form { display: grid; gap: 14px; }
.demo-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 900; color: #40506a; }
.demo-form input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d6e0ee; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.demo-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 213, 181, .18); }
.demo-form button[type="submit"] { width: 100%; min-height: 52px; margin-top: 4px; font-family: inherit; font-size: 15px; cursor: pointer; white-space: normal; text-align: center; }
.demo-form button[type="submit"]:disabled { opacity: .7; cursor: default; }
.demo-form-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.demo-form-msg { margin: 0; font-size: 14px; font-weight: 800; color: var(--muted); }
.demo-form-msg:empty { display: none; }
.demo-form-msg.is-error { color: #c0392b; }
.demo-form-msg.is-ok { color: #0e9f6e; }
.demo-form-hint, .fineprint { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #7b879a; font-weight: 650; }
@media (max-width: 980px) { .p-demo { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) {
  .p-form-card { padding: 22px 18px; border-radius: 16px; }
  /* Botón y campos del formulario cómodos para el pulgar */
  .p-form-card input, .p-form-card select, .p-form-card button { min-height: 48px; font-size: 16px; }
}

/* --- Talk: conversaciones en pestañas (escritorio) / acordeón (móvil) y bloques de la página ---- */
.p-hero-note { margin: 18px 0 0; color: #c8d3e7; font-size: 14px; font-weight: 800; line-height: 1.5; }
.p-link { color: var(--blue); font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.p-tabs-list { display: none; }
.p-tab { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.p-tab-title { margin: 0; font-size: 17px; }
.p-tab-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 20px; border: 0; background: none; font: inherit; font-weight: 950; color: var(--ink); text-align: left; cursor: pointer; }
.p-tab-toggle::after { content: ""; flex: 0 0 26px; height: 26px; margin-left: auto; border-radius: 999px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23071326' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat; transition: transform .2s ease; }
.p-tab.is-open .p-tab-toggle::after { transform: rotate(45deg); }
.p-tab-toggle span, .p-tabs-list button span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; height: 26px; border-radius: 999px; font-size: 13px; font-weight: 950; color: var(--blue); background: rgba(49, 88, 244, .1); }
.p-tab-body { display: grid; gap: 18px; padding: 0 20px 20px; }
@media (max-width: 980px) { .p-tabs.is-ready .p-tab:not(.is-open) .p-tab-body { display: none; } }
.p-conv { background: linear-gradient(150deg, #071326, #101b38); box-shadow: none; }
.p-conv .bubble { max-width: 92%; }
.bubble-meta { display: block; margin-top: 8px; font-size: 12px; font-weight: 800; color: #9fb0cc; }
.chat-sep { justify-self: center; margin: 2px 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #9fb0cc; font-size: 12px; font-weight: 850; }
.p-conv-after { padding: 18px 20px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.p-conv-after .eyebrow { margin-bottom: 8px; }
.p-conv-after p:last-child { margin: 0; color: #40506a; }
.p-agent { display: flex; gap: 20px; align-items: flex-start; margin-top: 24px; }
.p-agent .icon { flex: 0 0 48px; margin: 0; }
.p-conv-foot { margin: 22px 0 0; text-align: center; font-size: 17px; font-weight: 900; color: var(--ink); }
@media (min-width: 981px) {
  .p-tabs.is-ready .p-tabs-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .p-tabs-list button { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: 16px; text-align: left; line-height: 1.25; background: #fff; font: inherit; font-size: 14px; font-weight: 900; color: #40506a; cursor: pointer; }
  .p-tabs-list button[aria-selected="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
  .p-tabs-list button[aria-selected="true"] span { color: #071326; background: var(--teal); }
  .p-tabs.is-ready .p-tab { display: none; margin: 0; border: 0; background: none; box-shadow: none; }
  .p-tabs.is-ready .p-tab.is-active { display: block; }
  .p-tabs.is-ready .p-tab .p-tab-body { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; padding: 0; }
  .p-tabs.is-ready .p-tab-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Niveles de permiso: tabla en escritorio, tarjetas en móvil */
.p-levels { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.p-levels th, .p-levels td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.p-levels thead th { font-size: 12px; font-weight: 950; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.p-levels tbody th { font-weight: 950; color: var(--ink); }
.p-levels td { font-weight: 700; color: #40506a; }
.p-levels tbody tr:last-child th, .p-levels tbody tr:last-child td { border-bottom: 0; }
.p-levels-note { margin: 16px 0 0; font-size: 15px; font-weight: 800; color: #40506a; }
.p-levels-cards { margin-top: 32px; }
@media (max-width: 760px) {
  .p-levels thead { display: none; }
  .p-levels, .p-levels tbody, .p-levels tr, .p-levels th, .p-levels td { display: block; }
  .p-levels tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .p-levels tbody tr:last-child { border-bottom: 0; }
  .p-levels th, .p-levels td { padding: 0; border: 0; }
  .p-levels tbody th { margin-bottom: 6px; font-size: 17px; }
  .p-levels td::before { content: attr(data-label) ": "; font-weight: 900; color: var(--ink); }
  .p-agent { flex-direction: column; gap: 14px; }
}
/* Con qué se conecta */
.p-connectors-title { color: #fff; }
.p-connect { align-items: start; }
.p-connectors { display: grid; gap: 0; margin: 0; }
.p-connectors > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px 20px; align-items: start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.p-connectors > div:first-child { border-top: 0; padding-top: 4px; }
.p-connectors dt { padding-top: 9px; font-size: 12px; font-weight: 950; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); }
.p-connectors dd { margin: 0; }
.p-connectors .pills { gap: 8px; }
.p-connectors .pills li { padding: 7px 13px; font-size: 14px; }
.p-section.is-dark .p-connectors-note { margin: 22px 0 0; font-size: 14px; color: #9fb0cc; }
.p-connectors-note strong { color: #fff; }
@media (max-width: 560px) { .p-connectors > div { grid-template-columns: 1fr; gap: 10px; } .p-connectors dt { padding-top: 0; } }
/* Maqueta del correo de resumen diario */
.p-mail { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.p-mail-head { display: grid; gap: 4px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.p-mail-head span { font-size: 13px; font-weight: 800; color: var(--muted); }
.p-mail-head strong { font-size: 17px; font-weight: 950; color: var(--ink); }
.p-mail-lines { margin: 0; padding: 0; list-style: none; }
.p-mail-lines li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.p-mail-lines span { font-weight: 800; color: #40506a; }
.p-mail-lines strong { font-size: 18px; font-weight: 950; color: var(--ink); text-align: right; }
.p-mail-lines em { grid-column: 1 / -1; font-style: normal; font-size: 13px; font-weight: 750; color: var(--muted); }
.p-mail-lines em.up { color: #059f86; }
.p-mail-link { display: inline-block; margin-top: 16px; font-weight: 900; color: var(--blue); }
.p-mail-note { margin: 10px 0 0; font-size: 12px; }
/* Confianza y testimonios sin nombre */
.p-trust-grid .card { padding: 24px; }
.p-trust-grid .icon { width: 42px; height: 42px; margin-bottom: 14px; }
.p-trust-grid h3 { font-size: 17px; }
.p-trust-grid p { font-size: 15px; }
@media (max-width: 560px) {
  .p-trust-grid { gap: 12px; }
  .p-trust-grid .card { display: grid; grid-template-columns: 42px 1fr; gap: 2px 14px; padding: 18px; }
  .p-trust-grid .icon { grid-row: span 2; margin: 0; }
  .p-trust-grid h3 { margin: 0 0 4px; }
}
.p-quote p { font-size: 17px; color: #40506a; }
.p-steps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 560px) { .p-steps-actions .btn { width: 100%; text-align: center; } }
