/* =========================================================
   JONRORA TECHNOLOGIES — sections.css
   Estilos específicos de cada sección de la página.
   ========================================================= */

/* ---------- Estructura común de secciones ---------- */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}
.section--dark {
  background: var(--c-navy-900);
  color: var(--c-on-dark);
  overflow: hidden;
}
.section--mist { background: var(--c-mist); }
.section__bg {
  position: absolute; inset: 0;
  background: url("../assets/img/circuit-pattern.svg") 0 0 / 320px 320px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  pointer-events: none;
}
.section--dark > .container { position: relative; }

.section h2 {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 26px;
}
.section--dark h2 { color: var(--c-white); }

.section-head { max-width: 840px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__lead { font-size: 1.12rem; color: var(--c-on-dark-muted); max-width: 62ch; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--c-on-dark);
  background:
    radial-gradient(ellipse 55% 65% at 78% 32%, rgba(8, 102, 245, 0.30), transparent 70%),
    linear-gradient(165deg, #061224 0%, #0b1f3a 62%, #0d2543 100%);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(127, 166, 214, 0.06) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(127, 166, 214, 0.06) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(32px, 5vw, 56px);
}
.hero h1 {
  font-size: clamp(2.35rem, 4.7vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--c-white);
  margin-bottom: 28px;
}
.accent { color: var(--c-cyan); }
.hero__lead {
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--c-on-dark-muted);
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Composición gráfica del hero */
.hero-art { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1; }
.hero-art__svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: rgba(174, 192, 214, 0.22); stroke-width: 1.2; stroke-dasharray: 2 9; transform-origin: center; transform-box: fill-box; }
.ring--slow { animation: spin 90s linear infinite; }
.ring--fast { animation: spin 60s linear infinite reverse; stroke: rgba(21, 214, 208, 0.28); }
.frame { fill: none; stroke: rgba(174, 192, 214, 0.26); stroke-width: 1.5; }
.trace { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.trace--cyan { stroke: var(--c-cyan); }
.trace--blue { stroke: var(--c-blue); }
.trace--soft { stroke: rgba(174, 192, 214, 0.4); stroke-width: 3; }
.pulse {
  fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 16 700; stroke-dashoffset: 0;
  animation: pulse 5.5s linear infinite;
}
.pulse:nth-child(2) { animation-delay: -1.4s; }
.pulse:nth-child(3) { animation-delay: -2.8s; }
.pulse:nth-child(4) { animation-delay: -4.1s; }
.node circle:first-child { fill: var(--c-navy-900); stroke-width: 3.5; }
.node--cyan circle:first-child { stroke: var(--c-cyan); }
.node--cyan circle:last-child { fill: var(--c-cyan); }
.node--blue circle:first-child { stroke: var(--c-blue); }
.node--blue circle:last-child { fill: #fff; }
.node--soft circle:first-child { stroke: rgba(174, 192, 214, 0.55); stroke-width: 3; }
.node--soft circle:last-child { fill: rgba(174, 192, 214, 0.8); }
.tile { fill: #fff; }
.tile-shadow { fill: rgba(0, 0, 0, 0.38); filter: blur(14px); }

.hero-pill {
  position: absolute;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  font-family: var(--f-display); font-size: 0.78rem; font-weight: 700;
  color: var(--c-on-dark);
  background: rgba(11, 31, 58, 0.88);
  border: 1px solid var(--c-line-dark);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.hero-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); }
.hero-pill--a { top: 10%; left: -2%; }
.hero-pill--b { top: 52%; right: -4%; animation-delay: -2.3s; }
.hero-pill--c { bottom: 8%; left: 4%; animation-delay: -4.6s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -716; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Datos honestos de la fase actual */
.hero__facts { position: relative; padding-bottom: clamp(36px, 5vw, 56px); }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin: 0; padding-top: 28px;
  border-top: 1px solid var(--c-line-dark);
}
.facts dt {
  margin-bottom: 8px;
  font-family: var(--f-display); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-cyan);
}
.facts dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--c-on-dark); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
  .hero-pill { font-size: 0.7rem; padding: 8px 12px; }
  .hero-pill--a { left: 0; }
  .hero-pill--b { right: 0; }
}

