/* ═══════════════════════════════════════
   OLVEX — inner.css (páginas internas)
═══════════════════════════════════════ */

/* ── Page Hero ── */
.page-hero { padding: 160px 0 90px; position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; background: radial-gradient(circle, rgba(123,47,255,0.12) 0%, transparent 65%); }
.page-hero .container, .page-hero .eyebrow, .page-hero .page-title, .page-hero .page-sub { position: relative; z-index: 1; }
.page-title { font-size: clamp(44px,6vw,76px); font-weight: 900; line-height: 1.06; letter-spacing: -0.035em; margin: 18px 0 22px; max-width: 700px; }
.page-sub { font-size: 18px; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.8; max-width: 580px; }

/* ── Service Detail ── */
.sd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sd-grid-reverse { direction: rtl; }
.sd-grid-reverse > * { direction: ltr; }
.sd-content .badge { margin-bottom: 16px; }
.sd-title { font-size: clamp(34px,4vw,52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin: 12px 0 18px; }
.sd-desc { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 28px; }

/* ── Web mockup ── */
.sd-mockup { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-card2); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar span:nth-child(1) { background: rgba(239,68,68,.5); }
.mock-bar span:nth-child(2) { background: rgba(234,179,8,.5); }
.mock-bar span:nth-child(3) { background: rgba(34,197,94,.5); }
.mock-nav { height: 36px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); margin: 0; }
.mock-hero { padding: 28px 20px; }
.mock-h1 { height: 16px; background: linear-gradient(90deg,rgba(123,47,255,.4),rgba(47,107,255,.4)); border-radius: 4px; width: 70%; margin-bottom: 10px; }
.mock-h2 { height: 10px; background: rgba(255,255,255,0.1); border-radius: 4px; width: 50%; margin-bottom: 18px; }
.mock-btn { height: 28px; width: 110px; background: var(--grad); border-radius: 100px; opacity: .7; }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 0 16px 20px; }
.mock-card { height: 60px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; }

/* ── Ecommerce mockup ── */
.ecom-mock { padding: 0; }
.ecom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.ecom-prod { height: 80px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; }
.ecom-cart { padding: 14px; border-top: 1px solid var(--border); }
.ecom-cart-item { height: 28px; background: rgba(255,255,255,0.04); border-radius: 6px; margin-bottom: 10px; }
.ecom-total { height: 14px; background: rgba(123,47,255,0.2); border-radius: 4px; width: 50%; margin-bottom: 12px; }
.ecom-pay-btn { height: 32px; background: var(--grad); border-radius: 100px; opacity: .8; }

/* ── Flow diagram ── */
.flow-diagram { display: flex; flex-direction: column; align-items: center; gap: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.flow-node { padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; text-align: center; line-height: 1.4; border: 1px solid var(--border); }
.flow-node small { font-size: 11px; color: rgba(255,255,255,0.4); font-weight: 400; display: block; margin-top: 2px; }
.fn-trigger   { background: rgba(123,47,255,0.15); border-color: rgba(123,47,255,0.3); }
.fn-action    { background: rgba(47,107,255,0.12); border-color: rgba(47,107,255,0.3); }
.fn-condition { background: rgba(234,179,8,0.1);   border-color: rgba(234,179,8,0.3); }
.fn-success   { background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.3); font-size: 12px; padding: 10px 14px; }
.fn-followup  { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.25); font-size: 12px; padding: 10px 14px; }
.flow-arrow { color: rgba(123,47,255,0.5); font-size: 18px; line-height: 1.6; }
.flow-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; margin-top: 8px; }
.flow-branch { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fb-label { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 600; letter-spacing: 0.06em; }

/* ── Chat mockup ── */
.chat-mockup { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-width: 360px; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--bg-card2); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; }
.chat-dot.green { background: #22c55e; animation: pulse 2s ease-in-out infinite; }
.chat-messages { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.chat-msg.bot { background: var(--bg-card2); border: 1px solid var(--border); color: rgba(255,255,255,0.75); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.typing { display: flex; gap: 5px; align-items: center; padding: 14px; }
.chat-msg.typing span { width: 6px; height: 6px; background: rgba(255,255,255,0.4); border-radius: 50%; animation: pulse 1.2s ease-in-out infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .4s; }

/* ── Dashboard mockup ── */
.dashboard-mock { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; padding: 20px; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-title { height: 14px; width: 120px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.dash-actions { display: flex; gap: 8px; }
.dash-actions div { width: 60px; height: 24px; background: rgba(255,255,255,0.05); border-radius: 6px; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ds-card { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 12px; }
.ds-num { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.ds-label { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 4px; }
.dash-chart { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 12px; }
.dc-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.dc-bars div { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; opacity: 0.7; }

/* ── Proceso (proceso.html) ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--purple), var(--blue), transparent); }
.tl-item { position: relative; margin-bottom: 64px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -47px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 20px rgba(123,47,255,0.5); }
.tl-num { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--purple); text-transform: uppercase; margin-bottom: 10px; }
.tl-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.tl-desc { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 20px; }

/* ── Proyectos ── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t), transform var(--t); }
.project-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.project-thumb { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; overflow: hidden; }
.project-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(10,10,15,0.8)); }
.project-info { padding: 24px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.project-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.project-info p  { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 16px; }
.project-result { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(123,47,255,0.9); font-weight: 500; }

/* ── Contacto ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.ci-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--purple-dim); border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.ci-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
.ci-value { font-size: 15px; color: rgba(255,255,255,0.8); }

/* ── Legal (términos/privacidad) ── */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin: 40px 0 14px; color: #fff; }
.legal-content h3 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; color: rgba(255,255,255,0.8); }
.legal-content p  { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.85; margin-bottom: 16px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.85; margin-bottom: 8px; list-style: disc; }
.legal-date { font-size: 13px; color: rgba(255,255,255,0.3); margin-bottom: 48px; padding: 12px 16px; background: rgba(255,255,255,0.04); border-left: 2px solid var(--purple); border-radius: 0 8px 8px 0; }

/* ── CTA section sm ── */
.cta-section-sm { padding: 90px 0; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .sd-grid, .sd-grid-reverse { grid-template-columns: 1fr; gap: 48px; direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: 1fr; }
}
