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

/* Brandych Gestión: identidad corporativa (marino y ámbar). Distinta de la marca personal (darareategui.com). */
:root {
  --navy: #14284a;
  --navy-2: #1b3560;
  --ink: #14284a;
  --ink-soft: #2a3d5c;
  --muted: #5a6577;
  --paper: #f4f5f7;
  --surface: #ffffff;
  --line: #dde1e7;
  --line-strong: #c4cbd6;
  --accent: #24477a;
  --accent-dark: #14284a;
  --accent-soft: #e5ecf6;
  --amber: #e8a93a;
  --amber-dark: #c98a1c;
  --amber-soft: #fbf0db;
  --on-dark: #ffffff;
  --on-dark-muted: #b8c4d8;
  --brass: var(--amber);
  --radius: 4px;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, 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 { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; }
.container { width: min(1120px, calc(100% - 2rem)); margin: auto; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1); color: var(--on-dark); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 600; font-size: 1.05rem; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--amber); color: var(--navy); font-size: .8rem; font-weight: 600; border-radius: var(--radius); }
.brand small { font-weight: 400; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; color: var(--on-dark-muted); }
.nav-links a:hover { color: var(--on-dark); }
.nav-cta { padding: .45rem .85rem; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); color: var(--on-dark); }
.nav-cta:hover { border-color: var(--amber); }

/* Hero */
.hero { padding: 5.5rem 0 5rem; background: var(--navy); color: var(--on-dark); }
.hero-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 4rem; align-items: end; }
.kicker { color: var(--amber); font-weight: 500; font-size: .95rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--brass); }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); line-height: 1.1; max-width: 760px; }
.lede { margin-top: 1.3rem; max-width: 620px; color: var(--on-dark-muted); font-size: 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: .65rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 500; transition: background .15s; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--surface); }
.button.amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.button.amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.hero .button.secondary { color: var(--on-dark); border-color: rgba(255,255,255,.35); }
.hero .button.secondary:hover { background: rgba(255,255,255,.08); }
.hero-aside { border-left: 2px solid var(--brass); padding-left: 1.3rem; }
.hero-aside dl { margin: 0; display: grid; gap: 1.1rem; }
.hero-aside dt { font-size: .85rem; color: var(--on-dark-muted); }
.hero-aside dd { margin: .1rem 0 0; font-weight: 500; }

/* Secciones */
.section { padding: 5rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Líneas de negocio */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.line { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--accent); }
.line.software { border-top-color: var(--brass); }
.line-label { font-size: .88rem; color: var(--muted); font-weight: 500; }
.line h3 { font-size: 1.6rem; }
.line p { color: var(--muted); }
.line ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.line li + li { margin-top: .3rem; }
.line .link { margin-top: auto; padding-top: .6rem; color: var(--accent); font-weight: 500; }
.line .link:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Módulos de CrecErpe */
.modules { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.module { display: grid; grid-template-columns: minmax(0, 15rem) 1fr 8rem; gap: 1.5rem; align-items: center; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line); }
.module:last-child { border-bottom: 0; }
.module h3 { font-size: 1.1rem; }
.module p { color: var(--muted); font-size: .97rem; }
.status { justify-self: end; font-size: .82rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; background: #ececea; color: var(--muted); }
.status.live { background: var(--amber-soft); color: #7a4f06; }
.note { margin-top: 1rem; font-size: .92rem; color: var(--muted); }

/* Ecosistema */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.eco a { display: block; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s; }
.eco a:hover { border-color: var(--amber); }
.eco .domain { font-family: var(--serif); font-style: italic; color: var(--accent); }
.eco h3 { font-size: 1.15rem; margin: .3rem 0 .4rem; }
.eco p { color: var(--muted); font-size: .97rem; }

/* Contacto */
.contact { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(1.8rem, 5vw, 3rem); background: var(--navy); border-left: 4px solid var(--amber); color: #fff; border-radius: 0; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.contact p { color: var(--on-dark-muted); max-width: 560px; }
.contact .button { background: var(--amber); border-color: var(--amber); color: var(--navy); white-space: nowrap; }
.contact .button:hover { background: var(--amber-dark); border-color: var(--amber-dark); }

.site-footer { padding: 2rem 0 3rem; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.footer-row nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-row a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 3.6rem 0 3rem; }
  .hero-grid, .section-head, .lines, .eco { grid-template-columns: 1fr; gap: 1.6rem; }
  .module { grid-template-columns: 1fr auto; gap: .4rem 1rem; }
  .module p { grid-column: 1 / -1; grid-row: 2; }
  .section { padding: 3.6rem 0; }
  .contact { flex-direction: column; align-items: flex-start; }
}

/* Páginas legales y Libro de Reclamaciones */
.legal-main { padding: 4rem 0 5rem; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: .6rem; }
.legal h2 { font-size: 1.3rem; margin: 2.1rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: .7rem; }
.legal ul { padding-left: 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 500; width: 34%; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.updated, .hint { color: var(--muted); font-size: .92rem; }
.hint { display: block; margin-top: .25rem; font-weight: 400; }
.pending { background: var(--amber-soft); padding: 0 .25rem; font-weight: 500; }
.notice-box { border-left: 3px solid var(--amber); background: var(--surface); padding: .9rem 1.1rem; margin: 1.2rem 0; color: var(--muted); }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.lead-form label { display: block; font-size: .95rem; font-weight: 500; margin-bottom: 1rem; }
.lead-form input:not([type="checkbox"]):not([type="radio"]), .lead-form select, .lead-form textarea { display: block; width: 100%; margin-top: .35rem; padding: .65rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font: inherit; font-weight: 400; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.consent { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.consent input, .choice input { accent-color: var(--accent); margin-top: .3rem; }
.choice { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: .3rem 0 1rem; }
.choice label { display: flex; align-items: center; gap: .4rem; font-weight: 400; margin: 0; }
.lr-legend { font-weight: 600; font-size: 1.1rem; margin: 1.5rem 0 .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lr-legend:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-status { margin-top: .8rem; min-height: 1.3rem; font-weight: 500; }
.form-status.error { color: #a5321f; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.sheet .code { color: var(--accent); }
.eyebrow { color: var(--accent); font-weight: 500; margin-bottom: .4rem; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } .sheet { border: 0; padding: 0; } }
