/* Miguel López - Landing estática para Cloudflare Pages */
:root {
  --bg: #090d0c;
  --bg-alt: #0c1110;
  --panel: #101614;
  --panel-2: #121917;
  --border: rgba(255,255,255,.08);
  --text: #f4f7f5;
  --muted: #aab5b0;
  --muted-2: #7f8b86;
  --green: #22c55e;
  --green-2: #28d969;
  --green-dark: #061209;
  --radius: 1.35rem;
  --container: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { position: relative; padding: 96px 0; }
.compact { padding-top: 18px; padding-bottom: 54px; }
.alternate { background: var(--bg-alt); border-block: 1px solid rgba(255,255,255,.055); }
.anchor-offset { scroll-margin-top: 76px; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9,13,12,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.header-inner {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-logo {
  width: 46px; height: 46px; display: block; object-fit: cover; border-radius: 50%;
  flex: 0 0 46px;
}
.brand-mark {
  width: 41px; height: 41px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid rgba(34,197,94,.24);
  color: var(--green); background: rgba(34,197,94,.09);
  font-size: .88rem; font-weight: 700;
}
.brand strong { display: block; font-size: .92rem; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; font-size: .69rem; color: var(--muted-2); }
.nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: .9rem; }
.nav a:hover, .footer a:hover, .footer button:hover { color: white; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 13px; padding: 0 21px;
  font-weight: 650; font-size: .91rem; border: 1px solid transparent;
  transition: transform .2s, background-color .2s, border-color .2s;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  color: var(--green-dark); background: var(--green);
  box-shadow: 0 12px 38px rgba(34,197,94,.18);
}
.button.primary:hover { background: var(--green-2); }
.button.secondary {
  color: var(--text); border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.04);
}
.button.secondary:hover { background: rgba(255,255,255,.08); }
.menu-button, .mobile-nav { display: none; }

.hero { overflow: hidden; padding-top: 77px; padding-bottom: 90px; }
.glow {
  position: absolute; left: 50%; top: 55px; transform: translateX(-50%);
  width: min(700px, 80vw); height: 450px; border-radius: 50%;
  background: rgba(34,197,94,.06); filter: blur(95px); pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 1.08fr .92fr; gap: 56px;
}
.tag {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 28px;
  border: 1px solid rgba(34,197,94,.24); background: rgba(34,197,94,.06);
  color: #73e59d; border-radius: 99px; padding: 10px 16px;
  font-size: .76rem; font-weight: 600;
}
.tag span { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
h1 {
  margin: 0; max-width: 690px; font-size: clamp(2.5rem, 4.7vw, 3.7rem);
  line-height: 1.08; letter-spacing: -.055em; font-weight: 680;
}
.lead {
  max-width: 630px; color: #b2bbb7; font-size: clamp(1rem, 1.3vw, 1.11rem);
  line-height: 1.72; margin: 25px 0 16px;
}
.clarifier {
  display: inline-flex; margin: 0; max-width: 650px; padding: 13px 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px; color: #d6ddda; font-size: .91rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.microtext { margin: 20px 0 0; color: #899590; font-size: .88rem; }

.phone-wrap { width: 100%; max-width: 388px; margin: 0 auto; position: relative; }
.phone-wrap::before {
  content: ""; position: absolute; inset: -32px; border-radius: 50%;
  background: rgba(34,197,94,.1); filter: blur(42px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; padding: 13px; border-radius: 32px;
  border: 1px solid rgba(255,255,255,.1); background: #121917;
  box-shadow: 0 20px 70px rgba(0,0,0,.42);
}
.phone > * { background: #0c1210; }
.chat-header {
  display: flex; align-items: center; gap: 12px; padding: 18px 17px;
  border-radius: 22px 22px 0 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.chat-avatar {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(34,197,94,.13); color: var(--green); font-size: 1.25rem;
}
.chat-header strong { display: block; font-size: .91rem; }
.chat-header small { display: block; color: var(--muted-2); font-size: .73rem; margin-top: 3px; }
.chat-icon { color: var(--green); margin-left: auto; font-size: 1.4rem; }
.chat { padding: 20px 16px 12px; }
.bubble {
  width: max-content; max-width: 90%; font-size: .87rem; line-height: 1.55;
  padding: 12px 13px; margin: 0 0 12px; border-radius: 18px;
}
.bubble.bot { background: #19231f; color: #e8efec; border-top-left-radius: 6px; }
.bubble.user { margin-left: auto; background: #115e3b; color: white; border-top-right-radius: 6px; max-width: 73%; }
.chat-input {
  margin: 0 16px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.09);
  color: #78847f; font-size: .76rem; padding: 9px 9px 9px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.send {
  display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%;
  background: var(--green); color: var(--green-dark);
}
.phone-caption { text-align: center; color: #899590; font-size: .74rem; margin: 16px 0 0; position: relative; z-index: 1; }

.section-heading { text-align: center; max-width: 790px; margin: 0 auto 47px; }
.eyebrow {
  margin: 0 0 14px; font-size: .7rem; text-transform: uppercase;
  font-weight: 680; letter-spacing: .29em; color: var(--green);
}
.eyebrow.muted { color: var(--muted-2); }
h2 {
  margin: 0; font-size: clamp(1.95rem, 3.4vw, 2.48rem);
  line-height: 1.18; letter-spacing: -.045em; font-weight: 650;
}
.section-heading > p:last-child,
.demo-copy > p:not(.eyebrow):not(.legal-small),
.about-copy > p:not(.eyebrow),
.cta-box > p {
  margin: 19px auto 0; color: var(--muted); line-height: 1.75; max-width: 670px;
}
.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  min-height: 165px; padding: 27px 25px; border-radius: var(--radius);
  border: 1px solid var(--border); background: rgba(255,255,255,.024);
}
.card h3 { margin: 0 0 13px; font-size: 1.06rem; font-weight: 600; }
.card p { margin: 0; color: #9ea9a5; font-size: .9rem; line-height: 1.65; }
.card .icon { display: block; margin-bottom: 18px; color: var(--green); font-size: 1.35rem; }
.statement {
  margin: 39px auto 0; max-width: 820px; text-align: center;
  color: #e7ecea; font-size: 1.12rem; font-weight: 540; line-height: 1.55;
}

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: 19px; padding: 21px 18px 23px;
}
.step-icon {
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 20px;
  border-radius: 10px; color: var(--green); background: rgba(34,197,94,.1); font-size: 1.1rem;
}
.step small {
  display: block; margin: 0 0 9px; color: #64716c; text-transform: uppercase;
  letter-spacing: .2em; font-size: .64rem;
}
.step h3 { margin: 0 0 12px; font-size: 1rem; }
.step p { margin: 0; color: #98a49f; line-height: 1.6; font-size: .84rem; }
.highlight {
  margin: 38px auto 0; max-width: 860px; padding: 22px 25px; text-align: center;
  border-radius: 18px; color: #d5deda; border: 1px solid rgba(34,197,94,.15);
  background: rgba(34,197,94,.045); line-height: 1.55;
}

.demo-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; }
.demo-list {
  padding: 36px 34px; border-radius: 27px; border: 1px solid rgba(34,197,94,.2);
  background: linear-gradient(135deg, rgba(34,197,94,.095), transparent);
}
.whatsapp-symbol { color: var(--green); font-size: 2.2rem; margin-bottom: 22px; }
.demo-list h3 { margin: 0 0 27px; font-size: 1.55rem; letter-spacing: -.03em; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px; }
.check-list li { position: relative; padding-left: 28px; color: #cbd4d0; font-size: .9rem; line-height: 1.5; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.demo-copy .button { margin-top: 31px; }
.legal-small { margin: 20px 0 0; max-width: 550px; font-size: .76rem; color: #7e8985; line-height: 1.6; }

.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 960px; margin: 0 auto; }
.service-item {
  position: relative; padding: 16px 20px 16px 49px; min-height: 54px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.024); color: #d4dcd8; font-size: .9rem;
}
.service-item::before {
  content: "✓"; position: absolute; left: 21px; top: 16px; color: var(--green); font-weight: 700;
}
.statement-box {
  max-width: 890px; margin: 38px auto 0; padding: 25px;
  text-align: center; color: #d2dad6; line-height: 1.58;
  background: var(--panel); border: 1px solid rgba(255,255,255,.1); border-radius: 17px;
}

.about-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 57px; max-width: 1090px; }
.portrait {
  width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid rgba(255,255,255,.09); border-radius: 27px;
  background: #101614;
}
.portrait-photo {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: center 24%;
}
.about-copy > p:not(.eyebrow) { margin-left: 0; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 32px; }
.principles span {
  border: 1px solid rgba(255,255,255,.1); background: var(--panel);
  border-radius: 12px; padding: 15px 13px; color: #dae2de; font-size: .83rem; font-weight: 520;
}

.faq-width { max-width: 790px; }
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 17px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025); padding: 0 20px;
}
.faq summary {
  list-style: none; padding: 20px 34px 20px 0; font-size: .97rem; font-weight: 520;
  cursor: pointer; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "⌄"; position: absolute; right: 0; top: 18px;
  color: #96a39e; font-size: 1.3rem; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p {
  border-top: 1px solid rgba(255,255,255,.07);
  margin: 0; padding: 15px 0 20px; color: #a8b2ae; font-size: .89rem; line-height: 1.65;
}

.support {
  padding: 34px 38px; border: 1px solid rgba(255,255,255,.08);
  background: var(--panel); border-radius: 25px;
}
.support > p:not(.eyebrow) { color: #a4afab; font-size: .9rem; margin: 0 0 26px; }
.support-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 22px; }
.support-list span {
  border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
  padding: 14px 16px; color: #bec8c3; font-size: .86rem;
}
.support-list span::before { content: "✓"; color: var(--green); margin-right: 11px; }
.support small { color: #7d8884; font-size: .75rem; line-height: 1.55; }

.final-cta { padding-top: 30px; }
.cta-box {
  text-align: center; padding: 66px 40px; border-radius: 28px;
  border: 1px solid rgba(34,197,94,.2);
  background: linear-gradient(135deg, #14241d, #0b100f);
}
.shield {
  display: grid; place-items: center; margin: 0 auto 23px; color: var(--green);
  border: 2px solid var(--green); border-radius: 50%; height: 35px; width: 35px;
}
.cta-box h2 { max-width: 760px; margin: 0 auto; }
.cta-box .button { margin-top: 32px; }
.cta-box small { display: block; margin-top: 23px; color: #8e9b95; }

.footer { border-top: 1px solid rgba(255,255,255,.07); color: #87928d; font-size: .85rem; padding: 32px 0; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-top strong { color: #cad3ce; font-size: .9rem; }
.footer-top p { margin: 6px 0 0; font-size: .74rem; }
.footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; font-size: .77rem; }
.footer nav button {
  background: transparent; color: inherit; border: 0; padding: 0;
}
.footer-legal {
  display: grid; gap: 14px; border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 22px; margin-top: 25px; color: #66716d; font-size: .72rem; line-height: 1.65;
}
.footer-legal p { max-width: 930px; margin: 0; }

.floating-demo {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 35;
  min-height: 49px; padding: 0 17px; border: 0; border-radius: 99px;
  font-weight: 650; color: var(--green-dark); background: var(--green);
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
}

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.modal-panel {
  position: relative; width: min(520px, 100%); max-height: 90vh; overflow-y: auto;
  border-radius: 26px; border: 1px solid rgba(255,255,255,.1); background: #121917;
  box-shadow: 0 25px 80px rgba(0,0,0,.55); padding: 32px;
}
.modal-panel h2 { font-size: 1.72rem; margin: 0 38px 15px 0; }
.modal-panel > p:not(.eyebrow):not(.privacy-date) { color: var(--muted); line-height: 1.65; }
.modal-close {
  position: absolute; top: 19px; right: 20px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: transparent; color: #aab5b0; font-size: 1.55rem;
}
.modal-close:hover { background: rgba(255,255,255,.08); color: white; }
.message-preview {
  margin: 24px 0; padding: 18px; border-radius: 16px;
  border: 1px solid rgba(34,197,94,.2); background: rgba(34,197,94,.055);
}
.message-preview small {
  display: block; margin-bottom: 9px; font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 650; color: var(--green);
}
.message-preview p { margin: 0; color: #dde5e1; font-size: .9rem; line-height: 1.55; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions > * { flex: 1; }
.privacy-panel { width: min(760px, 100%); padding: 35px 38px; }
.privacy-date { color: var(--muted-2); font-size: .75rem; margin: 0 0 27px; }
.privacy-panel h3 {
  font-size: .96rem; margin: 26px 0 8px; color: white; font-weight: 600;
}
.privacy-panel h3:first-of-type { margin-top: 0; }
.privacy-panel h3 + p, .privacy-panel h3 ~ p {
  color: #b8c2be; line-height: 1.67; font-size: .88rem;
}
.privacy-button { margin-top: 27px; width: 100%; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(13px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .desktop-nav, .desktop-cta { display: none; }
  .menu-button {
    width: 43px; height: 43px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
    background: transparent; padding: 12px; display: flex; flex-direction: column; justify-content: space-between;
  }
  .menu-button span { height: 2px; background: #dce4e0; border-radius: 3px; width: 100%; }
  .mobile-nav {
    padding: 13px 20px 21px; background: var(--bg); border-top: 1px solid rgba(255,255,255,.08);
    flex-direction: column; gap: 16px; color: #c9d1cd; font-size: .93rem;
  }
  .mobile-nav:not([hidden]) { display: flex; }
  .hero-grid, .demo-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 55px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps .step:last-child { grid-column: span 2; }
  .about-grid { max-width: 730px; }
  .portrait { max-width: 365px; width: 100%; margin: 0 auto; }
}
@media (max-width: 740px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .section { padding: 71px 0; }
  .hero { padding-top: 53px; padding-bottom: 72px; }
  .cards.three, .steps, .service-list, .principles, .support-list { grid-template-columns: 1fr; }
  .steps .step:last-child { grid-column: auto; }
  .section-heading { margin-bottom: 34px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .clarifier { line-height: 1.6; }
  .demo-list, .support, .cta-box { padding: 28px 23px; }
  .about-copy h2 { margin-bottom: 10px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .floating-demo { display: inline-flex; align-items: center; gap: 8px; }
  .modal-panel { padding: 27px 22px; }
  .privacy-panel { padding: 27px 22px; }
  .modal-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
