@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;600;700&family=Montserrat:wght@400;500;600&display=swap");

:root {
  --wine: #4e0401;
  --wine-2: #690b20;
  --magenta: #9b3370;
  --magenta-2: #d64a9a;
  --ink: #111017;
  --ink-soft: #24222c;
  --paper: #f6f3f5;
  --white: #fff;
  --muted: #6d6872;
  --line: rgba(20, 16, 23, .12);
  --shadow: 0 24px 70px rgba(31, 11, 22, .16);
  --radius: 14px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand, .btn, .main-nav a, .hero-visual-label strong {
  font-family: "Lemon Milk", "LEMON MILK", "League Spartan", "Century Gothic", Arial, sans-serif;
  font-stretch: normal;
}

.eyebrow, .kicker, .card-index, .hero-tags span, .hero-status small, .terminal-card, .tech-strip span {
  font-family: Consolas, "Courier New", monospace;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding: 112px 0; overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 9999; background: #fff; color: #111; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 82px;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(28, 3, 8, .92); box-shadow: 0 12px 40px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.nav-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; width: 250px; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 19px; }
.main-nav a { color: rgba(255,255,255,.76); font-size: .76rem; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; transition: color .2s; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--magenta-2); transition: right .25s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav .nav-access { padding: 9px 13px; border: 1px solid rgba(214,74,154,.48); border-radius: 9px; color: #fff; background: rgba(155,51,112,.16); }
.main-nav .nav-access::after { display: none; }
.main-nav .nav-access:hover { background: rgba(214,74,154,.28); border-color: rgba(214,74,154,.8); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.nav-toggle { display: none; width: 46px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.06); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 21px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }

.hero { min-height: 100svh; display: flex; align-items: center; position: relative; color: #fff; overflow: hidden; background: #180407; }
.hero-slides, .hero-slide, .hero-overlay, .hero-grid { position: absolute; inset: 0; }
.hero-slide { background-image: var(--bg); background-size: cover; background-position: center; opacity: 0; transform: scale(1.03); transition: opacity 1.4s ease, transform 7s linear; filter: saturate(1.08) brightness(.96); }
.hero-slide-araucarias { background-position: center 28%; }
.hero-slide-volcanes { background-position: center center; }
.hero-slide-lonquimay { background-position: center 35%; }
.hero-slide:nth-child(2) { background-position: center 35%; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { background: linear-gradient(90deg, rgba(31,2,8,.72) 0%, rgba(47,5,16,.42) 40%, rgba(10,10,16,.06) 74%, rgba(10,10,16,.18) 100%), linear-gradient(0deg, rgba(11,8,13,.42) 0%, transparent 35%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 28%, rgba(255,255,255,.12), transparent 28%); z-index: 1; }
.hero-grid { opacity: .04; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, black, transparent 70%); }
.hero-content { position: relative; z-index: 3; padding-top: 86px; padding-bottom: 88px; max-width: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, 34vw); align-items: center; gap: clamp(22px, 3.4vw, 42px); }
.hero-text-block { max-width: 680px; }
.hero-visual { position: relative; justify-self: end; width: min(32vw, 380px); min-height: 480px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 22px 56px rgba(0,0,0,.24); background: rgba(255,255,255,.06); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,14,.06), rgba(10,8,14,.42) 78%, rgba(10,8,14,.72) 100%); }
.hero-visual-label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; padding: 14px 16px; border-left: 3px solid var(--magenta-2); background: rgba(15,8,16,.40); backdrop-filter: blur(10px); }
.hero-visual-label strong, .hero-visual-label span { display: block; color: #fff; }
.hero-visual-label span { color: rgba(255,255,255,.74); font-size: .8rem; }
.eyebrow, .kicker { margin: 0 0 18px; color: var(--magenta); text-transform: uppercase; letter-spacing: .16em; font-size: .69rem; font-weight: 700; }
.eyebrow { color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 11px; }
.eyebrow span { width: 38px; height: 2px; background: var(--magenta-2); box-shadow: 0 0 18px var(--magenta-2); }
.hero h1 { max-width: 640px; margin: 0; font-size: clamp(2.02rem, 3.9vw, 3.8rem); line-height: 1.02; letter-spacing: -.012em; font-weight: 600; text-wrap: balance; }
.hero h1 em { color: var(--magenta-2); font-style: normal; }
.hero-copy { max-width: 62ch; margin: 22px 0 0; color: rgba(255,255,255,.84); font-size: clamp(.94rem, 1vw, 1.01rem); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; letter-spacing: .035em; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--magenta-2), var(--magenta)); box-shadow: 0 14px 36px rgba(155,51,112,.32); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(155,51,112,.46); }
.btn-secondary { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,.13); }
.btn-access { color: #fff; border-color: rgba(214,74,154,.55); background: rgba(90,14,52,.34); backdrop-filter: blur(8px); }
.btn-access:hover { background: rgba(155,51,112,.42); box-shadow: 0 14px 34px rgba(25,3,10,.25); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; color: rgba(255,255,255,.68); font-size: .68rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; background: rgba(0,0,0,.16); }
.hero-status { position: absolute; z-index: 4; right: 3.8vw; bottom: 44px; display: grid; grid-template-columns: 10px auto; column-gap: 10px; align-items: center; padding: 13px 17px; border: 1px solid rgba(255,255,255,.19); border-radius: 12px; background: rgba(10,7,12,.38); backdrop-filter: blur(11px); }
.hero-status .pulse { width: 8px; height: 8px; border-radius: 50%; background: #61d697; box-shadow: 0 0 0 6px rgba(97,214,151,.12); }
.hero-status strong { font-size: .78rem; }
.hero-status small { grid-column: 2; color: rgba(255,255,255,.57); font-size: .67rem; }
.scroll-cue { position: absolute; z-index: 4; bottom: 32px; left: 50%; width: 25px; height: 41px; border: 1px solid rgba(255,255,255,.28); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: #fff; transform: translateX(-50%); animation: scroll 1.8s infinite; }
@keyframes scroll { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0;transform:translate(-50%,14px)} }

.section-heading { max-width: 720px; margin-bottom: 48px; }
.heading-center { text-align: center; margin-inline: auto; }
.section-heading h2, .content-block h2, .purpose-card h2 { margin: 0; font-size: clamp(2.05rem, 3.7vw, 3.9rem); line-height: 1.06; letter-spacing: -.01em; font-weight: 600; text-wrap: balance; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.07rem; }
.intro { background: linear-gradient(180deg, #f8f5f7, #eee8ec); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar-card { position: relative; min-height: 354px; display: flex; flex-direction: column; padding: 29px; background: rgba(255,255,255,.78); border: 1px solid rgba(78,4,1,.08); border-radius: var(--radius); box-shadow: 0 16px 44px rgba(58,21,40,.07); transition: transform .25s, box-shadow .25s, border .25s; overflow: hidden; }
.pillar-card::before { content: ""; position: absolute; width: 150px; height: 150px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(214,74,154,.22), transparent 68%); }
.pillar-card:hover { transform: translateY(-7px); border-color: rgba(155,51,112,.28); box-shadow: 0 24px 60px rgba(58,21,40,.12); }
.icon-wrap { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, rgba(155,51,112,.13), rgba(78,4,1,.08)); color: var(--magenta); }
.icon-wrap svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card-index { position: absolute; right: 23px; top: 24px; font-size: .7rem; letter-spacing: .16em; font-weight: 800; color: #aaa0a7; }
.pillar-card h3 { margin: 24px 0 10px; font-size: 1.2rem; letter-spacing: .01em; font-weight: 600; }
.pillar-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.pillar-card a { margin-top: auto; padding-top: 24px; color: var(--wine); font-weight: 800; font-size: .84rem; }
.pillar-card a span { color: var(--magenta); margin-left: 5px; }

.about { background: #fff; }
.split-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(44px, 7vw, 94px); align-items: center; }
.media-frame { position: relative; border-radius: 16px; overflow: hidden; min-height: 560px; box-shadow: var(--shadow); }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36,3,11,.64), transparent 52%); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media-label { position: absolute; z-index: 2; left: 25px; bottom: 25px; color: #fff; padding: 14px 18px; border-left: 3px solid var(--magenta-2); background: rgba(12,8,12,.38); backdrop-filter: blur(8px); }
.media-label strong, .media-label span { display: block; }
.media-label span { color: rgba(255,255,255,.65); font-size: .8rem; }
.content-block .lead { font-size: 1.12rem; color: #3e3940; }
.content-block > p:not(.kicker) { color: var(--muted); }
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 34px; border-top: 1px solid var(--line); }
.metric-row div { padding: 23px 16px 0 0; }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { font-size: 1.45rem; color: var(--wine); }
.metric-row span { color: var(--muted); font-size: .76rem; }

.purpose { color: #fff; background: #260207; }
.purpose-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,2,7,.97), rgba(78,4,1,.74)), url('../img/salto-captren.webp') center 45%/cover no-repeat; opacity: .85; }
.purpose::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; opacity: .14; }
.purpose-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.purpose-card { padding: 44px; border: 1px solid rgba(255,255,255,.16); background: rgba(22,3,8,.52); backdrop-filter: blur(12px); border-radius: var(--radius); }
.purpose-card > span { color: var(--magenta-2); font-size: .73rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.purpose-card h2 { margin-top: 18px; font-size: clamp(2rem, 3vw, 3.15rem); }
.purpose-card p { color: rgba(255,255,255,.69); }

.cyber { color: #fff; background: linear-gradient(135deg, #100d14, #24050d 58%, #4e0401); }
.cyber-lines { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(30deg, transparent 49.6%, rgba(214,74,154,.45) 49.8%, rgba(214,74,154,.45) 50.2%, transparent 50.4%), linear-gradient(150deg, transparent 49.6%, rgba(255,255,255,.18) 49.8%, rgba(255,255,255,.18) 50.2%, transparent 50.4%); background-size: 170px 170px; }
.cyber-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 8vw, 100px); align-items: center; }
.kicker.light { color: var(--magenta-2); }
.cyber .content-block > p:not(.kicker) { color: rgba(255,255,255,.69); }
.cyber-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 35px; }
.cyber-flow div { padding: 17px 10px; border-top: 2px solid rgba(214,74,154,.52); background: rgba(255,255,255,.04); }
.cyber-flow span, .cyber-flow strong { display: block; }
.cyber-flow span { color: var(--magenta-2); font-size: .68rem; }
.cyber-flow strong { margin-top: 4px; font-size: .86rem; }
.terminal-card { border: 1px solid rgba(255,255,255,.14); border-radius: 19px; overflow: hidden; background: rgba(8,7,11,.76); box-shadow: 0 30px 80px rgba(0,0,0,.36); }
.terminal-top { display: flex; gap: 7px; align-items: center; height: 48px; padding: 0 16px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-top span { width: 9px; height: 9px; border-radius: 50%; background: #8d344d; }
.terminal-top span:nth-child(2) { background: #b36381; }
.terminal-top span:nth-child(3) { background: #6b8e7f; }
.terminal-top small { margin-left: auto; color: rgba(255,255,255,.44); font-family: ui-monospace, monospace; }
.terminal-body { padding: 30px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.terminal-body p { margin: 0 0 12px; color: rgba(255,255,255,.68); }
.prompt, .ok { color: #63d89a; }
.warn { color: var(--magenta-2); }
.terminal-chart { display: flex; align-items: end; gap: 7px; height: 85px; padding-top: 20px; }
.terminal-chart i { flex: 1; min-width: 5px; height: 24%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--magenta-2), var(--magenta)); opacity: .75; animation: bars 2.8s ease-in-out infinite alternate; }
.terminal-chart i:nth-child(2){height:42%;animation-delay:.1s}.terminal-chart i:nth-child(3){height:65%;animation-delay:.2s}.terminal-chart i:nth-child(4){height:37%;animation-delay:.3s}.terminal-chart i:nth-child(5){height:78%;animation-delay:.4s}.terminal-chart i:nth-child(6){height:52%;animation-delay:.5s}.terminal-chart i:nth-child(7){height:88%;animation-delay:.6s}.terminal-chart i:nth-child(8){height:46%;animation-delay:.7s}.terminal-chart i:nth-child(9){height:69%;animation-delay:.8s}.terminal-chart i:nth-child(10){height:55%;animation-delay:.9s}
@keyframes bars { to { transform: scaleY(.7); opacity: .45; } }

.ai { background: #f5f0f4; }
.ai-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.ai-visual { min-height: 520px; position: relative; display: grid; place-items: center; }
.ai-visual::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(214,74,154,.22), rgba(155,51,112,.06) 42%, transparent 70%); filter: blur(12px); }
.ai-core { position: relative; z-index: 3; width: 142px; height: 142px; border-radius: 34px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7a173f, #2b0610); box-shadow: 0 25px 70px rgba(78,4,1,.35), inset 0 0 0 1px rgba(255,255,255,.13); transform: rotate(45deg); }
.ai-core span, .ai-core small { transform: rotate(-45deg); position: absolute; }
.ai-core span { font-size: 2.6rem; font-weight: 850; }
.ai-core small { margin-top: 59px; color: var(--magenta-2); font-size: .64rem; letter-spacing: .22em; font-weight: 800; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(155,51,112,.28); }
.orbit-one { width: 330px; height: 330px; animation: orbit 24s linear infinite; }
.orbit-two { width: 460px; height: 460px; border-style: dashed; animation: orbit 34s linear reverse infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.node { position: absolute; z-index: 4; padding: 9px 13px; border-radius: 9px; color: var(--wine); background: #fff; border: 1px solid rgba(78,4,1,.1); box-shadow: 0 12px 30px rgba(46,16,31,.11); font-size: .72rem; font-weight: 800; }
.n1{top:12%;left:13%}.n2{top:18%;right:8%}.n3{bottom:18%;left:6%}.n4{bottom:10%;right:12%}
.feature-list { list-style: none; padding: 0; margin: 32px 0 0; }
.feature-list li { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.feature-list > li > span { color: var(--magenta); font-size: .75rem; font-weight: 850; }
.feature-list strong, .feature-list small { display: block; }
.feature-list small { margin-top: 3px; color: var(--muted); }

.development { background: #fff; }
.process-line { display: grid; grid-template-columns: repeat(5,1fr); position: relative; }
.process-line::before { content: ""; position: absolute; top: 23px; left: 9%; right: 9%; height: 1px; background: linear-gradient(90deg, var(--magenta), rgba(155,51,112,.15)); }
.process-step { position: relative; padding: 0 19px; text-align: center; }
.process-step > span { position: relative; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 20px; border: 5px solid #fff; border-radius: 50%; color: #fff; background: var(--wine); font-size: .7rem; font-weight: 800; box-shadow: 0 0 0 1px rgba(78,4,1,.15); }
.process-step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .83rem; }
.tech-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.tech-strip span { padding: 8px 13px; border-radius: 8px; color: #4e4650; background: #f3eff2; font-size: .74rem; font-weight: 800; }

.platforms { background: linear-gradient(180deg, #f8f5f7 0%, #eee7eb 100%); }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform-card { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 27px; overflow: hidden; border: 1px solid rgba(78,4,1,.09); border-radius: var(--radius); background: rgba(255,255,255,.86); box-shadow: 0 16px 45px rgba(58,21,40,.07); transition: transform .25s, box-shadow .25s, border-color .25s; }
.platform-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -80px; bottom: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(214,74,154,.2), transparent 70%); }
.platform-card:hover { transform: translateY(-6px); border-color: rgba(155,51,112,.28); box-shadow: 0 24px 60px rgba(58,21,40,.12); }
.platform-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--wine-2), var(--magenta)); font-size: .84rem; font-weight: 900; letter-spacing: .08em; box-shadow: 0 12px 28px rgba(78,4,1,.2); }
.platform-type { display: block; margin-top: 22px; color: var(--magenta); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; font-weight: 850; }
.platform-card h3 { margin: 7px 0 9px; font-size: 1.28rem; }
.platform-card p { margin: 0; color: var(--muted); font-size: .89rem; }
.platform-card a { position: relative; z-index: 2; margin-top: auto; padding-top: 24px; color: var(--wine); font-size: .82rem; font-weight: 850; }
.platform-card a span { margin-left: 5px; color: var(--magenta); }
.platform-security { max-width: 820px; margin: 28px auto 0; padding: 16px 20px; text-align: center; color: var(--muted); border: 1px solid rgba(78,4,1,.08); border-radius: 12px; background: rgba(255,255,255,.62); font-size: .8rem; }
.platform-security strong { color: var(--wine); }

.territory { color: #fff; background: var(--wine); padding: 0; }
.territory-layout { width: 100%; max-width: none; display: grid; grid-template-columns: 1fr 1fr; }
.territory .content-block { align-self: center; max-width: 590px; padding: 90px max(34px, calc((100vw - 1180px)/2)); padding-right: 70px; }
.territory .content-block h2 { font-size: clamp(2.35rem, 4vw, 4.5rem); }
.territory .content-block > p:not(.kicker) { color: rgba(255,255,255,.7); }
.territory-image { min-height: 590px; position: relative; }
.territory-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--wine), transparent 22%); }
.territory-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.contact { background: linear-gradient(180deg, #f5f1f4, #ebe4e8); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 8vw, 100px); align-items: start; }
.contact-data { margin-top: 35px; border-top: 1px solid var(--line); }
.contact-data a, .contact-data > div { display: flex; justify-content: space-between; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-data span { color: var(--muted); font-size: .78rem; }
.contact-data strong { font-size: .86rem; text-align: right; }
.contact-form { padding: 34px; border-radius: var(--radius); background: rgba(255,255,255,.84); border: 1px solid rgba(78,4,1,.08); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 16px; color: #4e4650; font-size: .76rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 7px; padding: 13px 14px; color: var(--ink); border: 1px solid #d8cfd5; border-radius: 10px; background: #fff; outline: none; transition: border .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(155,51,112,.1); }
.contact-form .invalid { border-color: #b82f42; box-shadow: 0 0 0 4px rgba(184,47,66,.09); }
.submit-btn { border: 0; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: .73rem; }
.form-note.success { color: #287449; font-weight: 700; }

.site-footer { color: #fff; background: #140207; }
.footer-main { display: grid; grid-template-columns: 260px 1fr auto; gap: 50px; align-items: center; padding: 62px 0 36px; }
.footer-brand { width: 240px; }
.footer-main p { max-width: 450px; color: rgba(255,255,255,.58); font-size: .9rem; }
.footer-main nav { display: grid; gap: 8px; }
.footer-main nav a { color: rgba(255,255,255,.64); font-size: .8rem; }
.footer-main nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: .72rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .hero-visual { width: 340px; min-height: 440px; }
}

@media (max-width: 1100px) {
  .brand { width: 220px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .hero-visual { width: 300px; min-height: 400px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .75rem; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(3,1fr); gap: 40px 0; }
  .process-line::before { display:none; }
}

@media (max-width: 900px) {
  .site-header { height: 74px; }
  .brand { width: 215px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; top: 74px; right: 18px; left: 18px; max-height: 0; overflow: hidden; display: grid; gap: 0; border-radius: 16px; background: rgba(29,3,9,.97); backdrop-filter: blur(14px); box-shadow: 0 20px 55px rgba(0,0,0,.25); transition: max-height .35s; }
  .main-nav.open { max-height: 560px; padding: 10px; }
  .main-nav a { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .main-nav .nav-access { border-radius: 8px; margin: 4px; }
  .main-nav a::after { display:none; }
  .hero-status, .scroll-cue { display: none; }
  .hero-layout, .split-layout, .cyber-layout, .ai-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: start; width: min(100%, 420px); min-height: 320px; margin-top: 10px; }
  .hero-visual img { object-position: center 24%; }
  .split-layout, .cyber-layout, .ai-layout, .contact-grid { grid-template-columns: 1fr; }
  .media-frame { min-height: 430px; }
  .purpose-grid { grid-template-columns: 1fr; }
  .ai-visual { min-height: 470px; order: 2; }
  .territory-layout { grid-template-columns: 1fr; }
  .territory .content-block { padding: 78px 34px; max-width: none; }
  .territory-image { min-height: 430px; }
  .territory-image::after { background: linear-gradient(180deg, var(--wine), transparent 18%); }
  .footer-main { grid-template-columns: 1fr; gap: 20px; }
  .footer-main nav { grid-template-columns: repeat(3, max-content); }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1180px); }
  .section { padding: 82px 0; }
  .hero-content { padding-top: 98px; padding-bottom: 56px; }
  .hero-layout { gap: 18px; }
  .hero h1 { font-size: clamp(1.9rem, 8.8vw, 2.9rem); line-height: 1.04; letter-spacing: -.006em; }
  .hero-copy { font-size: .95rem; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .pillar-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 300px; }
  .media-frame { min-height: 360px; }
  .metric-row { gap: 6px; }
  .purpose-card { padding: 30px; }
  .cyber-flow { grid-template-columns: repeat(2,1fr); }
  .terminal-body { padding: 22px; font-size: .78rem; }
  .ai-visual { min-height: 390px; transform: scale(.86); margin-inline: -30px; }
  .process-line { grid-template-columns: 1fr; gap: 29px; }
  .process-step { text-align: left; display: grid; grid-template-columns: 48px 1fr; column-gap: 15px; }
  .process-step > span { grid-row: span 2; margin: 0; }
  .process-step h3, .process-step p { grid-column: 2; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }
  .contact-data a, .contact-data > div { display: grid; gap: 3px; }
  .contact-data strong { text-align: left; }
  .footer-main nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.django-message.success { color: #1c7a4d; }
.django-message.error { color: #a51f3d; }

/* =========================================================
   PAPILO · ASISTENTE VIRTUAL
   ========================================================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.papilo { position: fixed; right: 22px; bottom: 22px; z-index: 1600; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.papilo-launcher { min-width: 230px; display: grid; grid-template-columns: 48px 1fr 9px; align-items: center; gap: 11px; padding: 8px 13px 8px 8px; color: #fff; border: 1px solid rgba(214,74,154,.46); border-radius: 17px; background: linear-gradient(145deg, rgba(51,5,20,.97), rgba(21,8,18,.97)); box-shadow: 0 18px 52px rgba(20,0,9,.32); text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.papilo-launcher:hover { transform: translateY(-2px); border-color: rgba(214,74,154,.82); box-shadow: 0 22px 58px rgba(20,0,9,.42); }
.papilo-launcher img { width: 48px; height: 48px; border-radius: 13px; object-fit: cover; border: 1px solid rgba(255,255,255,.18); }
.papilo-launcher strong, .papilo-launcher small { display: block; }
.papilo-launcher strong { font-size: .84rem; letter-spacing: .01em; }
.papilo-launcher small { color: rgba(255,255,255,.62); font-size: .68rem; margin-top: 1px; }
.papilo-launcher > i, .papilo-header span i { width: 8px; height: 8px; border-radius: 50%; background: #64da9d; box-shadow: 0 0 0 5px rgba(100,218,157,.12); }
.papilo-panel { position: absolute; right: 0; bottom: 76px; width: min(390px, calc(100vw - 28px)); height: min(610px, calc(100vh - 118px)); display: grid; grid-template-rows: auto 1fr auto auto auto; overflow: hidden; color: #171119; border: 1px solid rgba(91,25,58,.24); border-radius: 22px; background: #f8f5f7; box-shadow: 0 28px 90px rgba(19,0,9,.38); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: opacity .22s, transform .22s, visibility .22s; }
.papilo.open .papilo-panel { opacity: 1; visibility: visible; transform: none; }
.papilo.open .papilo-launcher { visibility: hidden; opacity: 0; pointer-events: none; }
.papilo-header { display: grid; grid-template-columns: 50px 1fr 36px; gap: 11px; align-items: center; padding: 14px 14px 13px; color: #fff; background: linear-gradient(135deg, #4e0401, #481027 65%, #1a0a16); }
.papilo-header img { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; border: 1px solid rgba(255,255,255,.22); }
.papilo-header strong, .papilo-header span { display: block; }
.papilo-header strong { font-size: .94rem; }
.papilo-header span { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: rgba(255,255,255,.7); font-size: .69rem; }
.papilo-header span i { width: 6px; height: 6px; box-shadow: 0 0 0 4px rgba(100,218,157,.1); }
.papilo-close { width: 34px; height: 34px; display: grid; place-items: center; color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.06); font-size: 1.35rem; line-height: 1; }
.papilo-messages { overflow-y: auto; padding: 18px 14px 12px; scroll-behavior: smooth; }
.papilo-message { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 13px; }
.papilo-message img { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; object-fit: cover; }
.papilo-message > div { max-width: 84%; padding: 11px 13px; border-radius: 15px 15px 15px 4px; background: #fff; border: 1px solid rgba(67,24,49,.09); box-shadow: 0 8px 22px rgba(37,13,28,.06); font-size: .82rem; line-height: 1.52; white-space: pre-wrap; }
.papilo-message.user { justify-content: flex-end; }
.papilo-message.user > div { color: #fff; border: 0; border-radius: 15px 15px 4px 15px; background: linear-gradient(135deg, #9b3370, #650d3a); }
.papilo-message.typing > div { display: flex; gap: 4px; padding: 14px 15px; }
.papilo-message.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9b7890; animation: papiloTyping 1.1s infinite ease-in-out; }
.papilo-message.typing span:nth-child(2) { animation-delay: .15s; }
.papilo-message.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes papiloTyping { 0%,60%,100%{transform:none;opacity:.42} 30%{transform:translateY(-4px);opacity:1} }
.papilo-suggestions { display: flex; gap: 7px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.papilo-suggestions::-webkit-scrollbar { display: none; }
.papilo-suggestions button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(155,51,112,.22); border-radius: 999px; color: #6b1745; background: #fff; font-size: .69rem; font-weight: 700; }
.papilo-form { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: end; padding: 10px 12px; border-top: 1px solid rgba(55,24,43,.1); background: #fff; }
.papilo-form textarea { width: 100%; min-height: 42px; max-height: 110px; resize: none; padding: 10px 12px; color: #1d1720; border: 1px solid rgba(62,27,49,.18); border-radius: 12px; background: #faf8fa; outline: none; font-size: .82rem; line-height: 1.35; }
.papilo-form textarea:focus { border-color: rgba(155,51,112,.62); box-shadow: 0 0 0 3px rgba(155,51,112,.09); }
.papilo-form button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #d64a9a, #8d2864); box-shadow: 0 9px 20px rgba(155,51,112,.22); }
.papilo-form button:disabled { opacity: .48; cursor: wait; }
.papilo-form svg { width: 21px; height: 21px; fill: currentColor; }
.papilo-note { margin: 0; padding: 8px 14px 10px; color: #827781; background: #fff; font-size: .61rem; text-align: center; }

@media (max-width: 640px) {
  .papilo { right: 14px; bottom: 14px; }
  .papilo-launcher { min-width: 0; width: 58px; height: 58px; display: block; padding: 5px; border-radius: 17px; }
  .papilo-launcher img { width: 46px; height: 46px; }
  .papilo-launcher span, .papilo-launcher > i { display: none; }
  .papilo-panel { position: fixed; inset: 10px; width: auto; height: auto; max-height: none; border-radius: 18px; transform-origin: bottom right; }
  .papilo-message > div { max-width: 88%; }
}