/* =========================================================
   QUIÉNES SOMOS
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.brand-card {
  position: relative;
  display: grid; place-items: center;
  min-height: 460px;
  padding: 56px 40px 72px;
  background:
    url("../assets/img/circuit-pattern.svg") 0 0 / 320px 320px,
    linear-gradient(160deg, #f4f7fa, #e7eef7);
  border: 1px solid var(--c-line);
  border-radius: 28px;
  box-shadow: var(--shadow-1);
}
.brand-card img { width: min(100%, 380px); filter: drop-shadow(0 18px 24px rgba(11, 31, 58, 0.14)); }
.brand-card__label {
  position: absolute; left: 28px; bottom: 24px;
  font-family: var(--f-display); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-blue-600);
}
.about__copy p:not(.eyebrow) { color: var(--c-muted); max-width: 60ch; }
.pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px;
  margin-top: 40px;
}
.pillars li { padding-top: 18px; border-top: 2px solid var(--c-line); }
.pillars li:nth-child(1) { border-top-color: var(--c-navy-900); }
.pillars li:nth-child(2) { border-top-color: var(--c-blue); }
.pillars li:nth-child(3) { border-top-color: var(--c-cyan); }
.pillars li:nth-child(4) { border-top-color: var(--c-navy-700); }
.pillars strong { display: block; margin-bottom: 4px; font-family: var(--f-display); font-size: 1.02rem; }
.pillars span { font-size: 0.92rem; color: var(--c-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 340px; }
}
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* =========================================================
   GESTECDI (producto)
   ========================================================= */
.product { background: var(--c-mist); }
.product__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.product__lead { font-size: 1.12rem; color: var(--c-muted); max-width: 54ch; margin-bottom: 28px; }
.product__note { margin: 16px 0 0; font-size: 0.85rem; color: var(--c-muted); }

.mock { margin: 0; }
.mock__frame {
  overflow: hidden;
  background: var(--c-navy-900);
  border: 1px solid var(--c-navy-700);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
}
.mock__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--c-navy-800);
  border-bottom: 1px solid var(--c-navy-700);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #5b7391; }
