/* LUCA by ERP Office IA — hoja de estilos de la web pública */
:root {
  --night: #050d22;
  --navy: #07142e;
  --navy-2: #0c1f45;
  --blue: #1f6bff;
  --blue-glow: #2d8cff;
  --cyan: #7cc4ff;
  --gold: #e2b85c;
  --gold-2: #f2cf7e;
  --cream: #f7f3ea;
  --paper: #fdfbf6;
  --ink: #0f1b33;
  --muted: #5c6880;
  --line: #e4dfd2;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --wrap: 1180px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 26px; border-radius: 999px; font: 600 15px var(--display); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1405; box-shadow: 0 10px 30px -10px #e2b85c99; }
.btn-gold:hover { box-shadow: 0 14px 36px -10px #e2b85ccc; }
.btn-ghost { color: #fff; border-color: #ffffff40; background: #ffffff0a; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: #07142ee6; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 #ffffff14; }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-icon { width: 40px; height: 34px; stroke: var(--gold); stroke-width: 2.4; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font: 700 24px var(--display); letter-spacing: .08em; }
.brand-text small { font: 600 9px var(--display); letter-spacing: .14em; color: var(--gold); margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.btn) { color: #d6deee; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.site-nav > a:not(.btn):hover { color: var(--gold); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(ellipse 70% 60% at 72% 40%, #123a8a 0%, transparent 70%), linear-gradient(180deg, var(--night), var(--navy) 60%, var(--navy-2)); color: #fff; padding: 140px 0 48px; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -120px; top: -40px; background: radial-gradient(circle, #2d8cff40, transparent 65%); filter: blur(10px); z-index: -1; pointer-events: none; }
.hero-glow-2 { left: -260px; right: auto; top: auto; bottom: -260px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid #e2b85c55; border-radius: 999px; font: 600 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); background: #e2b85c12; margin-bottom: 26px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px #3ee08f2b; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #3ee08f10; } }
.hero h1 { font-size: clamp(44px, 5.4vw, 72px); margin-bottom: 24px; }
.lede { font-size: 18px; color: #c4cfe4; max-width: 540px; line-height: 1.75; }
.lede strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #b7c3da; font-size: 14px; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points svg { width: 20px; height: 20px; flex: none; stroke: var(--gold); stroke-width: 2.4; padding: 3px; border-radius: 50%; background: #e2b85c1c; }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.portrait-ring { position: relative; width: min(420px, 82%); aspect-ratio: 1; border-radius: 50%; padding: 6px; background: conic-gradient(from 200deg, #2d8cff, #7cc4ff, #e2b85c, #2d8cff); box-shadow: 0 0 80px #2d8cff66, 0 0 0 14px #2d8cff12, 0 0 0 30px #2d8cff08; }
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.portrait-ring::after { content: ""; position: absolute; inset: -46px; border-radius: 50%; border: 1px dashed #7cc4ff40; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chat-card { position: relative; z-index: 2; margin: -70px 0 0 -120px; width: min(330px, 100%); padding: 16px; border-radius: var(--radius); background: #0b1d43d9; border: 1px solid #7cc4ff40; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 60px -18px #000c, inset 0 1px 0 #ffffff14; font-size: 14px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #ffffff14; }
.chat-head b { display: block; font: 700 13px var(--display); letter-spacing: .08em; }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #9fb0cf; }
.chat-head .dot { width: 6px; height: 6px; box-shadow: none; }
.chat-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.bubble { margin: 0 0 8px; padding: 9px 13px; border-radius: 14px; max-width: 88%; line-height: 1.45; }
.bubble-luca { background: #ffffff12; border-bottom-left-radius: 4px; }
.bubble-user { background: linear-gradient(180deg, #2d8cff, #1f6bff); margin-left: auto; border-bottom-right-radius: 4px; min-height: 2.35em; }
.bubble-user:empty { visibility: hidden; }
.bubble-answer { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.bubble-answer.is-visible { opacity: 1; transform: none; }
.chat-input { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 7px 7px 7px 14px; border-radius: 999px; background: #ffffff0d; border: 1px solid #ffffff14; color: #8d9cbb; font-size: 13px; }
.mic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 20px #2d8cffaa; }
.mic svg { width: 16px; height: 16px; }
.chat-note { display: block; margin-top: 8px; text-align: right; font-size: 10px; color: #7c8cab; }

.trust-bar { list-style: none; margin: 64px 0 0; padding: 24px 0 0; border-top: 1px solid #ffffff1a; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-bar li { display: flex; align-items: center; gap: 14px; color: #fff; font: 600 14px var(--display); }
.trust-bar svg { width: 40px; height: 40px; flex: none; stroke: var(--cyan); stroke-width: 1.5; }
.trust-bar small { display: block; font: 400 12px var(--sans); color: #92a2c2; margin-top: 2px; }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section-dark { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head-left { text-align: left; margin: 0; }
.section-head h2, .data-copy h2, .luca-copy h2, .contact-copy h2 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 18px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.section-dark .section-head p:not(.eyebrow) { color: #b7c3da; }
.section:not(.section-dark) h2 em { color: #a77d2a; }
.eyebrow { font: 700 12px var(--display); letter-spacing: .18em; text-transform: uppercase; color: #a77d2a; margin-bottom: 16px; }
.section-dark .eyebrow, .contact .eyebrow { color: var(--gold); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px #0f1b330a; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: #e2b85c88; box-shadow: 0 22px 44px -22px #0f1b3340; }
.feature-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--navy), var(--navy-2)); color: var(--cyan); margin-bottom: 22px; box-shadow: 0 8px 22px -8px #1f6bff88; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { color: var(--navy); margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.showcase { padding: 0 0 110px; }
.showcase-frame { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 90px -40px #07142ecc, 0 0 0 1px #07142e14; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 34px 30px; border-radius: var(--radius); background: #ffffff08; border: 1px solid #ffffff17; }
.step-num { display: block; font: italic 600 54px/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 10px; }
.steps p { margin: 0; color: #b7c3da; font-size: 15px; }

.data-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.data-copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 420px; }
.data-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.data-list li { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.data-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid #e2b85c88; color: #a77d2a; }
.data-icon svg { width: 22px; height: 22px; }
.data-list h3 { color: var(--navy); margin-bottom: 6px; }
.data-list p { margin: 0; color: var(--muted); font-size: 15px; }

.sectors { background: var(--cream); padding: 84px 0; text-align: center; border-block: 1px solid var(--line); }
.sectors h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 32px; color: var(--navy); }
.sectors h2 em { color: #a77d2a; }
.sector-list { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.sector-list li { padding: 12px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 500 15px var(--display); color: var(--navy); }
.sector-list .is-first { background: var(--navy); color: #fff; border-color: var(--navy); display: inline-flex; align-items: center; gap: 10px; }
.sector-list small { font: 600 10px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #1a1405; background: var(--gold); padding: 3px 9px; border-radius: 999px; }
.sectors-note { margin: 28px auto 0; max-width: 620px; color: var(--muted); }

.luca { overflow: hidden; }
.luca-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.luca-photo { position: relative; max-width: 460px; justify-self: center; }
.luca-photo img { border-radius: 50%; box-shadow: 0 0 0 1px #e2b85c66, 0 0 0 18px #e2b85c0d, 0 0 90px #2d8cff55; }
.luca-seal { position: absolute; right: 0; bottom: 18px; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: #1a1405; font: 600 11px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 16px 40px -12px #000a; transform: rotate(-10deg); }
.luca-seal b { font: 600 32px/1 var(--serif); letter-spacing: 0; }
.luca-copy p:not(.eyebrow) { color: #c4cfe4; font-size: 17px; line-height: 1.8; }
.luca-copy strong { color: #fff; }
blockquote { margin: 30px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); font: italic 500 26px/1.35 var(--serif); color: var(--gold-2); }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: start; }
.section-head-left p:not(.eyebrow) a { color: #a77d2a; font-weight: 600; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 4px; position: relative; font: 600 16px var(--display); color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: #a77d2a; font: 400 20px/1 var(--sans); transition: rotate .25s, background .25s; }
.faq-list details[open] summary::after { rotate: 45deg; background: var(--cream); }
.faq-list details p { margin: 0; padding: 0 44px 22px 4px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; padding: 110px 0; color: #fff; background: radial-gradient(ellipse 60% 70% at 20% 80%, #123a8a, transparent 70%), linear-gradient(180deg, var(--navy-2), var(--night)); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: #c4cfe4; font-size: 17px; max-width: 420px; margin-bottom: 28px; }
.contact-form { background: var(--paper); color: var(--ink); padding: 34px; border-radius: 22px; box-shadow: 0 40px 80px -30px #000c; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 16px; font: 600 13px var(--display); color: var(--navy); }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #d8d3c6; border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px var(--sans); transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px #1f6bff22; }
.contact-form [aria-invalid=true] { border-color: #b3261e !important; }
.field-error { display: block; color: #b3261e; font: 400 12px var(--sans); }
.field-error:not(:empty) { margin-top: 5px; }
.consent { display: grid !important; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font: 400 14px var(--sans) !important; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); }
.consent .field-error { grid-column: 2; }
.consent a, .legal-note a { color: #a77d2a; }
.legal-note { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin: -4px 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 14px; line-height: 1.55; }
.form-status.ok { color: #1f7a4a; }
.form-status.error { color: #b3261e; }

/* ---------- Pie ---------- */
.site-footer { background: var(--night); color: #9fb0cf; padding: 56px 0 26px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding-bottom: 30px; border-bottom: 1px solid #ffffff14; }
.footer-claim { margin: 0; font: italic 500 20px/1.3 var(--serif); color: #d6deee; }
.footer-links { margin-left: auto; display: flex; gap: 24px; }
.footer-links a, .footer-bottom a { color: #c4cfe4; text-decoration: none; font-size: 14px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 13px; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav { gap: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .luca-grid, .data-grid, .faq-grid, .contact-grid { gap: 48px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 70px; }
  .header-inner { height: 68px; }
  .site-header { background: #07142ee6; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .menu-toggle { display: grid; gap: 5px; padding: 12px 8px; background: none; border: 0; cursor: pointer; }
  .menu-toggle span { width: 24px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; background: var(--navy); border-top: 1px solid #ffffff14; box-shadow: 0 20px 40px #0008; }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 0; font-size: 16px; border-bottom: 1px solid #ffffff10; }
  .site-nav .btn { margin-top: 16px; padding: 14px; font-size: 15px; }

  .hero { padding: 108px 0 40px; }
  .hero-inner, .luca-grid, .data-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 24px; }
  .chat-card { margin-left: 0; margin-top: -56px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .showcase { padding-bottom: 80px; }
  .luca-photo { max-width: 340px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .brand-text b { font-size: 21px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .lede { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .portrait-ring::after { inset: -22px; }
  .trust-bar { grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 44px; }
  .trust-bar li { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; }
  .trust-bar svg { width: 32px; height: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .showcase-frame { border-radius: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 18px; }
  .contact { padding: 80px 0; }
  .sector-list li { font-size: 14px; padding: 10px 16px; }
  blockquote { font-size: 22px; }
  .footer-links { margin-left: 0; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Páginas legales ---------- */
.legal-page .site-header { background: var(--navy); }
.legal { max-width: 820px; margin: 0 auto; padding: 130px 24px 90px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); color: var(--navy); margin-bottom: 8px; }
.legal h2 { font-size: 28px; color: var(--navy); margin: 44px 0 12px; }
.legal p, .legal li { color: #34405a; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal .todo { background: #fff4d6; border: 1px dashed #c99a2e; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal a { color: #a77d2a; }
