/* ================================================================
   Portada de www.expresswebsite.cl (2026-10-18): la casa de ExpressApps.
   Copia estática del "Panorama general" de la suite (/apps/ en agenda), con la
   Agenda como producto principal. Fuente visual: apps/web/src/styles.css del
   repo aldocelle/expressapp (rama develop/microapps).

   Contraste medido sobre --bg (#f7f7f3) y --card (#fff): --ink 15:1,
   --muted 5,6:1, --soft 4,6:1, --verde-texto 4,7:1. Sobre --noche: --hero-texto
   8:1, --lima 13:1. Los grises claros de la suite (#a7afa7, #98a19a) no llegan a
   4,5:1 y aquí se usan solo en adornos (aria-hidden).
   ================================================================ */

:root {
  --bg: #f7f7f3;
  --card: #ffffff;
  --ink: #1b2520;
  --muted: #5d6a61;
  --soft: #66726a;
  --line: #e6e9e1;
  --line-suave: #edf0e9;
  --noche: #1b2922;
  --hero-texto: #b5c6b9;
  --lima: #cdf096;
  --lima-claro: #e0ffb7;
  --lima-borde: rgba(205, 240, 150, .2);
  --verde: #5d9447;
  --verde-texto: #4f7a45;
  --verde-tenue: #eaf2df;
  --verde-fondo: #f1f5eb;
  --sombra: 0 15px 35px rgba(32, 51, 32, .08);
  --font-titulo: "Manrope", system-ui, sans-serif;
  --font-texto: "DM Sans", system-ui, Arial, sans-serif;
  --radio: 13px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-texto);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-titulo); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--noche); color: #fff; padding: 10px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- casco */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 258px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; background: #fff; border-right: 1px solid #e9eae6;
  padding: 27px 16px 22px; z-index: 30;
}
.brand { display: flex; gap: 11px; align-items: center; margin: 0 0 44px 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: #c8ee8c; border-radius: 12px; width: 39px; height: 39px; flex: none; }
.brand-word { font-family: var(--font-titulo); font-size: 20px; letter-spacing: -1.1px; font-weight: 800; line-height: 1; }
.brand-word span { color: var(--verde); }
.brand-word small { display: block; color: var(--soft); font-family: var(--font-texto); font-size: 10px; font-weight: 600; letter-spacing: .4px; margin-top: 7px; }

.sidebar-label {
  display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1.25px; color: var(--soft);
  font-weight: 800; padding: 0 13px; margin: 26px 0 12px;
}
.sidebar-label:first-of-type { margin-top: 0; }
.nav-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.nav-link {
  display: flex; gap: 13px; align-items: center; border-radius: 10px; color: #4f5c53; text-decoration: none;
  padding: 10px 13px; min-height: 44px; font-size: 13px; font-weight: 600; transition: background .18s, color .18s;
}
.nav-link:hover { background: #f4f5ef; color: #18251d; }
.nav-link.active { color: #203126; background: var(--verde-tenue); font-weight: 800; }
.nav-link svg { flex: none; }
.nav-initials { color: #39483d; font-size: 10px; font-weight: 800; border-radius: 7px; width: 27px; height: 27px; display: grid; place-items: center; flex: none; background: var(--tint); }
.nav-live-dot { width: 7px; height: 7px; background: #68a957; border-radius: 50%; margin-left: auto; flex: none; }
.nav-demo { margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .4px; color: var(--soft); }

.sidebar-bottom { margin-top: auto; padding: 22px 9px 0; }
.build-note {
  margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; line-height: 1.5;
  padding: 13px; border: 1px solid #e5ede2; background: #f8faf5; border-radius: 12px;
}
.build-note small { color: var(--soft); font-size: 11px; font-weight: 500; }
.build-status { flex: none; width: 7px; height: 7px; background: #68a957; border-radius: 50%; }
.sidebar-bottom > .lema { font-family: Georgia, serif; color: #8c968b; margin: 24px 8px 0; font-style: italic; font-size: 17px; line-height: 1.25; }

.sidebar-backdrop { display: none; }

.main { flex: 1; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px;
  background: rgba(255, 255, 255, .8); border-bottom: 1px solid #e9eae5; padding: 0 48px;
}
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: var(--soft); font-size: 10px; letter-spacing: 1.1px; font-weight: 800; }
.breadcrumbs strong { color: #303e33; letter-spacing: .05px; font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-brand { display: none; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; min-height: 44px; }
.topbar-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.topbar-brand .brand-word { font-size: 19px; }
.mobile-menu { display: none; border: 0; background: none; padding: 0; width: 44px; height: 44px; place-items: center; color: var(--ink); border-radius: 10px; cursor: pointer; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  padding: 11px 18px; border-radius: 9px; font: 800 13px/1.2 var(--font-texto); text-decoration: none;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-oscuro { background: var(--noche); color: #fff; }
.btn-oscuro:hover { background: #26372d; }
.btn-lima { background: var(--lima); color: #193020; }
.btn-lima:hover { background: var(--lima-claro); }
.btn-borde { border-color: #d5dbd0; background: #fff; color: var(--ink); }
.btn-borde:hover { border-color: #b1c3ac; }
.btn-fantasma { border-color: rgba(205, 240, 150, .45); color: #e8f6d2; background: transparent; }
.btn-fantasma:hover { border-color: var(--lima); }
.btn-chico { min-height: 38px; padding: 8px 13px; font-size: 12px; }

/* ---------------------------------------------------------------- contenido */
.content { max-width: 1560px; margin: 0 auto; padding: 38px 47px 24px; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 38%; min-height: 360px; overflow: hidden;
  background: var(--noche); color: #fff; border-radius: 18px; position: relative;
}
.hero-text { padding: 48px 48px 44px; position: relative; z-index: 1; }
.eyebrow { color: #d1eea4; display: flex; align-items: center; gap: 8px; letter-spacing: 1.4px; font-size: 11px; font-weight: 800; margin: 0; }
.hero h1 { font-weight: 800; font-size: clamp(39px, 4vw, 65px); letter-spacing: -3.4px; line-height: 1.08; margin: 21px 0 17px; }
.hero h1 em { color: #c9ec91; font-style: normal; }
.hero p.hero-lead { color: var(--hero-texto); max-width: 520px; font-size: 15px; line-height: 1.7; margin: 0 0 26px; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; isolation: isolate; overflow: hidden; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 25%, var(--noche) 77%); pointer-events: none; }
.orbit { border: 1px solid var(--lima-borde); position: absolute; border-radius: 50%; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 280px; height: 280px; }
.orbit-two { width: 415px; height: 415px; }
.hero-art-center {
  background: #ccf19a; color: var(--noche); width: 118px; height: 118px; display: grid; place-items: center; border-radius: 28px;
  transform: rotate(-12deg); position: absolute; left: calc(50% - 59px); top: calc(47% - 59px); box-shadow: 0 28px 55px #0d160e;
}
.hero-art-center svg { transform: rotate(12deg); }
.orb { display: grid; place-items: center; border-radius: 15px; width: 55px; height: 55px; position: absolute; font-size: 14px; font-weight: 800; z-index: 1; box-shadow: 0 15px 40px #0e1f1a; }
.orb-one { left: 14%; top: 14%; background: #d8f5c6; color: #293f26; transform: rotate(10deg); }
.orb-two { top: 12%; right: 12%; background: #f3daff; color: #54325f; transform: rotate(-12deg); }
.orb-three { bottom: 14%; right: 24%; background: #ffe2c6; color: #754b24; transform: rotate(7deg); }
.orb-four { bottom: 20%; left: 12%; background: #d5e8fd; color: #22405e; transform: rotate(-8deg); }
.art-label { position: absolute; bottom: 15px; left: 20px; color: #a1b4a4; letter-spacing: 1.5px; font-size: 9px; font-weight: 800; line-height: 1.5; z-index: 2; }

.section { margin-top: 52px; }
.section-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.7px; color: var(--soft); margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 23px; gap: 15px; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 35px); letter-spacing: -1.5px; margin: 11px 0 0; line-height: 1.2; }
.section-head h2 i { font-family: Georgia, serif; font-weight: 400; color: #557f55; }
.section-caption { color: var(--soft); font-size: 13px; margin: 0; }

/* Estado: cifras + aviso de modo demo */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; border: 1px solid #e7eae4; background: #fff; border-radius: 14px; margin-top: 19px; overflow: hidden; }
.overview-number { padding: 28px 20px; border-right: 1px solid #eaece6; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.overview-number b { font-family: var(--font-titulo); font-size: 34px; letter-spacing: -1.6px; font-weight: 800; }
.overview-number span { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.45; }
.overview-message { padding: 24px; display: flex; align-items: flex-start; gap: 13px; background: var(--verde-fondo); color: #3f5843; }
.overview-message svg { flex: none; margin-top: 2px; }
.overview-message p { font-size: 13px; line-height: 1.65; margin: 0; }

/* Producto principal: la Agenda */
.destacado {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; border: 1px solid var(--line);
  background: #fff; border-radius: 16px; overflow: hidden;
}
.destacado-texto { padding: 34px 34px 32px; display: flex; flex-direction: column; }
.destacado-media { background: linear-gradient(160deg, #eef7e0, #dfeccf); display: grid; place-items: center; padding: 28px; }
.destacado-media img { border-radius: 12px; box-shadow: 0 22px 45px rgba(27, 41, 34, .18); }
.app-card-top { display: flex; justify-content: space-between; align-items: center; color: #8f9a8e; }
.app-category { font-size: 11px; letter-spacing: 1px; font-weight: 800; text-transform: uppercase; color: var(--soft); }
.app-icon {
  display: grid; place-items: center; width: 64px; height: 64px; background: var(--tint); border-radius: 18px;
  font-family: var(--font-titulo); font-weight: 800; font-size: 21px; letter-spacing: -1px; margin: 17px 0 16px; color: #26332a;
}
.app-index { font-size: 11px; color: var(--soft); letter-spacing: 1px; font-weight: 800; }
.destacado h3 { margin: 9px 0 10px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.destacado-lead { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0 0 18px; }
.chequeos { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.chequeos li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; color: #36443a; }
.chequeos li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23193020' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.destacado-precio { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.destacado-precio b { font-family: var(--font-titulo); font-size: 26px; color: var(--ink); letter-spacing: -1px; }
.destacado-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.estado { font-size: 11px; font-weight: 800; letter-spacing: .3px; padding: 7px 10px; border-radius: 5px; background: #e7f4db; color: #43683f; }
.estado-demo { background: #f4f1e4; color: #6b5a1f; }

/* Caja de herramientas: las seis microapps */
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.app-card {
  border: 1px solid var(--line); background: #fff; color: #202c24; border-radius: var(--radio); padding: 24px; min-height: 300px;
  display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: #b1c3ac; }
.app-card h3 { margin: 9px 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.7px; }
.app-card p { color: var(--muted); line-height: 1.6; font-size: 14px; margin: 0 0 23px; }
.app-card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-suave); padding-top: 15px; }
.app-arrow { color: #5d6f60; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }

.catalogo-pie {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: 17px; padding: 18px 22px; border: 1px dashed #cfd8c9; border-radius: var(--radio);
}
.catalogo-pie p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.catalogo-pie strong { color: var(--ink); }
.catalogo-pie .acciones { display: flex; flex-wrap: wrap; gap: 10px; }

/* Planes y precios */
.precios-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.precio-card { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 30px; display: flex; flex-direction: column; }
.precio-card-head { display: flex; align-items: center; gap: 14px; }
.precio-card-head .app-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; margin: 0; }
.precio-card h3 { margin: 0; font-size: 20px; letter-spacing: -.6px; }
.precio-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.precio-monto { margin: 22px 0 6px; color: var(--muted); font-size: 14px; }
.precio-monto b { font-family: var(--font-titulo); font-size: 38px; letter-spacing: -1.8px; color: var(--ink); }
.precio-nota { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.tabla-precios { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 14px; }
.tabla-precios th, .tabla-precios td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line-suave); }
.tabla-precios th { color: var(--soft); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; }
.tabla-precios td:last-child, .tabla-precios th:last-child { text-align: right; }
.tabla-precios td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.precio-card .chequeos { margin-bottom: 22px; }
.precio-card .btn { margin-top: auto; align-self: flex-start; }
.precios-aclaracion { margin: 16px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* A medida y contacto */
.medida {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center;
  background: var(--noche); color: #fff; border-radius: 18px; padding: 40px 44px;
}
.medida h2 { font-size: clamp(26px, 2.6vw, 35px); letter-spacing: -1.5px; line-height: 1.2; margin: 12px 0 12px; }
.medida h2 i { font-family: Georgia, serif; font-weight: 400; color: #c9ec91; }
.medida p { color: var(--hero-texto); font-size: 15px; line-height: 1.7; margin: 0; }
.medida .section-eyebrow { color: #d1eea4; }
.medida-links { display: grid; gap: 10px; }
.medida-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 18px;
  border: 1px solid rgba(205, 240, 150, .25); border-radius: 11px; color: #f1f8e6; text-decoration: none; font-weight: 700; font-size: 14px;
  transition: border-color .2s, background .2s;
}
.medida-links a:hover { border-color: var(--lima); background: rgba(205, 240, 150, .06); }
.medida-links a span { color: var(--hero-texto); font-weight: 500; font-size: 13px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--soft); font-size: 12px;
  margin-top: 45px; border-top: 1px solid #e4e8e1; padding: 22px 2px 0;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- tamaños */
@media (max-width: 1180px) {
  .topbar { padding-inline: 26px; }
  .content { padding: 32px 26px; }
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
  .overview-message { grid-column: 1 / -1; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr 30%; }
  .hero-text { padding: 42px 34px; }
  .destacado { grid-template-columns: 1fr; }
  .medida { grid-template-columns: 1fr; padding: 34px; }
}

@media (max-width: 870px) {
  /* Cerrado queda fuera de la pantalla y fuera del orden de tabulación (visibility). */
  .js .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%); visibility: hidden;
    transition: transform .2s ease, visibility 0s .2s; box-shadow: 10px 0 30px rgba(0, 0, 0, .06);
  }
  .js.menu-abierto .sidebar { transform: none; visibility: visible; transition: transform .2s ease; }
  .js.menu-abierto .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(27, 37, 32, .35); z-index: 20; }
  .js .mobile-menu { display: grid; }
  /* Sin JavaScript el menú lateral va arriba, completo. */
  html:not(.js) .shell { display: block; }
  html:not(.js) .sidebar { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid #e9eae6; }
  .topbar { justify-content: flex-start; gap: 10px; }
  .topbar-brand { display: flex; }
  .breadcrumbs { display: none; }
  .topbar-right { margin-left: auto; }
  .precios-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { height: 62px; padding-inline: 12px; }
  .topbar-right .btn-borde { display: none; }
  .content { padding: 20px 16px; }
  .hero { display: block; min-height: 0; }
  .hero-text { padding: 34px 24px; }
  .hero h1 { font-size: 40px; letter-spacing: -2.2px; }
  .hero-art { display: none; }
  .overview-number { padding: 18px 12px; }
  .overview-number b { font-size: 28px; }
  .overview-number span { font-size: 11px; }
  .section { margin-top: 38px; }
  .section-head { display: block; }
  .section-caption { margin-top: 8px; }
  .destacado-texto { padding: 26px 22px; }
  .destacado-media { padding: 18px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 10px; }
  .app-card { min-height: 0; }
  .precio-card { padding: 24px 20px; }
  .medida { padding: 28px 22px; }
  .footer { display: block; line-height: 1.9; }
  .footer nav { margin-top: 6px; }
}

@media (max-width: 400px) {
  .solo-ancho { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .app-card:hover { transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