.mock__title { font-family: var(--f-display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--c-white); }
.mock__tag {
  margin-left: auto; padding: 3px 10px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-cyan); border: 1px solid rgba(21, 214, 208, 0.5); border-radius: 999px;
}
.mock__body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.mock__side { padding: 18px 12px; background: var(--c-navy-900); border-right: 1px solid var(--c-navy-700); }
.mock__side li {
  margin-bottom: 4px; padding: 9px 12px;
  font-size: 0.78rem; font-weight: 600; color: #9fb3cb;
  border-radius: 8px;
}
.mock__side li.is-on { color: #fff; background: rgba(8, 102, 245, 0.35); box-shadow: inset 3px 0 0 var(--c-cyan); }
.mock__main { padding: 20px; background: #eef3f9; color: var(--c-ink); }
.mock__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.mock__head b { font-family: var(--f-display); font-size: 1rem; }
.mock__head span { font-size: 0.7rem; color: #5d7088; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mock__stats div { padding: 12px 14px; background: #fff; border: 1px solid #dbe5f0; border-radius: 10px; }
.mock__stats small { display: block; font-size: 0.68rem; color: #5d7088; }
.mock__stats b { display: block; margin-top: 4px; font-family: var(--f-display); font-size: 1.5rem; color: var(--c-navy-800); }
.mock__panels { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10px; }
.mock__chart, .mock__list { padding: 14px; background: #fff; border: 1px solid #dbe5f0; border-radius: 10px; }
.mock__panels small { display: block; margin-bottom: 12px; font-size: 0.68rem; color: #5d7088; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--c-cyan), var(--c-blue)); opacity: 0.9; }
.bars i:nth-child(1) { height: 38%; } .bars i:nth-child(2) { height: 58%; } .bars i:nth-child(3) { height: 46%; }
.bars i:nth-child(4) { height: 74%; } .bars i:nth-child(5) { height: 62%; } .bars i:nth-child(6) { height: 86%; } .bars i:nth-child(7) { height: 70%; }
.mock__list i { display: block; height: 14px; margin-bottom: 14px; background: #e3ebf5; border-radius: 4px; }
.mock__list i:nth-child(3) { width: 82%; } .mock__list i:nth-child(4) { width: 64%; } .mock__list i:nth-child(5) { width: 74%; }
.mock figcaption { margin-top: 16px; font-size: 0.82rem; color: var(--c-muted); text-align: center; }

.modules-title {
  margin: clamp(64px, 8vw, 104px) 0 28px;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-blue-600);
}
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.modules li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px;
  padding: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-m);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.modules li:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: #b9cde6; }
.modules .icon { grid-row: span 2; width: 26px; height: 26px; margin-top: 2px; color: var(--c-blue-600); }
.modules strong { font-family: var(--f-display); font-size: 1.02rem; }
.modules span { font-size: 0.9rem; line-height: 1.5; color: var(--c-muted); }

@media (max-width: 960px) {
  .product__grid { grid-template-columns: 1fr; }
  .modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__panels { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
}

/* =========================================================
   SECTORES
   ========================================================= */
.sectors__grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.sectors__head { position: sticky; top: calc(var(--header-h) + 32px); }
.sectors__head p:not(.eyebrow) { color: var(--c-muted); max-width: 44ch; }
.sector-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 30px 0;
  border-top: 1px solid var(--c-line);
  transition: padding-left 0.35s var(--ease);
}
.sector-list li:last-child { border-bottom: 1px solid var(--c-line); }
.sector-list li:hover { padding-left: 12px; }
.sector-list__n { font-family: var(--f-display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--c-blue-600); padding-top: 8px; }
.sector-list h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.025em; margin-bottom: 8px; }
.sector-list p { margin: 0; color: var(--c-muted); max-width: 52ch; }
@media (max-width: 900px) {
  .sectors__grid { grid-template-columns: 1fr; }
  .sectors__head { position: static; }
}

/* =========================================================
   METODOLOGÍA
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.steps li { position: relative; padding-top: 38px; }
.steps li::before {
  content: ""; position: absolute; top: 5px; left: 0; right: -28px; height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), rgba(174, 192, 214, 0.25));
}
.steps li:last-child::before { right: 0; background: rgba(174, 192, 214, 0.25); }
.steps li::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-navy-900); border: 2px solid var(--c-cyan);
}
.steps__n {
  display: block; margin-bottom: 12px;
  font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(21, 214, 208, 0.7);
}
.steps h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--c-white); }
.steps p { margin: 0; font-size: 0.95rem; color: var(--c-on-dark-muted); line-height: 1.6; }
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps li::before { right: 0; }
}
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   VALORES
   ========================================================= */
.values__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.values__grid li {
  padding: 30px 24px 28px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-m);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.values__grid li:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); }
.values__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 22px;
  font-size: 1.4rem; color: var(--c-blue-600);
  background: #e8f0fe; border-radius: 14px;
}
.values__grid h3 { font-size: 1.12rem; margin-bottom: 8px; }
.values__grid p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--c-muted); }
@media (max-width: 1100px) { .values__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values__grid { grid-template-columns: 1fr; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.contact__copy p:not(.eyebrow) { color: var(--c-on-dark-muted); font-size: 1.12rem; max-width: 48ch; }
.contact-card {
  padding: clamp(28px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-l);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.contact-card h3 { font-size: 1.4rem; margin-bottom: 20px; color: var(--c-white); }
.contact-card p { color: var(--c-on-dark-muted); }
.contact-card__small { font-size: 0.92rem; margin-bottom: 26px; }
.contact-card[data-state="live"] [data-contact-pending] { display: none; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* =========================================================
   PÁGINAS LEGALES Y 404
   ========================================================= */
.legal-page { background: var(--c-white); }
.legal-bar { background: var(--c-navy-900); padding: 18px 0; }
.legal-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.legal-bar .brand { color: var(--c-white); }
.legal-bar .back { color: var(--c-on-dark-muted); font-weight: 600; font-size: 0.92rem; }
.legal-bar .back:hover { color: var(--c-cyan); }
.legal { max-width: 780px; margin-inline: auto; padding: 72px var(--gutter) 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--c-muted); }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal .draft {
  margin: 0 0 32px; padding: 16px 18px;
  background: #fff7e0; border: 1px solid #f0d58a; border-radius: 12px;
  color: #5b4300; font-size: 0.95rem;
}
.legal mark { background: #fff2b8; color: #3d2f00; padding: 0 4px; border-radius: 4px; }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); background: var(--c-navy-900); color: var(--c-on-dark); }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--c-cyan); margin: 24px 0 8px; }
.notfound p { color: var(--c-on-dark-muted); margin-bottom: 28px; }

/* Documentación legal: actualización octubre 2026 */
.legal a { color: #1258c4; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #083d8d; }
.legal-updated { font-size: .87rem; color: var(--c-muted); margin: -8px 0 24px; }
.legal li { margin-bottom: 9px; line-height: 1.65; }
.legal p { line-height: 1.75; }
.legal-footer { background: #0b1f3a; color: #e3ecf6; padding: 34px 0; }
.legal-footer .container { max-width: 920px; }
.legal-footer p { color: #e3ecf6; margin: 0 0 8px; font-size: .9rem; }
.legal-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.legal-footer a { color: #bde6fd; text-decoration: underline; text-underline-offset: 3px; }
.legal-footer a:hover { color: #fff; }
@media (max-width: 700px) { .legal { padding-top: 42px; padding-bottom: 64px; } .legal h2 { margin-top: 29px; } .legal-bar .container { align-items: flex-start; } }
