/* Estilos compartidos de mia-ia.app (principal y páginas por área) */
:root {
  --bg: #F2F0F5; --surface: #FFFFFF; --ink: #1C1724; --muted: #635B6E; --line: #DCD7E3;
  --honey: #B9770E; --honey-ink: #FFFFFF; --honey-soft: #F8E7C6;
  --night: #1E1828; --night-ink: #F4EEE6;
  --chat: #E7E3EC; --me: #F6E4C0; --bot: #FFFFFF; --dot: #DAD4E1;
  --glow: #5C6BD6; --glow-soft: #E1E4FA;
  --ok: #2E7D4F; --ok-soft: #DCF0E3;
  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #13101A; --surface: #1C1724; --ink: #EEE8F3; --muted: #A69DB2; --line: #2E2738;
  --honey: #E9AE4A; --honey-ink: #1E1405; --honey-soft: #3A2A12;
  --night: #0C0A11; --night-ink: #F4EEE6;
  --chat: #0F0D15; --me: #4A3618; --bot: #241E2E; --dot: #1B1722;
  --glow: #9AA5F5; --glow-soft: #252A4D;
  --ok: #7DD3A0; --ok-soft: #173325; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #13101A; --surface: #1C1724; --ink: #EEE8F3; --muted: #A69DB2; --line: #2E2738;
  --honey: #E9AE4A; --honey-ink: #1E1405; --honey-soft: #3A2A12;
  --night: #0C0A11; --night-ink: #F4EEE6;
  --chat: #0F0D15; --me: #4A3618; --bot: #241E2E; --dot: #1B1722;
  --glow: #9AA5F5; --glow-soft: #252A4D;
  --ok: #7DD3A0; --ok-soft: #173325; color-scheme: dark }

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; padding-inline: 16px; padding-block: 0 56px }
.wrap { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 80px }
a { color: inherit }
h1, h2, h3 { text-wrap: balance; margin: 0 }
h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.01em }
p { margin: 0 }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--honey) }
.lead { color: var(--muted); font-size: 18px; max-width: 62ch }
.sec { display: flex; flex-direction: column; gap: 28px }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px }

/* Barra superior */
.top { margin-inline: -16px; padding: 14px 16px; background: var(--night); color: var(--night-ink) }
.top-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 18px }
.brand img { width: 36px; height: 36px; border-radius: 50% }
.top a.mini { font-size: 14.5px; font-weight: 600; text-decoration: none; color: #CFC6DA }
.top a.mini:hover { color: #F4EEE6 }

/* Hero */
.hero { margin-inline: -16px; padding: 40px 16px 64px; background:
  radial-gradient(60% 80% at 85% 20%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 70%),
  radial-gradient(50% 60% at 10% 100%, color-mix(in srgb, var(--honey) 22%, transparent), transparent 70%),
  var(--night); color: var(--night-ink) }
.hero-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0 }
.hero .eyebrow { color: #E9AE4A }
.hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.02em }
.hero h1 em { font-style: normal; color: #E9AE4A }
.hero p { font-size: 19px; max-width: 54ch; color: #CFC6DA }
.hero .proof { font-size: 14.5px; color: #A69DB2 }
.hero .proof b { color: #F4EEE6; font-weight: 600 }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center }
.btn { font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer }
.btn.main { background: #E9AE4A; color: #1E1405 }
.btn.ghost { background: transparent; color: #F4EEE6; box-shadow: inset 0 0 0 1px #4A4256 }
.btn.light { background: var(--honey); color: var(--honey-ink) }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line) }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px }
.badge { align-self: flex-start; font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; color: var(--ok); background: var(--ok-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap }
.hero .badge { background: rgba(125,211,160,.14); color: #7DD3A0 }

/* Teléfono con conversación */
.phone { background-color: var(--chat); background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 14px 14px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); min-width: 0 }
.hero .phone { box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 6px #2A2334; max-width: 420px; justify-self: end; width: 100% }
.bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line) }
.bar img { width: 34px; height: 34px; border-radius: 50% }
.bar div { display: flex; flex-direction: column; line-height: 1.2 }
.bar strong { font-size: 15px }
.bar small { font-size: 12px; color: var(--muted) }
.msgs { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 16px }
.msg { max-width: 88%; padding: 8px 11px; border-radius: 13px; font-size: 14.5px; line-height: 1.42; overflow-wrap: anywhere }
.msg.b { align-self: flex-start; background: var(--bot); border-bottom-left-radius: 4px; box-shadow: 0 1px 0 var(--line) }
.msg.u { align-self: flex-end; background: var(--me); border-bottom-right-radius: 4px }
.msg > * + * { margin-top: 6px }
.msg small { color: var(--muted); font-size: 12px }
.msg-sep { align-self: center; font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin-block: 4px }
.cmd { font-family: var(--f-mono); font-size: 13px; color: var(--glow) }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line) }
.list div { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 6px 0; border-bottom: 1px solid var(--line) }
.list div:last-child { border-bottom: 0 }
.list b { font-weight: 700; font-size: 13.5px }
.list i { font-style: normal; grid-column: 1; font-size: 12px; color: var(--muted) }
.list em { font-style: normal; grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--f-mono); font-size: 12.5px; color: var(--honey); font-variant-numeric: tabular-nums; text-align: right }

/* Tarjetas de funciones */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.card h3 { font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.25 }
.card p { color: var(--muted); font-size: 15px }
.card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px }
.card li { font-size: 13px; padding: 3px 9px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line) }

