/* Páginas interiores: demo, integraciones, seguridad y legal */

[hidden] { display: none !important; }

.nav a[aria-current="page"] { color: #fff; }
.wrap.narrow { width: min(860px, calc(100% - 40px)); }
.center { text-align: center; }
.lead.center { margin-inline: auto; }

.site-footer.plain { margin-top: 0; border-top: 1px solid var(--line); border-radius: 0; }
.page main:has(> .final:last-child) + .site-footer { margin-top: -36px; border-top: 0; border-radius: 36px 36px 0 0; }

.btn-ghost { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(20, 90, 140, 0.18); }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: 0.4; pointer-events: none; box-shadow: none; }
.cta-row.left { justify-content: flex-start; }

/* ---------- Cabecera de página ---------- */

.page-hero, .demo-sec, .legal-sec { position: relative; overflow: hidden; }
.page-hero { padding: calc(var(--header-h) + clamp(60px, 9vw, 110px)) 0 clamp(50px, 7vw, 90px); text-align: center; }
.page-hero .display { max-width: 17ch; margin-inline: auto; font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
.page-hero .lead { margin-inline: auto; }
.page-halo { position: absolute; inset: 0 0 auto; height: 100%; pointer-events: none; z-index: -1; }
.page-halo img { position: absolute; left: 50%; top: -9vw; width: max(1400px, 115vw); max-width: none; transform: translateX(-50%); opacity: 0.7; }
.page-halo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg) 80%); }

/* ---------- Formulario de demo ---------- */

