@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap");

/* CrecErpe: azul del logo y ámbar de la flecha. Distinta de Brandych (marino) y de la marca personal (cálida). */
:root {
  --blue: #1659d6;
  --blue-dark: #0f3f9c;
  --blue-soft: #e8effc;
  --night: #0d1b36;
  --night-2: #142849;
  --amber: #e8a93a;
  --amber-soft: #fbf0db;
  --amber-ink: #7a4f06;
  --ink: #13213d;
  --muted: #56627a;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --line: #dde3ee;
  --on-dark: #ffffff;
  --on-dark-muted: #b4c2dc;
  --radius: 6px;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.container { width: min(1120px, calc(100% - 2rem)); margin: auto; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--night); color: var(--on-dark); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: .95rem; color: var(--on-dark-muted); }
.nav-links a:hover { color: var(--on-dark); }
.nav-cta { color: var(--night) !important; background: var(--amber); padding: .45rem .9rem; border-radius: var(--radius); font-weight: 600; }

/* Portada */
.hero { background: var(--night); color: var(--on-dark); padding: 4.5rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.kicker { color: var(--amber); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.lede { margin-top: 1.25rem; color: var(--on-dark-muted); font-size: 1.12rem; max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-block; padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 600; background: var(--blue); color: #fff; }
.button:hover { background: var(--blue-dark); }
.button.amber { background: var(--amber); color: var(--night); }
.button.amber:hover { background: #d69a2c; }
.button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--on-dark); }
.button.ghost:hover { border-color: var(--on-dark); background: transparent; }
.hero-card { background: var(--night-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.6rem; }
.hero-card .stat { display: flex; align-items: baseline; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-card .stat:last-child { border-bottom: 0; }
.hero-card strong { font-size: 1.8rem; color: var(--amber); min-width: 5rem; font-weight: 600; white-space: nowrap; }
.hero-card span { color: var(--on-dark-muted); font-size: .95rem; }

/* Secciones */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin-top: .8rem; color: var(--muted); }
.eyebrow { color: var(--blue); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; }

/* Misión y visión */
.purpose { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.purpose article { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 1.8rem; }
.purpose article.vision { border-top-color: var(--amber); }
.purpose h3 { font-size: 1.05rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.purpose p { font-size: 1.15rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.principle { padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--blue-soft); }
.principle h4 { margin: 0 0 .3rem; font-size: 1rem; }
.principle p { color: var(--muted); font-size: .95rem; }

/* Qué es un módulo */
.explain { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.explain-text p + p { margin-top: 1rem; }
.explain-text p { color: var(--muted); }
.explain-text strong { color: var(--ink); }
.flow { list-style: none; padding: 0; counter-reset: paso; display: grid; gap: .55rem; }
.flow li { counter-increment: paso; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .8rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; }
.flow li::before { content: counter(paso); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 600; font-size: .9rem; }
.flow b { font-weight: 600; }
.flow em { font-style: normal; font-size: .82rem; color: var(--blue); background: var(--blue-soft); padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.flow-note { margin-top: .8rem; font-size: .9rem; color: var(--muted); }

/* Módulos */
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 1.4rem; font-size: .9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: .8rem; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card ul { padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.card li + li { margin-top: .15rem; }
.status { flex: none; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.status.live { background: #dff3e6; color: #17603a; }
.status.beta { background: var(--blue-soft); color: var(--blue-dark); }
.status.next { background: var(--amber-soft); color: var(--amber-ink); }
.status.plan { background: #eceef2; color: var(--muted); }
.dot { width: .65rem; height: .65rem; border-radius: 50%; display: inline-block; }
.dot.live { background: #2f9e5f; } .dot.beta { background: var(--blue); } .dot.next { background: var(--amber); } .dot.plan { background: #a5adbb; }
.sub-head { margin: 3rem 0 1.2rem; font-size: 1.3rem; }
.roadmap { display: grid; gap: 1rem; }
.stage { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.stage-label { display: flex; flex-direction: column; gap: .5rem; align-items: start; }
.stage-label b { font-size: 1.05rem; }
.stage-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; }
.stage-items h4 { margin: 0; font-size: 1rem; }
.stage-items p { color: var(--muted); font-size: .92rem; }
.note { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }

/* Base común */
.base { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.base div { border-left: 3px solid var(--blue); padding: .2rem 0 .2rem 1rem; }
.base h4 { margin: 0 0 .25rem; font-size: 1rem; }
.base p { color: var(--muted); font-size: .92rem; }

/* Contacto */
.contact { background: var(--night); color: var(--on-dark); border-radius: var(--radius); padding: 2.4rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.contact p { color: var(--on-dark-muted); margin-top: .6rem; max-width: 40rem; }
.contact .cta-row { margin-top: 0; flex: none; }

/* Pie */
.site-footer { padding: 2rem 0; font-size: .9rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-row a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .hero-grid, .explain, .purpose { grid-template-columns: 1fr; }
  .grid, .principles { grid-template-columns: 1fr 1fr; }
  .base { grid-template-columns: 1fr 1fr; }
  .stage { grid-template-columns: 1fr; gap: 1rem; }
  .contact { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .grid, .principles, .base, .stage-items { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3.2rem 0; }
  .flow li { grid-template-columns: 2.2rem 1fr; }
  .flow em { grid-column: 2; justify-self: start; }
  .contact { padding: 1.6rem; }
}

/* Centro de ayuda */
@media (max-width: 640px) { .nav-links a.nav-keep { display: inline; } }
.nav-links a[aria-current="page"] { color: var(--on-dark); }
.help-hero { background: var(--night); color: var(--on-dark); padding: 2.6rem 0 2.8rem; }
.help-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.help-hero p { color: var(--on-dark-muted); margin-top: .7rem; max-width: 42rem; }
.help-tabs { background: var(--surface); border-bottom: 1px solid var(--line); }
.help-tabs .container { display: flex; gap: .3rem 1.2rem; flex-wrap: wrap; padding: .6rem 0; font-size: .95rem; }
.help-tabs a { color: var(--muted); padding: .2rem 0; border-bottom: 2px solid transparent; }
.help-tabs a:hover { color: var(--blue); }
.help-tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--amber); }
.help-search { margin-top: 1.4rem; max-width: 40rem; }
.help-search label { display: block; font-size: .9rem; color: var(--on-dark-muted); margin-bottom: .4rem; }
.help-search input, .help-filter input { width: 100%; font: inherit; font-size: 1.05rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.help-search input:focus-visible, .help-filter input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.help-results { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: .6rem; }
.help-results li, .faq-item { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.help-results h3, .faq-item h3 { font-size: 1.02rem; }
.help-results p, .faq-item p { color: var(--muted); font-size: .95rem; margin-top: .35rem; overflow-wrap: anywhere; }
.help-results a, .faq-item a, .guide a, .term a, .help-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.help-empty { color: var(--on-dark-muted); margin-top: 1rem; }
.help-empty a { color: var(--amber); text-decoration: underline; }
.help-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.help-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.help-card.person { border-top-color: var(--amber); }
.help-card h2 { font-size: 1.15rem; }
.help-card p { color: var(--muted); font-size: .95rem; margin-top: .45rem; }
.help-card p + p { margin-top: .6rem; }
.help-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.toc summary { font-weight: 600; cursor: pointer; }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .9rem 0 .25rem; }
.toc ul { list-style: none; padding: 0; }
.toc li a { display: block; padding: .15rem 0; color: var(--ink); }
.toc li a:hover { color: var(--blue); }
.guide-group { margin-bottom: 2.6rem; }
.guide-group > h2 { font-size: 1.5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; scroll-margin-top: 84px; }
.guide:target { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.guide h3 { font-size: 1.25rem; }
.guide .where { font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.guide .what { margin-top: .7rem; }
.guide h4 { font-size: 1rem; margin: 1.2rem 0 .4rem; color: var(--blue-dark); }
.guide h5 { font-size: .98rem; margin: .8rem 0 .3rem; }
.guide ol, .guide ul { padding-left: 1.3rem; margin: 0; }
.guide li { margin-top: .25rem; overflow-wrap: anywhere; }
.guide .tip { background: var(--amber-soft); border-radius: var(--radius); padding: .8rem 1rem; margin-top: 1rem; font-size: .95rem; }
.guide .tip h4 { margin-top: 0; color: var(--amber-ink); }
.guide .who { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.ui { font-weight: 600; white-space: normal; }
.help-filter { max-width: 32rem; margin-bottom: 1.6rem; }
.help-filter label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
.letters { display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin-bottom: 1.4rem; font-weight: 600; }
.letters a { color: var(--blue); }
.terms { display: grid; gap: .7rem; }
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; scroll-margin-top: 84px; }
.term:target { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.term h3 { font-size: 1.08rem; }
.term p { margin-top: .3rem; color: var(--muted); font-size: .96rem; overflow-wrap: anywhere; }
.term .more { font-size: .9rem; margin-top: .4rem; }
.faq-group { margin-bottom: 2.2rem; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.faq-list { display: grid; gap: .6rem; }
.faq-item { scroll-margin-top: 84px; }
.faq-item:target { border-color: var(--amber); }
.help-note { color: var(--muted); font-size: .95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .help-cards { grid-template-columns: 1fr; }
  .guide { padding: 1.1rem 1rem; }
  .help-hero { padding: 2rem 0 2.2rem; }
}
.letter-head { font-size: 1.1rem; color: var(--blue); margin-top: .9rem; scroll-margin-top: 84px; }

/* Formularios y páginas legales */
.form-page { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.form-intro h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.lede-dark { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.form-safety { margin-top: 1.2rem; padding: .8rem 1rem; border-left: 3px solid var(--amber); background: var(--amber-soft); border-radius: var(--radius); font-size: .93rem; }
.form-alt { margin-top: 1.2rem; color: var(--muted); font-size: .93rem; }
.form-alt a, .legal a, .consent a { color: var(--blue); text-decoration: underline; }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; }
.lead-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.lead-form .opt { color: var(--muted); font-weight: 400; }
.lead-form input:not([type=checkbox]):not([type=radio]), .lead-form select, .lead-form textarea { font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lead-form .consent { display: flex; gap: .6rem; align-items: start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.lead-form .consent input { margin-top: .25rem; }
.lead-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-status { min-height: 1.3rem; font-weight: 500; }
.form-status.success { color: #17603a; }
.form-status.error { color: #a5321f; }
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: .7rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin-top: .5rem; }
.legal .updated { color: var(--muted); margin-top: .5rem; }
.legal table { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .55rem .7rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--blue-soft); width: 40%; font-weight: 500; }
@media (max-width: 900px) { .form-page { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .lead-form { padding: 1.1rem; } }
/* Libro de Reclamaciones (mismo formulario y script que brandychgestion.com) */
.hint { display: block; color: var(--muted); font-size: .9rem; font-weight: 400; }
.notice-box { border-left: 3px solid var(--amber); background: var(--amber-soft); padding: .9rem 1.1rem; margin: 1.2rem 0; border-radius: var(--radius); }
.choice { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.lead-form .choice label { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.lead-form input[type=radio] { width: auto; }
.lr-legend { font-weight: 600; font-size: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lr-legend:first-of-type { border-top: 0; padding-top: 0; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.sheet .code { color: var(--blue); }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } .sheet { border: 0; padding: 0; } }
.lead-form [hidden] { display: none !important; }
