/* Nube Aumentada · hoja de estilos
   Paleta: tinta (fondo oscuro y textos), papel (fondo), cielo (zonas suaves),
   cobalto (acciones) y verde de aprobación (solo para lo que aprueba un consultor). */
:root {
  --ink: #10233b;
  --paper: #f6f8fa;
  --white: #ffffff;
  --sky: #dbe8f4;
  --cobalt: #2b54e8;
  --cobalt-dark: #1f40bd;
  --approve: #16805a;
  --text: #1a2a3c;
  --muted: #56677b;
  --line: #d3dde8;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt-dark); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--white); padding: 8px 14px; }

/* Botones */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--cobalt); color: var(--white); border: 2px solid var(--cobalt); padding: 12px 22px; border-radius: var(--r-sm); }
.btn:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn--sm { padding: 8px 16px; font-size: .95rem; }

/* Encabezado */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--white); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand strong { display: block; font-family: var(--display); font-size: 1.15rem; line-height: 1.1; }
.brand small { display: block; font-size: .78rem; color: #b8c8da; }
.menu { display: flex; align-items: center; gap: 24px; }
.menu a { color: #dfe8f2; text-decoration: none; font-size: .97rem; }
.menu a:hover { color: var(--white); }
.menu .btn { color: var(--white); }
.menu-btn { display: none; font: inherit; color: var(--white); background: none; border: 1px solid rgba(255,255,255,.4); border-radius: var(--r-sm); padding: 6px 12px; }

/* Portada */
.hero { background: var(--ink); color: #d6e1ee; padding: 72px 0 88px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Bitácora: el elemento distintivo de la página */
.log { margin: 0; background: var(--white); color: var(--text); border-radius: var(--r-md); padding: 22px 22px 14px; box-shadow: 0 24px 60px rgba(4, 14, 28, .45); }
.log__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.log__org { font-weight: 500; color: var(--muted); font-size: .9rem; }
.log__list { list-style: none; margin: 0; padding: 6px 0 0; position: relative; }
.log__list::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 26px; width: 2px; background: var(--line); }
.log__item { position: relative; padding: 12px 0 10px 30px; }
.log__item::before { content: ""; position: absolute; left: 1px; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--cobalt); }
.log__item--ok::before { background: var(--approve); border-color: var(--approve); }
.log__item p { margin: 2px 0 0; font-size: .97rem; }
.who { font-size: .85rem; font-weight: 600; }
.who--agent { color: var(--cobalt-dark); }
.who--human { color: var(--approve); }
.log__item--ok p { font-weight: 600; color: var(--ink); }
.log__note { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .log__item { opacity: 0; animation: entra .5s ease-out forwards; animation-delay: calc(.35s + var(--i) * .55s); }
  @keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Franja con foto */
.band { position: relative; margin: 0; background: var(--ink); }
.band img { width: 100%; height: clamp(260px, 38vw, 460px); object-fit: cover; opacity: .82; }
.band__text { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px max(16px, calc((100% - 1160px) / 2));
  font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.2; color: var(--white);
  background: linear-gradient(to top, rgba(10, 22, 38, .85), rgba(10, 22, 38, 0)); }

/* Secciones */
.section { padding: 88px 0; }
.section--tint { background: var(--sky); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #d6e1ee; }
.section--ink h2 { color: var(--white); }
.section__head { max-width: 62ch; margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }

/* Soluciones (necesidades del negocio) */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin: 0; }
.need { border-top: 2px solid var(--ink); padding: 18px 0 30px; }
.need dt { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--ink); margin-bottom: 8px; }
.need dd { margin: 0 0 10px; font-size: .97rem; }
.need__ai { color: var(--cobalt-dark); }

/* Sectores */
.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.sector { display: grid; grid-template-columns: 15rem 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid #b9cde0; }
.sector h3 { margin: 0; font-size: 1.1rem; }
.sector p { margin: 0; font-size: .97rem; }

/* Ya tienes Salesforce */
.split--top { align-items: start; }
#ya-tienes .btn { margin-top: 8px; }
.review { list-style: none; margin: 0; padding: 0; counter-reset: rev; }
.review li { counter-increment: rev; position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--line); }
.review li::before { content: counter(rev); position: absolute; left: 0; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--white); background: var(--ink); }
.review h3 { margin-bottom: 4px; }
.review p { margin: 0; font-size: .97rem; color: var(--muted); }

/* Equipo */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
.team li { border-top: 2px solid var(--approve); padding-top: 16px; }
.team h3 { font-size: 1.08rem; margin-bottom: 6px; }
.team p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Modelo de trabajo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
.step { counter-increment: paso; background: var(--white); border-radius: var(--r-md); padding: 22px; }
.step h3::before { content: counter(paso) ". "; color: var(--cobalt); }
.step p { font-size: .95rem; margin: 0 0 12px; }
.step span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 2px; }
.step__agent span { color: var(--cobalt-dark); }
.step__agent { padding-top: 12px; border-top: 1px solid var(--line); }
.step__human span { color: var(--approve); }

/* Servicios */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.services li { padding: 14px 0; border-top: 1px solid var(--line); }
.services h3 { font-size: 1.05rem; margin-bottom: 4px; }
.services p { margin: 0; font-size: .95rem; color: var(--muted); }

/* Nosotros */
.photo--ink img { aspect-ratio: 1 / 1; }
.promises { list-style: none; margin: 24px 0 0; padding: 0; }
.promises li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid rgba(255,255,255,.14); color: var(--white); }
.promises li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px; border-left: 2px solid #4fd19b; border-bottom: 2px solid #4fd19b; transform: rotate(-45deg); }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-list li { padding: 4px 0; }
.form { display: grid; gap: 14px; background: var(--white); border-radius: var(--r-md); padding: 28px; border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.form input, .form textarea, .form select { width: 100%; min-width: 0; font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid #b9c7d6; border-radius: var(--r-sm); background: var(--white); color: var(--text); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--cobalt); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; }
.advanced { border: 1px dashed #b9c7d6; border-radius: var(--r-sm); padding: 4px 14px; }
.advanced[open] { padding-bottom: 14px; }
.advanced summary { cursor: pointer; padding: 8px 0; font-weight: 600; color: var(--cobalt-dark); }
.advanced label { margin-top: 10px; }
#contacto .split { align-items: start; }

.social { display: flex; gap: 12px; }
.social a { color: inherit; }

/* Pie */
.footer { background: var(--ink); color: #b8c8da; padding: 36px 0; }
.footer__inner { display: grid; gap: 10px; }
.footer p { margin: 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .needs { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: 24px 28px; }
  .sectors { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 16px 22px; border-top: 1px solid rgba(255,255,255,.12); }
  .menu.is-open { display: flex; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 64px 0; }
  .needs, .steps, .services, .team { grid-template-columns: 1fr; }
  .sector { grid-template-columns: 1fr; gap: 6px; }
}
