/* Web Systems 3.1 · Página Inicio
 * Este módulo se carga de forma condicional desde functions.php.
 */

/* Home hero */
.home-hero { position: relative; min-height: 590px; display: flex; align-items: center; overflow: hidden; color: white; background: #05070a; }
.home-hero:after { content: ""; position: absolute; width: 700px; height: 700px; right: -150px; top: -180px; border-radius: 50%; background: rgba(30,76,255,.16); filter: blur(110px); }
.home-hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(380px, .77fr) minmax(0, 1.35fr); gap: 36px; align-items: center; padding: 42px 0; }
.home-hero-copy { position: relative; z-index: 2; }
.home-hero h1 { max-width: 610px; margin: 0; font-size: clamp(47px, 4.25vw, 68px); line-height: .99; letter-spacing: -.058em; }
.home-hero h1 em { display: block; color: #5b82ff; font-style: normal; }
.home-hero-copy > p { max-width: 575px; margin: 23px 0 0; color: #aeb5c2; font-size: 16px; line-height: 1.65; }
.hero-actions { margin-top: 28px; }
.home-hero .button-ghost { color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.03); }
.hero-assurances { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 25px; color: #868f9d; font-size: 9px; }
.hero-assurances span { display: flex; align-items: center; gap: 6px; }
.hero-assurances svg { color: #6e8cff; }
.home-hero-art { position: relative; z-index: 1; min-width: 0; margin-right: -72px; }
.hero-art-frame { position: relative; }
.hero-art-frame img { position: relative; z-index: 2; width: 100%; max-height: 500px; display: block; object-fit: contain; }
.hero-art-glow { position: absolute; z-index: 1; width: 68%; height: 55%; left: 18%; top: 23%; border-radius: 50%; background: rgba(35,91,255,.26); filter: blur(65px); }
.hero-art-note { position: absolute; z-index: 3; right: 7%; bottom: 3%; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(18,22,31,.88); box-shadow: 0 17px 40px rgba(0,0,0,.35); backdrop-filter: blur(12px); }
.hero-art-note > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: #9eb0ff; background: rgba(58,92,255,.17); }
.hero-art-note p { display: grid; gap: 2px; margin: 0; }
.hero-art-note b { font-size: 9px; }
.hero-art-note small { color: #7d8694; font-size: 8px; }

.client-rail { position: relative; z-index: 3; overflow: hidden; padding: 42px 0 47px; border-bottom: 1px solid #dce5ee; background: radial-gradient(circle at 88% 24%, rgba(63,159,255,.24), transparent 34%), linear-gradient(112deg, #f6fbff 0%, #eef9ff 58%, #dceeff 100%); }
.client-rail:before { content: ""; position: absolute; width: 420px; height: 190px; left: 18%; bottom: -145px; border-radius: 50%; background: rgba(36,88,255,.12); filter: blur(65px); pointer-events: none; }
.client-rail-heading { position: relative; z-index: 2; display: grid; justify-items: center; gap: 3px; margin-bottom: 26px; padding-inline: 20px; text-align: center; }
.client-rail-heading .eyebrow { margin-bottom: 4px; }
.client-rail-heading p { margin: 0; color: #303642; font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.client-marquee { position: relative; z-index: 2; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.client-marquee-track { width: max-content; display: flex; animation: ws-client-marquee 34s linear infinite; will-change: transform; }
.client-marquee:hover .client-marquee-track, .client-marquee:focus-within .client-marquee-track { animation-play-state: paused; }
.client-logo-group { flex: none; display: flex; align-items: center; gap: clamp(50px, 5vw, 78px); padding-right: clamp(50px, 5vw, 78px); }
.client-logo-group a, .client-logo-group span { width: clamp(135px, 13vw, 190px); height: 58px; display: grid; place-items: center; flex: 0 0 auto; }
.client-logo-group a { transition: transform .22s ease; }
.client-logo-group a:hover, .client-logo-group a:focus-visible { transform: translateY(-3px); }
.client-logo-group img { width: auto; max-width: 155px; max-height: 48px; display: block; object-fit: contain; opacity: .66; filter: grayscale(1) brightness(.18); transition: opacity .22s ease, filter .22s ease; }
.client-logo-group a:hover img, .client-logo-group a:focus-visible img { opacity: 1; filter: grayscale(1) brightness(.08); }
@keyframes ws-client-marquee { to { transform: translateX(-50%); } }

/* Positioning */
.home-positioning { background: var(--paper); }
.positioning-layout { display: grid; grid-template-columns: 1.05fr .7fr; gap: 100px; align-items: end; }
.positioning-copy h2 { max-width: 760px; }
.positioning-detail > p { margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 70px; border: 1px solid var(--line); background: var(--line); }
.promise-grid article { min-height: 250px; padding: 31px; background: var(--paper); }
.promise-grid article > span { color: var(--blue); font-size: 9px; font-weight: 850; }
.promise-grid h3 { margin: 55px 0 12px; font-size: 20px; letter-spacing: -.025em; }
.promise-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.68; }

/* Home solutions */
.solutions-home { background: white; }
.solution-list { border-top: 1px solid var(--line); }
.solution-row { min-height: 132px; display: grid; grid-template-columns: 45px 52px minmax(280px, 1.2fr) minmax(260px, .75fr) 35px; gap: 21px; align-items: center; padding: 18px 10px; border-bottom: 1px solid var(--line); transition: background .25s ease, padding .25s ease; }
.solution-row:hover { padding-inline: 18px; background: #f7f8fb; }
.solution-number { color: #a6abb4; font-size: 9px; font-weight: 800; }
.solution-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #d8deeb; border-radius: 13px; color: var(--blue); background: #f5f7ff; }
.solution-row-main { display: grid; gap: 7px; }
.solution-row-main b { font-size: 20px; letter-spacing: -.025em; }
.solution-row-main small { max-width: 590px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.solution-cases { color: #858b95; font-size: 9px; line-height: 1.7; }
.solution-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: color .2s ease, background .2s ease; }
.solution-row:hover .solution-arrow { color: white; background: var(--blue); border-color: var(--blue); }
.solutions-footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 34px; padding: 21px 24px; border-radius: 14px; background: var(--paper); }
.solutions-footer p { margin: 0; color: var(--muted); font-size: 12px; }

/* Idea bridge */
.idea-bridge { overflow: hidden; color: white; background: var(--ink); }
.idea-bridge:before { content: ""; position: absolute; width: 640px; height: 640px; left: -260px; bottom: -300px; border-radius: 50%; background: rgba(36,88,255,.17); filter: blur(100px); }
.idea-bridge-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 95px; align-items: center; }
.idea-orbit { position: relative; min-height: 470px; }
.idea-orbit > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.idea-orbit > svg path { fill: none; stroke: rgba(67,107,255,.48); stroke-width: 1.2; stroke-dasharray: 5 7; }
.orbit-center { position: absolute; z-index: 2; width: 145px; height: 145px; left: 50%; top: 50%; display: grid; place-items: center; align-content: center; gap: 8px; transform: translate(-50%, -50%); border: 1px solid rgba(91,124,255,.6); border-radius: 50%; background: #101622; box-shadow: 0 0 60px rgba(36,88,255,.27); }
.brand-glyph { font-size: 46px; font-weight: 850; letter-spacing: -.12em; }
.orbit-center small { color: #8490a3; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.orbit-node { position: absolute; z-index: 3; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line-dark); border-radius: 10px; color: #ccd1da; background: rgba(22,27,37,.95); box-shadow: 0 15px 35px rgba(0,0,0,.25); font-size: 9px; }
.orbit-node svg { color: #809bff; }
.node-a { left: 6%; top: 10%; }.node-b { right: 4%; top: 9%; }.node-c { right: 0; bottom: 20%; }.node-d { left: 33%; bottom: 2%; }.node-e { left: 0; bottom: 19%; }
.idea-bridge-copy h2 { margin: 0; font-size: clamp(38px, 4.25vw, 62px); line-height: 1.02; letter-spacing: -.052em; }
.idea-bridge-copy > p { margin: 24px 0 0; color: #9fa7b4; font-size: 15px; line-height: 1.75; }

/* Care and subscriptions preview */
.care-section { background: white; }
.care-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.care-copy { position: sticky; top: 118px; }
.care-copy > p { margin: 24px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.78; }
.care-points { border-top: 1px solid var(--line); }
.care-points article { min-height: 130px; display: grid; grid-template-columns: 55px 1fr; gap: 18px; align-items: center; padding: 24px 6px; border-bottom: 1px solid var(--line); }
.care-points article > b { color: var(--blue); font-size: 9px; }
.care-points h3 { margin: 0 0 7px; font-size: 21px; letter-spacing: -.025em; }
.care-points p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.subscription-preview { overflow: hidden; color: white; background: linear-gradient(115deg, #0a0d13 0%, #101832 60%, #1239bb 120%); }
.subscription-preview:after { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -180px; border-radius: 50%; background: rgba(63,103,255,.35); filter: blur(80px); }
.subscription-preview-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 150px 1fr 235px; gap: 55px; align-items: center; }
.subscription-badge { width: 128px; height: 128px; display: grid; place-items: center; align-content: center; gap: 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #aabcff; background: rgba(255,255,255,.04); }
.subscription-badge span { max-width: 80px; font-size: 7px; font-weight: 850; text-align: center; letter-spacing: .1em; }
.subscription-preview-copy h2 { margin: 0; font-size: clamp(35px, 3.7vw, 52px); line-height: 1.04; letter-spacing: -.05em; }
.subscription-preview-copy p { margin: 20px 0 0; color: #aab2c1; font-size: 13px; line-height: 1.7; }
.subscription-preview-actions { display: grid; gap: 17px; }
.subscription-preview-actions > span { color: #aab2c1; font-size: 9px; text-align: center; }
.subscription-preview-actions b { color: white; }
.process-home { background: var(--paper); }
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 58px; border-top: 1px solid #cfd3da; }
.process-timeline article { position: relative; padding: 36px 26px 0 0; }
.process-timeline article:before { content: ""; position: absolute; width: 11px; height: 11px; left: 0; top: -6px; border: 3px solid var(--paper); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.process-timeline span { color: var(--blue); font-size: 8px; font-weight: 850; }
.process-timeline h3 { margin: 31px 0 9px; font-size: 20px; }
.process-timeline p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

/* Home FAQ */
.home-faq { overflow: hidden; background: radial-gradient(circle at 92% 12%, rgba(61,157,255,.25), transparent 32%), radial-gradient(circle at 10% 88%, rgba(93,184,255,.12), transparent 28%), linear-gradient(115deg, #f6fcff 0%, #edf9ff 56%, #deefff 100%); }
.home-faq:before { content: ""; position: absolute; width: 520px; height: 520px; right: -320px; bottom: -310px; border: 1px solid rgba(36,88,255,.14); border-radius: 50%; }
.home-faq-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(310px, .72fr) minmax(520px, 1.28fr); gap: clamp(48px, 6.5vw, 100px); align-items: stretch; }
.home-faq-intro { min-height: 588px; display: flex; flex-direction: column; }
.home-faq-intro h2 { margin: 0; font-size: clamp(42px, 4.6vw, 64px); line-height: .99; letter-spacing: -.055em; }
.home-faq-intro > div > p { max-width: 430px; margin: 23px 0 0; color: var(--muted); font-size: 14px; line-height: 1.72; }
.home-faq-contact { display: grid; grid-template-columns: 42px 1fr; gap: 16px; margin-top: auto; padding: 28px; border: 1px solid rgba(16,31,53,.09); border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 16px 42px rgba(19,55,89,.12); backdrop-filter: blur(12px); }
.home-faq-contact > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); }
.home-faq-contact h3 { margin: 2px 0 8px; font-size: 18px; letter-spacing: -.025em; }
.home-faq-contact p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.home-faq-contact .button { width: fit-content; min-height: 43px; margin-top: 19px; padding-inline: 17px; }
.home-faq-list { display: grid; align-content: start; gap: 14px; }
.home-faq-list details { overflow: hidden; border: 1px solid rgba(16,31,53,.08); border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 9px 24px rgba(22,55,86,.10); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.home-faq-list details:hover { transform: translateY(-2px); border-color: rgba(36,88,255,.2); box-shadow: 0 13px 30px rgba(22,55,86,.13); }
.home-faq-list details[open] { border-color: rgba(36,88,255,.27); box-shadow: 0 15px 36px rgba(27,66,105,.14); }
.home-faq-list summary { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 24px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 760; line-height: 1.42; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary:focus-visible { outline: 3px solid rgba(36,88,255,.22); outline-offset: -3px; border-radius: 15px; }
.home-faq-list summary i { position: relative; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #eff4ff; }
.home-faq-list summary i:before, .home-faq-list summary i:after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; border-radius: 2px; background: var(--blue); transform: translate(-50%, -50%); transition: opacity .2s ease, transform .2s ease; }
.home-faq-list summary i:after { transform: translate(-50%, -50%) rotate(90deg); }
.home-faq-list details[open] summary i:after { opacity: 0; transform: translate(-50%, -50%) rotate(180deg); }
.home-faq-answer { padding: 0 66px 24px 24px; }
.home-faq-answer p { max-width: 720px; margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.72; }

@media (max-width: 1120px) {
  .home-hero-layout { grid-template-columns: minmax(350px,.82fr) minmax(0,1.18fr); gap: 15px; }
  .home-hero-art { margin-right: -35px; }
  .client-logo-group { gap: 44px; padding-right: 44px; }
  .featured-case { grid-template-columns: .85fr 1.15fr; }
  .featured-case-copy { padding: 38px; }
  .subscription-preview-inner { grid-template-columns: 110px 1fr 210px; gap: 32px; }
  .subscription-badge { width: 100px; height: 100px; }
}

@media (max-width: 900px) {
  .home-hero { min-height: 0; }
  .home-hero-layout { grid-template-columns: 1fr; gap: 22px; padding: 65px 0 34px; }
  .home-hero-copy { max-width: 720px; }
  .home-hero h1 { max-width: 760px; }
  .home-hero-art { max-width: 760px; margin: 0 auto; }
  .client-rail { padding-block: 38px 43px; }
  .client-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .positioning-copy br { display: none; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-grid article { min-height: 190px; }
  .promise-grid h3 { margin-top: 35px; }
  .solution-row { grid-template-columns: 34px 45px 1fr 32px; }
  .solution-cases { display: none; }
  .idea-orbit { order: 2; min-height: 420px; }
  .featured-case { grid-template-columns: 1fr; }
  .browser-image { height: 400px; }
  .subscription-preview-inner { grid-template-columns: 1fr; text-align: center; }
  .subscription-badge { margin: auto; }
  .subscription-preview-actions { justify-items: center; }
  .process-timeline { grid-template-columns: 1fr 1fr; gap: 36px 0; border-top: 0; }
  .process-timeline article { padding-top: 0; }
  .process-timeline article:before { display: none; }
  .home-faq-intro { min-height: 0; }
  .home-faq-contact { max-width: 650px; margin-top: 38px; }
}

@media (max-width: 640px) {
  .home-hero-layout { padding-top: 52px; }
  .home-hero-art { margin-right: -28px; margin-left: -28px; }
  .client-rail { padding-block: 33px 37px; }
  .client-rail-heading { margin-bottom: 20px; }
  .client-rail-heading p { font-size: 14px; }
  .client-logo-group { gap: 28px; padding-right: 28px; }
  .client-logo-group a, .client-logo-group span { width: 118px; height: 48px; }
  .client-logo-group img { max-width: 108px; max-height: 36px; }
  .solution-row { min-height: 112px; grid-template-columns: 29px 40px 1fr; gap: 12px; padding: 12px 0; }
  .solution-arrow { display: none; }
  .solution-icon { width: 39px; height: 39px; }
  .solution-row-main b { font-size: 16px; }
  .solutions-footer { align-items: stretch; flex-direction: column; }
  .idea-orbit { min-height: 350px; transform: scale(.9); margin-inline: -20px; }
  .orbit-center { width: 110px; height: 110px; }
  .orbit-node { font-size: 7px; }
  .node-d { left: 25%; }
  .featured-case-copy { padding: 29px; }
  .browser-image { height: 300px; }
  .case-system-label { display: none; }
  .process-timeline { grid-template-columns: 1fr; }
  .home-faq-intro h2 { font-size: 42px; }
  .home-faq-contact { grid-template-columns: 1fr; padding: 23px; }
  .home-faq-list { gap: 10px; }
  .home-faq-list summary { min-height: 74px; padding: 16px 18px; font-size: 13px; }
  .home-faq-answer { padding: 0 50px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
  .client-marquee-track { animation: none; transform: none; }
  .client-logo-group[aria-hidden="true"] { display: none; }
}