.demo-sec { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(70px, 9vw, 120px); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.demo-main .display-md { max-width: 14ch; }

.form-card {
  margin-top: 34px; padding: clamp(22px, 3vw, 34px); border-radius: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; color: rgba(255, 255, 255, 0.78); font-weight: 400; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff; font: inherit; font-size: 0.97rem; font-weight: 300;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fd3ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.field select option { background: #121418; color: #fff; }
.field input::placeholder { color: rgba(255, 255, 255, 0.3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(127, 211, 255, 0.15); background: rgba(255, 255, 255, 0.07); }
.field.invalid input, .field.invalid select { border-color: #ff7b7b; box-shadow: 0 0 0 4px rgba(255, 123, 123, 0.12); }
.err { min-height: 1.25em; font-size: 0.8rem; color: #ff9a9a; }

.checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); margin-top: 6px; }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; margin-top: 1px; }
.checkbox .box svg { width: 15px; height: 15px; stroke-width: 2.6; color: #fff; opacity: 0; }
.checkbox input:checked + .box { background: var(--blue); border-color: var(--blue); }
.checkbox input:checked + .box svg { opacity: 1; }
.checkbox input:focus-visible + .box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field.invalid .box { border-color: #ff7b7b; }
.checkbox a { color: var(--cyan); }

.form-error { min-height: 0; color: #ff9a9a; font-size: 0.9rem; margin: 4px 0 12px; }
.form-error:empty { margin: 0 0 12px; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--faint); font-size: 0.82rem; }
.form-note svg { width: 15px; height: 15px; }
form.sending button[type="submit"], .btn.sending { opacity: 0.6; pointer-events: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#slot-error { margin: 14px 0 0; text-align: right; }
#slot-error:empty { margin: 0; }

.demo-aside { position: sticky; top: calc(var(--header-h) + 30px); padding-top: 70px; }
.aside-title { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.demo-aside .ticks { margin-top: 20px; }
.demo-phone { width: min(250px, 70%); margin: 44px auto 0; }
.demo-phone .scr { font-size: 3.5cqw; padding-top: 4cqw; }
.mini-bars.neg i { background: linear-gradient(180deg, #ff9b9b, #e5484d); }

/* ---------- Pasos del flujo de demo ---------- */

.flow { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0 0 34px; font-size: 0.88rem; color: var(--faint); }
.flow li { display: inline-flex; align-items: center; gap: 9px; }
.flow span, .flow svg { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; border: 1px solid rgba(255, 255, 255, 0.2); }
.flow .done { color: var(--muted); }
.flow .done svg { padding: 5px; background: var(--blue); border-color: var(--blue); color: #fff; stroke-width: 2.4; }
.flow .cur { color: #fff; }
.flow .cur span { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px rgba(127, 211, 255, 0.35); }

.need-lead { text-align: center; display: grid; gap: 18px; justify-items: center; }
.cal-embed { margin-top: 34px; border-radius: 28px; overflow: hidden; background: #0d0f12; border: 1px solid var(--line); }
.cal-embed iframe { display: block; width: 100%; height: 720px; border: 0; }

.booking-note { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(50, 147, 206, 0.1); border: 1px solid rgba(127, 211, 255, 0.22); color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.booking-note svg { flex: none; width: 22px; height: 22px; color: var(--cyan); }
.booking-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; margin-top: 26px; }
.booking-label { font-size: 0.86rem; color: rgba(255, 255, 255, 0.78); margin-bottom: 12px; }
.booking-label small { color: var(--faint); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day, .slot {
  font: inherit; color: #fff; cursor: pointer; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.day { display: grid; gap: 2px; padding: 10px 4px; text-align: center; }
.day small { font-size: 0.72rem; color: var(--faint); text-transform: capitalize; }
.day b { font-size: 1.2rem; font-weight: 400; }
.day:hover, .slot:hover { border-color: rgba(127, 211, 255, 0.5); }
.day[aria-selected="true"], .slot[aria-selected="true"] { background: linear-gradient(180deg, #45a6df, #2b86c0); border-color: transparent; box-shadow: 0 8px 22px rgba(50, 147, 206, 0.4); }
.day[aria-selected="true"] small { color: rgba(255, 255, 255, 0.85); }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot { height: 46px; font-size: 0.95rem; }
.slots:empty::before { content: "Elige primero un día."; grid-column: 1 / -1; color: var(--faint); font-size: 0.9rem; }
.booking-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.slot-summary { color: var(--muted); }
.slot-summary b { color: #fff; font-weight: 500; }

/* ---------- Confirmación ---------- */

.done-orb { width: clamp(150px, 20vw, 210px); margin: 0 auto 10px; mix-blend-mode: screen; animation: breathe 4s ease-in-out infinite; }
.done-card { text-align: left; display: grid; gap: 16px; max-width: 560px; margin: 34px auto 0; }
.done-row { display: flex; gap: 16px; align-items: center; }
.done-row > svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 13px; background: rgba(50, 147, 206, 0.14); color: var(--cyan); }
.done-row small { display: block; color: var(--faint); font-size: 0.8rem; }
.done-row b { font-weight: 400; color: #fff; word-break: break-word; }
.done-row a { color: var(--cyan); }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.done-actions .btn svg { width: 18px; height: 18px; }
.done-actions:not(:has(:not([hidden]))) { display: none; }
.done-reminders { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.88rem; padding-top: 14px; border-top: 1px solid var(--line); }
.done-reminders svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

.it-block { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; text-align: left; max-width: 640px; margin: 60px auto 0; padding: 24px 28px 24px 10px; border-radius: 26px; background: linear-gradient(165deg, #12273a, #0c0e11 75%); border: 1px solid var(--line); }
.it-block img { width: 150px; mix-blend-mode: screen; }
.it-block h2 { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.02em; }
.it-block p { color: var(--muted); margin: 8px 0 12px; font-size: 0.95rem; }

/* ---------- Integraciones ---------- */

.constel { position: relative; width: min(1000px, 100%); aspect-ratio: 2.1 / 1; margin: 60px auto 0; }
.constel-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constel-lines line { stroke: rgba(127, 211, 255, 0.55); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; opacity: 0.15; animation: lineOn 6s ease-in-out infinite; animation-delay: calc(var(--d) * 0.45s); }
.c-tile { position: absolute; transform: translate(-50%, -50%); padding: 8px 14px 8px 8px; font-size: 0.78rem; animation: tileOn 6s ease-in-out infinite; animation-delay: calc(var(--d) * 0.45s); }
.c-tile svg { width: 32px; height: 32px; padding: 7px; }
.constel-core { position: absolute; left: 50%; top: 50%; width: 116px; height: 116px; transform: translate(-50%, -50%); border-radius: 32px; display: grid; place-items: center; background: linear-gradient(145deg, #1b2027, #0b0d10); border: 1px solid rgba(127, 211, 255, 0.4); box-shadow: 0 0 60px rgba(50, 147, 206, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.constel-core img { width: 56px; }
@keyframes lineOn { 0%, 100% { opacity: 0.15; } 12%, 30% { opacity: 1; } }
@keyframes tileOn { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.55); } 12%, 30% { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(127,211,255,.6), 0 0 34px rgba(50,147,206,.6); } }

.base-sec { padding-top: 20px; }
.base-card { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(20px, 4vw, 50px); align-items: center; padding: clamp(24px, 4vw, 50px); border-radius: 36px; background: linear-gradient(160deg, rgba(127, 211, 255, 0.16), rgba(50, 147, 206, 0.06) 40%, #0c0e11 80%); border: 1px solid rgba(127, 211, 255, 0.22); }
.base-card img { mix-blend-mode: screen; width: 100%; max-width: 380px; margin: 0 auto; }
.keys.left { justify-content: flex-start; margin-top: 26px; }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.cat { display: flex; flex-direction: column; padding: 24px; border-radius: 26px; background: linear-gradient(165deg, #16191e, #0c0e11); border: 1px solid rgba(255, 255, 255, 0.08); }
.cat header { display: flex; align-items: center; gap: 12px; }
.cat-ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: linear-gradient(145deg, #4aaee6, #1d6fa5); color: #fff; box-shadow: 0 0 20px rgba(50, 147, 206, 0.4); flex: none; }
.cat h3 { font-size: 1.15rem; font-weight: 400; color: #fff; flex: 1; }
.count { font-size: 0.8rem; color: var(--faint); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
.mcps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.mcps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); }
.mcp-ic { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: rgba(50, 147, 206, 0.16); color: var(--cyan); flex: none; }
.mcps b { display: block; font-weight: 500; font-size: 0.93rem; color: #fff; }
.mcps span { display: block; font-size: 0.83rem; color: var(--muted); }
.cat-q { margin-top: auto; padding-top: 18px; color: #a8dcf8; font-size: 0.9rem; font-style: italic; }

.small-final { padding-bottom: clamp(90px, 11vw, 140px); }
.small-final .display-md { max-width: 20ch; }

/* ---------- Seguridad ---------- */

.sec-hero { text-align: left; }
.sec-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.sec-hero .display, .sec-hero .lead { margin-inline: 0; }
.shield { position: relative; }
.shield img:first-child { width: 100%; max-width: 440px; margin: 0 auto; mix-blend-mode: screen; }
.shield-mark { position: absolute; left: 50%; top: 47%; width: 20%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 18px rgba(127, 211, 255, 0.9)); }

.arch { display: grid; grid-template-columns: 1fr 60px 1.15fr 60px 1.3fr; align-items: center; margin-top: 54px; }
.node { position: relative; display: grid; gap: 4px; justify-items: start; padding: 20px; border-radius: 22px; background: linear-gradient(165deg, #16191e, #0c0e11); border: 1px solid rgba(255, 255, 255, 0.09); }
.node b { font-weight: 500; color: #fff; }
.node span { font-size: 0.86rem; color: var(--muted); }
.node em { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-style: normal; font-size: 0.82rem; color: var(--cyan); padding: 6px 10px; border-radius: 10px; background: rgba(50, 147, 206, 0.14); }
.node em svg { width: 15px; height: 15px; }
.node-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(50, 147, 206, 0.16); color: var(--cyan); margin-bottom: 8px; }
.node.core { border-color: rgba(127, 211, 255, 0.45); box-shadow: 0 0 50px rgba(50, 147, 206, 0.3); background: linear-gradient(165deg, #142a3e, #0c0e11); }
.targets { display: grid; gap: 12px; }
.link { height: 2px; position: relative; overflow: hidden; }
.link i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: flow 0.8s linear infinite; opacity: 0.8; }
@keyframes flow { to { background-position: 24px 0; } }

.g-bento { grid-template-columns: repeat(3, 1fr); }
.g-bento .b-med { min-height: 330px; }
.g-bento .b-small { min-height: 220px; }
.b-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, #4aaee6, #1d6fa5); box-shadow: 0 0 24px rgba(50, 147, 206, 0.45); margin-bottom: auto; }
.b-ic svg { width: 26px; height: 26px; color: #fff; }

.faqs { display: grid; gap: 12px; margin-top: 40px; }
.faq { border-radius: 18px; background: linear-gradient(165deg, #15181c, #0c0e11); border: 1px solid rgba(255, 255, 255, 0.08); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 400; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--cyan); transition: transform 0.3s var(--ease); }
.faq[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); }
.faq-contact { text-align: center; color: var(--muted); margin-top: 28px; }
.faq-contact a { color: var(--cyan); }

/* ---------- Legal ---------- */

.legal-sec { padding: calc(var(--header-h) + 60px) 0 100px; }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 60px; justify-content: center; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; display: grid; gap: 4px; margin-top: 46px; }
.legal-nav a { padding: 9px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.legal-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.legal-nav a[aria-current="page"] { color: #fff; background: rgba(50, 147, 206, 0.16); }
.legal .display-md { font-size: clamp(2rem, 4vw, 3.2rem); }
.draft { display: flex; gap: 10px; align-items: center; margin: 24px 0 10px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 196, 77, 0.1); border: 1px solid rgba(255, 196, 77, 0.35); color: #ffd98a; font-size: 0.9rem; }
.draft svg { width: 18px; height: 18px; flex: none; }
.legal h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; margin: 36px 0 10px; color: #fff; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.72); line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.legal a { color: var(--cyan); }
.legal mark { background: rgba(255, 196, 77, 0.16); color: #ffd98a; border-radius: 4px; padding: 0 4px; }
.legal-date { margin-top: 40px; font-size: 0.85rem; color: var(--faint) !important; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: rgba(255, 255, 255, 0.75); }
.legal th { color: #fff; font-weight: 500; }
.legal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.legal-card { display: grid; gap: 6px; padding: 24px; border-radius: 22px; text-decoration: none; background: linear-gradient(165deg, #16191e, #0c0e11); border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.2s; }
.legal-card:hover { border-color: rgba(127, 211, 255, 0.4); }
.legal-card svg { width: 26px; height: 26px; color: var(--cyan); margin-bottom: 8px; }
.legal-card b { font-weight: 500; color: #fff; }
.legal-card span { color: var(--muted); font-size: 0.9rem; }

.nf .done-orb { width: clamp(140px, 18vw, 200px); }
.nf .cta-row { margin-top: 30px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr 1fr; }
  .arch { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin-inline: auto; }
  .link { width: 2px; height: 40px; margin: 0 auto; }
  .link i { background: repeating-linear-gradient(180deg, var(--cyan) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation-name: flowY; }
  @keyframes flowY { to { background-position: 0 24px; } }
  .g-bento { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 0; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; margin: 0 0 20px; }
}

@media (max-width: 820px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-aside { position: static; padding-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .booking-foot .btn { width: 100%; }
  .sec-hero-grid { grid-template-columns: 1fr; }
  .shield { order: -1; width: min(260px, 70%); margin: 0 auto; }
  .base-card { grid-template-columns: 1fr; text-align: center; }
  .base-card img { max-width: 220px; }
  .keys.left { justify-content: center; }
  .constel { aspect-ratio: 1 / 1.05; margin-top: 40px; }
  .c-tile { padding: 7px; }
  .c-tile span { display: none; }
  .constel-core { width: 88px; height: 88px; border-radius: 26px; }
  .constel-core img { width: 42px; }
  .it-block { grid-template-columns: 1fr; text-align: center; padding: 20px; justify-items: center; }
  .it-block img { width: 120px; }
  .legal-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .catalog, .g-bento { grid-template-columns: 1fr; }
  .day { padding: 8px 2px; }
  .day b { font-size: 1.05rem; }
}