/* Ejemplos de conversación */
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: start }
.example { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden }
.example h3 { font-family: var(--f-display); font-weight: 500; font-size: 16px; padding: 16px 18px 14px; line-height: 1.3 }
.example .phone { border-radius: 0; border: 0; border-top: 1px solid var(--line) }
.note { font-size: 13.5px; color: var(--muted); max-width: 80ch }

/* Rasgos */
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 26px 30px }
.trait { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 2px solid var(--honey) }
.trait h3 { font-size: 17px; font-weight: 700 }
.trait p { color: var(--muted); font-size: 15px }

/* Preguntas frecuentes */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside }
.faq details p { color: var(--muted); padding-bottom: 16px }

/* Precio y contacto */
.close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px }
.price, .start { border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 18px; min-width: 0 }
.price { background: var(--night); color: var(--night-ink) }
.price .eyebrow { color: #E9AE4A }
.amount { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums }
.amount small { font-family: var(--f-body); font-size: 18px; font-weight: 600; letter-spacing: 0; color: #A69DB2 }
.price ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: #CFC6DA }
.price li { display: grid; grid-template-columns: 18px 1fr; gap: 8px }
.price li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E9AE4A; margin-top: 8px }
.start { background: var(--surface); border: 1px solid var(--line) }
.start p { color: var(--muted) }
.start .cta-row { padding-top: 4px }

/* Botones de áreas (principal) */
.areas { display: grid; grid-template-columns: 1fr; gap: 16px }
@media (min-width: 560px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (min-width: 1000px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color .15s, transform .15s }
.area:hover { border-color: var(--honey); transform: translateY(-2px) }
.area .ico { font-size: 30px; line-height: 1 }
.area h3 { font-family: var(--f-display); font-weight: 500; font-size: 19px; line-height: 1.25 }
.area p { color: var(--muted); font-size: 15px; flex: 1 }
.area .go { font-weight: 700; color: var(--honey) }
.custom { background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between }
.custom div { display: flex; flex-direction: column; gap: 6px; max-width: 64ch }
.custom h3 { font-size: 18px }
.custom p { color: var(--muted); font-size: 15px }

/* Pie */
.foot { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; color: var(--muted); font-size: 14.5px }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px }
.foot a { text-decoration: none }
.foot a:hover { color: var(--ink) }

@media (max-width: 860px) {
  .hero-in, .close { grid-template-columns: 1fr }
  .hero .phone { justify-self: start }
}
@media (prefers-reduced-motion: reduce) { .area { transition: none } .area:hover { transform: none } }
