/* TerraPrims — página principal */
:root {
  --lp-max: 1220px;
  --lp-accent: #75c8bd;
  --lp-accent-2: #9b9af2;
  --lp-line: rgba(160,190,210,.16);
  --lp-glass: rgba(255,255,255,.035);
}
:root[data-theme="light"] {
  --lp-accent: #087f78;
  --lp-accent-2: #6864bd;
  --lp-line: rgba(30,60,85,.14);
  --lp-glass: rgba(20,50,70,.035);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tp-bg, #101b2b);
  color: var(--tp-text, #f1f6f8);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 1000;
  padding: 10px 16px; background: var(--tp-surface); color: var(--tp-text);
}
.skip-link:focus { left: 10px; }
.section-wrap { width: min(var(--lp-max), calc(100% - 64px)); margin-inline: auto; }

/* Cabecera */
.site-header {
  position: relative; z-index: 20;
  border-bottom: 1px solid var(--lp-line);
  background: var(--tp-bg, #101b2b);
}
.header-inner {
  width: min(1380px, calc(100% - 64px)); min-height: 82px;
  margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--lp-accent); color: var(--lp-accent);
  font-size: 19px; font-weight: 800; transform: rotate(45deg);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-name { font-size: 20px; font-weight: 750; letter-spacing: -.8px; }
.brand-period { color: var(--lp-accent); }
.main-nav, .header-actions { display: flex; align-items: center; gap: 28px; }
.main-nav a, .header-login { font-size: 13px; color: var(--tp-muted); transition: color .2s; }
.main-nav a:hover, .header-login:hover { color: var(--lp-accent); }
.header-actions { gap: 20px; }
.language-switch {
  display: flex; gap: 3px; padding: 4px;
  border: 1px solid var(--lp-line); border-radius: 30px;
}
.language-switch button {
  border: 0; background: transparent; color: var(--tp-muted);
  border-radius: 20px; padding: 5px 9px; cursor: pointer; font-size: 11px;
}
.language-switch button.active { background: var(--lp-glass); color: var(--lp-accent); }
.header-login { border: 1px solid var(--lp-line); border-radius: 5px; padding: 9px 15px; }

/* Hero */
.hero {
  min-height: 690px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 70px max(32px, calc((100vw - 1220px)/2)) 100px;
  isolation: isolate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -3; opacity: .26;
  background-image: linear-gradient(var(--lp-line) 1px, transparent 1px), linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -2; pointer-events: none; }
.hero-glow-one { width: 430px; height: 430px; background: rgba(55,160,157,.13); top: 5%; right: 10%; }
.hero-glow-two { width: 300px; height: 300px; background: rgba(119,103,200,.12); bottom: 0; right: 30%; }
.hero-content { position: relative; z-index: 2; max-width: 570px; padding-bottom: 20px; }
.eyebrow, .section-kicker {
  color: var(--lp-accent); font-size: 10px; letter-spacing: 2.4px; font-weight: 750;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 35px; height: 1px; background: var(--lp-accent); }
.hero h1 {
  margin: 26px 0 22px; font-size: clamp(54px, 6.2vw, 88px);
  line-height: .99; letter-spacing: -5px; font-weight: 780;
}
.hero h1 span, .intro-layout h2 span, .section-heading h2 span,
.platform-copy h2 span, .closing-section h2 span { color: var(--lp-accent); }
.hero-lead { max-width: 500px; color: var(--tp-muted); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-height: 48px; padding: 0 20px; border-radius: 4px;
  font-size: 13px; font-weight: 700; transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-3px); }
.button-primary { color: #10242d; background: var(--lp-accent); }
.button-primary:hover { filter: brightness(1.08); }
.button-secondary { border: 1px solid var(--lp-line); color: var(--tp-text); }
.button-secondary:hover { border-color: var(--lp-accent); }
.hero-note { margin-top: 32px; color: var(--tp-muted); font-size: 11px; letter-spacing: .4px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--lp-accent); box-shadow: 0 0 12px var(--lp-accent); }
.hero-bottom {
  position: absolute; bottom: 25px; left: max(32px, calc((100vw - 1220px)/2));
  right: max(32px, calc((100vw - 1220px)/2)); display: flex; justify-content: space-between;
  border-top: 1px solid var(--lp-line); padding-top: 13px;
  color: var(--tp-muted); font-size: 9px; letter-spacing: 1.7px;
}

/* Ilustración 3D abstracta */
.hero-art { position: relative; height: 510px; max-width: 600px; width: 100%; justify-self: end; perspective: 900px; }
.orbit {
  position: absolute; left: 50%; top: 48%; border: 1px solid rgba(117,200,189,.35);
  border-radius: 50%; transform: translate(-50%,-50%) rotateX(68deg);
}
.orbit-one { width: 490px; height: 310px; }
.orbit-two { width: 390px; height: 245px; transform: translate(-50%,-50%) rotateX(68deg) rotateZ(35deg); border-color: rgba(155,154,242,.35); }
.orbit-three { width: 570px; height: 360px; transform: translate(-50%,-50%) rotateX(68deg) rotateZ(-28deg); border-style: dashed; opacity: .55; }
.orbit-node { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--lp-accent); box-shadow: 0 0 18px var(--lp-accent); }
.node-one { top: 15%; left: 55%; }.node-two { top: 68%; left: 14%; background: var(--lp-accent-2); }.node-three { top: 75%; right: 14%; }
.world-platform {
  position: absolute; left: 50%; transform: translateX(-50%) rotateX(58deg) rotateZ(-35deg);
  border: 1px solid rgba(117,200,189,.6); background: linear-gradient(135deg, rgba(45,120,125,.25), rgba(35,48,85,.35));
  box-shadow: 0 15px 55px rgba(0,0,0,.15);
}
.platform-back { width: 350px; height: 220px; top: 34%; }
.platform-middle { width: 290px; height: 175px; top: 43%; background: linear-gradient(135deg, rgba(80,150,145,.35), rgba(80,80,145,.25)); }
.platform-front { width: 230px; height: 135px; top: 52%; background: linear-gradient(135deg, rgba(117,200,189,.28), rgba(80,90,145,.25)); }
.world-tower {
  position: absolute; bottom: 37%; width: 45px; height: 115px;
  background: linear-gradient(90deg, #244d60, #5e9c9b 50%, #24465b);
  border: 1px solid rgba(160,230,220,.7); transform: skewY(-30deg);
  box-shadow: 12px 12px 30px rgba(0,0,0,.25);
}
.world-tower i { position: absolute; top: 10px; left: 10px; right: 10px; height: 2px; background: #b6eee2; box-shadow: 0 17px #8bcfc6, 0 34px #8bcfc6; }
.tower-one { left: 30%; height: 105px; }
.tower-two { left: 53%; height: 155px; bottom: 40%; width: 55px; background: linear-gradient(90deg,#343d70,#8585c4,#343d70); }
.tower-three { left: 70%; height: 75px; bottom: 34%; width: 35px; }
.world-cube { position: absolute; width: 35px; height: 35px; border: 1px solid var(--lp-accent); background: rgba(117,200,189,.22); transform: rotate(35deg) skew(-8deg); box-shadow: 0 0 25px rgba(117,200,189,.15); }
.cube-one { left: 22%; top: 33%; }.cube-two { right: 20%; top: 48%; width: 24px; height: 24px; }.cube-three { left: 43%; bottom: 20%; width: 18px; height: 18px; }
.world-tree { position: absolute; bottom: 32%; width: 8px; height: 55px; background: #548e83; transform: skewY(-25deg); }
.world-tree i { position: absolute; width: 34px; height: 38px; left: -13px; top: -20px; background: linear-gradient(135deg,#75c8a9,#27796e); clip-path: polygon(50% 0,100% 75%,50% 100%,0 75%); }
.tree-one { left: 18%; }.tree-two { right: 17%; bottom: 38%; transform: scale(.75) skewY(-25deg); }
.floating-label {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border: 1px solid var(--lp-line); border-radius: 4px;
  background: var(--tp-surface, #17263a); color: var(--tp-text);
  font-size: 9px; letter-spacing: 1px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.label-icon { color: var(--lp-accent); font-size: 16px; }
.label-creation { top: 12%; left: 4%; }.label-learning { top: 28%; right: 0; }.label-research { bottom: 14%; left: 13%; }
.art-caption { position: absolute; right: 4%; bottom: 5%; color: var(--tp-muted); font-size: 9px; letter-spacing: 2px; }

/* Introducción */
.intro-section { padding-top: 125px; padding-bottom: 100px; }
.intro-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; margin-top: 24px; }
.intro-layout h2, .section-heading h2, .platform-copy h2, .closing-section h2 {
  font-size: clamp(36px, 4.2vw, 57px); line-height: 1.12; letter-spacing: -2px; margin: 0; font-weight: 720;
}
.intro-copy p { color: var(--tp-muted); font-size: 15px; line-height: 1.9; margin-top: 0; }
.intro-copy .intro-small { font-size: 12px; border-left: 2px solid var(--lp-accent); padding-left: 16px; }
.intro-rule { margin-top: 65px; height: 1px; background: var(--lp-line); position: relative; }
.intro-rule span { position: absolute; width: 100px; height: 2px; top: -1px; left: 0; background: var(--lp-accent); }

/* Áreas */
.areas-section { padding-top: 65px; padding-bottom: 135px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 50px; }
.section-heading h2 { margin-top: 20px; }
.section-heading > p { max-width: 330px; color: var(--tp-muted); font-size: 14px; line-height: 1.8; }
.area-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.area-card {
  min-width: 0; overflow: hidden; border: 1px solid var(--lp-line);
  background: var(--lp-glass); transition: transform .25s, border-color .25s;
}
.area-card:hover { transform: translateY(-6px); border-color: rgba(117,200,189,.55); }
.card-topline { padding: 18px 20px 0; display: flex; justify-content: space-between; color: var(--tp-muted); font-size: 9px; letter-spacing: 1.5px; }
.card-symbol { color: var(--lp-accent); font-size: 19px; }
.area-visual { position: relative; height: 190px; margin: 8px 18px 0; overflow: hidden; background: linear-gradient(135deg,rgba(65,125,130,.12),rgba(105,95,160,.12)); }
.visual-create { background-image: linear-gradient(rgba(117,200,189,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(117,200,189,.08) 1px,transparent 1px); background-size: 20px 20px; }
.mini-shape { position: absolute; width: 65px; height: 65px; transform: rotate(45deg) skew(-8deg); border: 1px solid #75c8bd; background: linear-gradient(135deg,rgba(117,200,189,.45),rgba(70,90,140,.25)); box-shadow: 12px 12px 25px rgba(0,0,0,.15); }
.shape-a { top: 40px; left: 25%; }.shape-b { top: 70px; left: 53%; width: 45px; height: 45px; border-color: #aaa0ef; }.shape-c { top: 105px; left: 39%; width: 25px; height: 25px; }
.mini-ring { position: absolute; width: 170px; height: 100px; border: 1px solid var(--lp-accent); border-radius: 50%; left: 25%; top: 45px; transform: rotate(-25deg); opacity: .6; }
.visual-education { background: linear-gradient(145deg,rgba(70,120,150,.15),rgba(110,100,170,.2)); }
.edu-floor { position: absolute; left: 10%; right: 10%; bottom: 12px; height: 65px; transform: perspective(150px) rotateX(45deg); border: 1px solid rgba(117,200,189,.6); background: repeating-linear-gradient(90deg,transparent 0 28px,rgba(117,200,189,.12) 29px 30px); }
.edu-wall { position: absolute; bottom: 65px; width: 100px; height: 85px; border: 1px solid rgba(117,200,189,.5); background: rgba(70,130,140,.16); }
.wall-a { left: 17%; transform: skewY(-20deg); }.wall-b { right: 17%; transform: skewY(20deg); }
.edu-screen { position: absolute; width: 70px; height: 43px; top: 50px; left: calc(50% - 35px); border: 2px solid #9b9af2; background: rgba(155,154,242,.25); box-shadow: 0 0 20px rgba(155,154,242,.2); }
.edu-person { position: absolute; bottom: 35px; width: 12px; height: 28px; border-radius: 8px 8px 3px 3px; background: var(--lp-accent); }
.edu-person::before { content: ""; position: absolute; width: 10px; height: 10px; top: -11px; left: 1px; border-radius: 50%; background: #d0b9a2; }
.person-a { left: 30%; }.person-b { left: 65%; background: #9b9af2; }.person-c { left: 49%; bottom: 23px; transform: scale(.8); }
.edu-light { position: absolute; top: 18px; left: 50%; width: 2px; height: 24px; background: var(--lp-accent); box-shadow: 0 0 15px var(--lp-accent); }
.visual-research { background: radial-gradient(circle at center,rgba(117,200,189,.14),transparent 65%); }
.research-orbit { position: absolute; width: 170px; height: 90px; left: calc(50% - 85px); top: 50px; border: 1px solid var(--lp-accent); border-radius: 50%; transform: rotate(30deg); }
.research-orbit.orbit-b { transform: rotate(-45deg); border-color: #9b9af2; }
.research-core { position: absolute; width: 27px; height: 27px; border-radius: 50%; background: var(--lp-accent); left: calc(50% - 13px); top: 80px; box-shadow: 0 0 30px var(--lp-accent); }
.research-point { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #b5a8f3; }
.point-a { left: 29%; top: 60px; }.point-b { right: 25%; top: 120px; }.point-c { left: 52%; top: 28px; }
.research-axis { position: absolute; height: 1px; width: 220px; background: var(--lp-line); left: calc(50% - 110px); top: 95px; transform: rotate(35deg); }
.axis-b { transform: rotate(-35deg); }
.area-content { padding: 25px 23px 28px; }
.area-label { color: var(--lp-accent); font-size: 9px; letter-spacing: 1.5px; font-weight: 750; }
.area-content h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.6px; margin: 13px 0; }
.area-content p { color: var(--tp-muted); font-size: 12px; line-height: 1.85; min-height: 112px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; color: var(--lp-accent); font-size: 11px; font-weight: 700; margin-top: 8px; }
.text-link:hover { gap: 21px; }

/* Accesos a la plataforma */
.platform-section { position: relative; overflow: hidden; background: var(--tp-surface, #17263a); border-block: 1px solid var(--lp-line); }
.platform-inner { min-height: 370px; display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 90px; padding-block: 75px; position: relative; z-index: 1; }
.platform-copy h2 { margin-top: 20px; }
.platform-copy p { max-width: 430px; color: var(--tp-muted); font-size: 14px; line-height: 1.8; }
.platform-links { display: grid; gap: 12px; }
.platform-link {
  display: flex; align-items: center; gap: 17px; padding: 20px;
  border: 1px solid var(--lp-line); background: var(--lp-glass);
  transition: border-color .2s, transform .2s;
}
.platform-link:hover { border-color: var(--lp-accent); transform: translateX(5px); }
.platform-icon { color: var(--lp-accent); font-size: 26px; }
.platform-link-copy { display: grid; flex: 1; gap: 3px; }
.platform-link-copy strong { font-size: 15px; }
.platform-link-copy small { color: var(--tp-muted); font-size: 11px; }
.platform-arrow { color: var(--lp-accent); }
.platform-decoration { position: absolute; width: 450px; height: 450px; border: 1px solid var(--lp-line); border-radius: 50%; right: -240px; top: -220px; }

/* Cierre y footer */
.closing-section { text-align: center; padding-top: 130px; padding-bottom: 135px; }
.closing-mark { color: var(--lp-accent); font-size: 24px; font-weight: 800; letter-spacing: -2px; margin-bottom: 25px; }
.closing-section h2 { margin: 22px 0; }
.closing-section > p { max-width: 520px; margin: 0 auto 28px; color: var(--tp-muted); font-size: 14px; line-height: 1.85; }
.site-footer { border-top: 1px solid var(--lp-line); background: var(--tp-surface, #17263a); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 45px; padding-top: 65px; padding-bottom: 55px; }
.footer-brand-block p { max-width: 240px; color: var(--tp-muted); font-size: 12px; line-height: 1.8; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column strong { color: var(--lp-accent); font-size: 9px; letter-spacing: 1.5px; margin-bottom: 7px; }
.footer-column a { color: var(--tp-muted); font-size: 11px; }
.footer-column a:hover, .footer-bottom a:hover { color: var(--lp-accent); }
.footer-bottom {
  min-height: 60px; border-top: 1px solid var(--lp-line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: var(--tp-muted); font-size: 9px; letter-spacing: .8px;
}
.footer-bottom a { color: var(--tp-muted); }

/* Accesibilidad y movimiento */
a:focus-visible, button:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Adaptación a tablet y móvil */
@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr 1fr; padding-inline: 32px; min-height: 620px; }
  .hero h1 { font-size: clamp(48px, 7vw, 68px); }
  .hero-art { transform: scale(.85); transform-origin: center; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .area-card:last-child { grid-column: 1 / -1; }
  .area-card:last-child .area-visual { height: 220px; }
  .platform-inner { gap: 35px; }
  .footer-main { gap: 28px; }
}
@media (max-width: 680px) {
  .section-wrap { width: min(100% - 36px, var(--lp-max)); }
  .header-inner { width: calc(100% - 36px); min-height: 70px; gap: 12px; }
  .brand-name { font-size: 18px; }
  .main-nav { display: none; }
  .header-actions { gap: 9px; }
  .header-login { padding: 7px 10px; font-size: 11px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 75px 22px 90px; min-height: 0; }
  .hero-content { max-width: none; }
  .hero h1 { font-size: clamp(54px, 15vw, 76px); letter-spacing: -3px; }
  .hero-lead { font-size: 14px; }
  .hero-art { width: 100%; height: 350px; margin-top: 25px; transform: scale(.8); transform-origin: top center; margin-bottom: -45px; }
  .orbit-one { width: 370px; }.orbit-two { width: 300px; }.orbit-three { width: 420px; }
  .world-platform.platform-back { width: 290px; }
  .hero-bottom { left: 22px; right: 22px; font-size: 7px; letter-spacing: 1px; }
  .intro-section { padding-top: 80px; padding-bottom: 70px; }
  .intro-layout { grid-template-columns: 1fr; gap: 25px; }
  .intro-layout h2, .section-heading h2, .platform-copy h2, .closing-section h2 { font-size: 39px; }
  .intro-rule { margin-top: 40px; }
  .areas-section { padding-top: 35px; padding-bottom: 80px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 20px; }
  .area-grid { grid-template-columns: 1fr; }
  .area-card:last-child { grid-column: auto; }
  .area-visual, .area-card:last-child .area-visual { height: 190px; }
  .area-content p { min-height: 0; }
  .platform-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 65px; }
  .closing-section { padding-block: 85px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 35px 20px; padding-block: 45px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-bottom { flex-wrap: wrap; padding-block: 16px; font-size: 8px; }
}
@media (max-width: 390px) {
  .language-switch { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: space-between; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand-block { grid-column: auto; }
}
