/* Página "Instala la app Bastet" (app.html): identidad Bastet 2026 — fondo blanco, verde de marca, amarillo y naranja como acentos.
   Los teléfonos y la tablet son imágenes de maqueta (assets/img/mockup-*.webp, con fondo negro): van dentro de una tarjeta oscura redondeada. */
:root {
  --ebony: #FFFFFF; --ebony-2: #F7F9FB; --ebony-3: #EFF8E7;
  --gold: #3D4C3A; --gold-light: #3D4C3A; --gold-deep: #2F3B2D; --gold-mid: #3D4C3A;
  --text: #1E2629; --muted: rgba(30,38,41,.66);
  --line: rgba(30,38,41,.12);
  --green: #3D4C3A; --green-dark: #2F3B2D; --yellow: #F1BF46; --orange: #EC6C2E; --pale: #EFF8E7; --sage: #B7BEAD; --cream: #FBE6AB;
  --serif: 'Conso', Georgia, 'Times New Roman', serif;
  --sans: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--ebony); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.hidden, [hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1, h2, h3 { color: var(--green); }
em { font-style: normal; color: var(--orange); }

/* Cabecera */
.ap-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(16px, 5vw, 48px); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ap-logo img { display: block; height: 52px; width: auto; }
.ap-back { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--gold-light); padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; }
.ap-back:hover { background: var(--pale); }

/* Portada */
.ap-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px); align-items: center; gap: clamp(24px, 4vw, 56px); max-width: 1240px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) clamp(16px, 5vw, 48px) 0; }
.ap-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--green); }
.ap-hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; margin-bottom: 20px; }
.ap-lead { margin: 0 0 26px; max-width: 560px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); }
.ap-lead strong { color: var(--green); font-weight: 500; }
.ap-store-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ap-store-row--center { justify-content: center; }
.ap-store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 24px 10px 18px; font: inherit; text-align: left; color: #fff; cursor: pointer; border: 0; border-radius: 999px; background: var(--green); transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
.ap-store:hover { transform: translateY(-2px); background: var(--green-dark); box-shadow: 0 16px 30px -16px rgba(61,76,58,.9); }
.ap-store:focus-visible, .ap-cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.ap-store svg { color: var(--yellow); }
.ap-store svg { width: 28px; height: 28px; flex: none; }
.ap-store span { display: flex; flex-direction: column; line-height: 1.15; }
.ap-store small { font-size: 11.5px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.ap-store b { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .02em; }
.ap-status { margin: 18px 0 0; padding: 12px 16px; display: inline-block; font-size: 15px; color: var(--green); background: var(--pale); border: 1px solid var(--sage); border-radius: 16px; }
.ap-fine { margin: 18px 0 0; max-width: 520px; font-size: 13.5px; color: var(--muted); }

/* Imagen del encabezado: captura real de Bastet en computadora y celular, con bordes suaves */
.ap-hero-art { display: flex; justify-content: center; }
.ap-hero-art img { display: block; width: 100%; max-width: 700px; height: auto; border-radius: 32px; box-shadow: 0 34px 70px -38px rgba(30,38,41,.55); }

/* Secciones */
#ventajas { padding-top: clamp(8px, 1.5vw, 20px); }
.ap-section { max-width: 1240px; margin: 0 auto; padding: clamp(44px, 7vw, 88px) clamp(16px, 5vw, 48px); }
.ap-section > h2, .ap-faq h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin-bottom: 34px; max-width: 760px; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.ap-card { padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .3s, transform .3s, box-shadow .3s; }
.ap-card:hover { border-color: var(--sage); transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(30,38,41,.4); }
.ap-card svg { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ap-card h3 { font-size: 21px; margin-bottom: 8px; color: var(--green); }
.ap-card p { margin: 0; font-size: 15px; color: var(--muted); }

/* Agentes */
.ap-agents { max-width: 820px; margin-left: auto; margin-right: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ap-agents-text h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin-bottom: 16px; }
.ap-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.ap-list li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--muted); }
.ap-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(241,191,70,.25); }
.ap-list b { color: var(--text); font-weight: 600; }
.ap-link { display: inline-block; font-weight: 600; color: var(--green); text-decoration: none; border-bottom: 1px solid var(--green); padding-bottom: 2px; }
/* Instalar */
.ap-tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 99px; background: var(--ebony-2); }
.ap-tabs button { padding: 10px 24px; font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 99px; cursor: pointer; }
.ap-tabs button.is-active { color: #fff; background: var(--green); }
.ap-tabs button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ap-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ap-steps li { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--ebony-2); border-color: transparent; }
.ap-steps li > span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; font-family: var(--serif); font-size: 17px; color: var(--yellow); border-radius: 50%; background: var(--green); }
.ap-steps b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--green); }
.ap-steps p { margin: 0; font-size: 14.5px; color: var(--muted); }
.ap-cta { padding: 16px 38px; font-family: var(--serif); font-size: 18px; letter-spacing: .01em; color: #fff; cursor: pointer; border: 0; border-radius: 999px; background: var(--green); transition: background-color .25s ease, transform .25s ease; }
.ap-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.ap-note { max-width: 640px; margin: 18px 0 0; padding: 12px 16px; font-size: 14.5px; color: #412B21; background: var(--cream); border: 1px solid var(--yellow); border-radius: 16px; }

/* Preguntas y cierre */
.ap-faq { max-width: 860px; }
.ap-faq details { border-bottom: 1px solid var(--line); }
.ap-faq summary { padding: 18px 28px 18px 0; position: relative; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--green); }
.ap-faq details[open] summary::after { content: '–'; }
.ap-faq details p { margin: 0 0 18px; color: var(--muted); }
.ap-final { text-align: center; padding: clamp(48px, 8vw, 96px) 16px; background: var(--pale); border-top: 0; border-radius: 56px 56px 0 0; }
.ap-final h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 28px; }
.ap-footer { padding: 30px 16px calc(36px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ap-footer a { display: inline-block; margin: 4px 12px; color: var(--green); text-decoration: none; }
.ap-footer p { margin: 14px 0 0; font-size: 13px; }

@media (max-width: 1000px) {
  .ap-hero { grid-template-columns: 1fr; text-align: center; }
  .ap-lead, .ap-fine { margin-left: auto; margin-right: auto; }
  .ap-store-row { justify-content: center; }
}
@media (max-width: 520px) {
  .ap-logo img { height: 44px; }
  .ap-store { width: 100%; justify-content: center; }
  .ap-cta { width: 100%; }
  .ap-tabs { display: flex; }
  .ap-tabs button { flex: 1; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
