/* Seguridad y datos (10-nov-2026, v2 "mas visual"). Mismo lenguaje que el
   resto de la web: hero de video con burbujas de cristal (como Asesoria y la
   home), fotos de campo con tarjetas de cristal encima (como las paginas de
   funcionalidad), banda oscura y cierre con foto. Naranja solo para accion. */
.sgx { --sg-ink: #16140F; --sg-grey: #5F5E5A; --sg-line: #E3DED3; --sg-soft: rgba(233,228,217,.5); --sg-or: #FD801D; --sg-lt: #F7F0E4;
  --sg-x: max(40px, calc((100vw - 1200px) / 2 + 20px)); color: var(--sg-ink); background: #fff; }
.sgx-w { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sgx h2, .sgx h3 { font-weight: 400; }

/* Botones y enlaces */
.sgx-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.sgx-btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: 999px; background: var(--sg-or); color: var(--sg-ink) !important; font-size: 16px; font-weight: 500; transition: transform .15s, background .15s; }
.sgx-btn:hover { background: #ec7410; transform: translateY(-1px); }
.sgx-lnk { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--sg-lt); }
.sgx-lnk:hover { text-decoration: underline; }
.sgx-lnk--dk { color: var(--sg-ink); margin-top: 26px; }
.sgx-lnk svg, .sgx-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sgx-lnk svg { stroke: var(--sg-or); }
.sgx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--sg-grey); margin-bottom: 18px; }
.sgx-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }

/* 1. Hero de video */
.sgx-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(88vh, 780px); background: var(--sg-ink); color: var(--sg-lt); border-radius: 0 0 44px 44px; }
.sgx-hero__bg { position: absolute; inset: 0; z-index: 0; }
.sgx-hero__bg video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.sgx-hero__bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,14,10,.82), rgba(16,14,10,.3) 58%, rgba(16,14,10,.1)), linear-gradient(0deg, rgba(16,14,10,.62), transparent 48%), linear-gradient(180deg, rgba(16,14,10,.45), transparent 26%); }
.sgx-hero__in { position: relative; z-index: 3; padding: 150px 24px 80px var(--sg-x); max-width: calc(var(--sg-x) + 680px); }
.sgx-crumb { display: flex; gap: 10px; font-size: 14px; color: rgba(247,240,228,.72); margin-bottom: 22px; }
.sgx-crumb a { color: inherit; }
.sgx-crumb a:hover { color: var(--sg-lt); text-decoration: underline; }
.sgx-crumb [aria-current] { color: var(--sg-lt); }
.sgx-hero h1 { margin: 0; max-width: 15ch; font-weight: 400; font-size: clamp(38px, 4.8vw, 66px); line-height: 1.06; letter-spacing: -.035em; color: var(--sg-lt); text-wrap: balance; }
.sgx-lead { margin: 18px 0 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: rgba(247,240,228,.84); }

/* Cristal (mismo que .vx-bub de la home y .gc de funcionalidad) */
.sgx-q, .sgx-g, .sgx-card { color: var(--sg-lt); background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.sgx-bub { position: absolute; z-index: 4; right: var(--sg-x); top: 50%; transform: translateY(-50%); width: min(340px, 31vw); display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.sgx-q { width: 100%; padding: 14px 18px 15px; border-radius: 22px; font-size: 15px; line-height: 1.38; opacity: 0; }
.sgx-q .bl { display: flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .03em; color: rgba(247,240,228,.7); margin-bottom: 4px; }
.sgx-q svg { width: 15px; height: 15px; fill: none; stroke: var(--sg-lt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sgx-q em { display: block; font-style: normal; font-size: 12px; color: rgba(247,240,228,.7); margin-top: 6px; }
.sgx-q.ok { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; width: auto; align-self: flex-start; }
.sgx-q.ok svg { width: 17px; height: 17px; stroke-width: 2.4; }
.sgx-q1 { animation: sgx-a 15s infinite; }
.sgx-q2 { animation: sgx-b 15s infinite; }
.sgx-q3 { animation: sgx-c 15s infinite; }
@keyframes sgx-a { 0%, 6% { opacity: 0; transform: translateY(14px); } 12%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes sgx-b { 0%, 22% { opacity: 0; transform: translateY(14px); } 29%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes sgx-c { 0%, 48% { opacity: 0; transform: translateY(14px); } 55%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .sgx-q { animation: none; opacity: 1; } }

/* Secciones */
.sgx-sec { padding: 130px 0; }
.sgx-sec--soft { background: var(--sg-soft); }
.sgx-head { max-width: 640px; }
.sgx-head h2, .sgx-split h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.sgx-sub { margin: 20px 0 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--sg-grey); max-width: 52ch; }
.sgx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.sgx-split--top { align-items: end; }
.sgx-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--sg-line); }
.sgx-ic svg, .sgx-gi svg { width: 22px; height: 22px; fill: none; stroke: var(--sg-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Foto con tarjeta de cristal */
.sgx-ph { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #2a2620; }
.sgx-ph--wide { aspect-ratio: 16 / 11; }
.sgx-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgx-ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,14,10,.55), transparent 55%); pointer-events: none; }
.sgx-g { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; max-width: 380px; border-radius: 22px; padding: 18px 20px; }
.sgx-gh { display: flex; align-items: center; gap: 12px; }
.sgx-gi { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); }
.sgx-g .sgx-gi svg, .sgx-card .sgx-gi svg { stroke: var(--sg-lt); }
.sgx-gh small { display: block; font-size: 12px; letter-spacing: .03em; color: rgba(247,240,228,.72); }
.sgx-gh b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.sgx-gh b a { color: var(--sg-lt); border-bottom: 1px solid rgba(247,240,228,.4); word-break: break-all; }
.sgx-gh b a:hover { border-bottom-color: var(--sg-lt); }
.sgx-g p { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: rgba(247,240,228,.8); }
.sgx-roles, .sgx-log { list-style: none; margin: 14px 0 0; padding: 0; }
.sgx-roles li, .sgx-log li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; }
.sgx-roles b { font-weight: 500; }
.sgx-roles span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); white-space: nowrap; }
.sgx-log li { justify-content: flex-start; }
.sgx-log time { flex: none; font-size: 12px; color: rgba(247,240,228,.7); font-variant-numeric: tabular-nums; }

/* 2. Principios */
.sgx-pr { list-style: none; margin: 40px 0 0; padding: 0; }
.sgx-pr li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--sg-line); }
.sgx-pr li:last-child { border-bottom: 1px solid var(--sg-line); }
.sgx-pr span { font-size: 13px; letter-spacing: .06em; color: var(--sg-grey); padding-top: 4px; }
.sgx-pr h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.sgx-pr p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--sg-grey); }

/* 3. Banda oscura */
.sgx-dark { position: relative; overflow: hidden; isolation: isolate; background: var(--sg-ink); color: var(--sg-lt); }
.sgx-dark__bg { position: absolute; inset: 0; z-index: 0; background: url('img/funcionalidades/hero-analisis-del-territorio.jpg') center / cover no-repeat; }
.sgx-dark__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,14,10,.88), rgba(16,14,10,.55) 60%, rgba(16,14,10,.7)), radial-gradient(900px 600px at 80% 0, rgba(253,128,29,.12), transparent 60%); }
.sgx-dark__in { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 130px; }
.sgx-dark h2 { color: var(--sg-lt); }
.sgx-dark .sgx-eyebrow { color: rgba(247,240,228,.72); }
.sgx-dark .sgx-sub { color: rgba(247,240,228,.78); }
.sgx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 60px; }
.sgx-card { border-radius: 22px; padding: 24px 22px 26px; }
.sgx-card h3, .sgx-pts h3 { margin: 22px 0 0; font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.sgx-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: rgba(247,240,228,.78); }

/* 4. Privacidad */
.sgx-split--rev .sgx-ph { aspect-ratio: 5 / 4; }
.sgx-tags { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sgx-tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--sg-line); font-size: 14px; color: var(--sg-ink); background: #fff; }

/* 5. Accesos y permisos */
.sgx-pts { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.sgx-pts li { border-top: 1px solid rgba(22,20,15,.14); padding-top: 24px; }
.sgx-pts p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--sg-grey); }

/* 6. Preguntas frecuentes */
.sgx-faqw { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.sgx-faqw .sgx-head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.sgx-faq { border-top: 1px solid rgba(22,20,15,.14); }
.sgx-faq details { border-bottom: 1px solid rgba(22,20,15,.14); }
.sgx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; line-height: 1.35; }
.sgx-faq summary::-webkit-details-marker { display: none; }
.sgx-faq summary:focus-visible { outline: 2px solid var(--sg-ink); outline-offset: 4px; border-radius: 4px; }
.sgx-faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.sgx-faq summary i::before, .sgx-faq summary i::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 1.6px; background: var(--sg-ink); transition: transform .25s; }
.sgx-faq summary i::after { transform: rotate(90deg); }
.sgx-faq details[open] summary i::after { transform: rotate(0); }
.sgx-faq p { margin: 0; padding: 0 40px 24px 0; font-size: 16px; line-height: 1.6; color: var(--sg-grey); max-width: 62ch; }

/* 7. Cierre con foto (como Asesoria) */
.sgx-cta { position: relative; overflow: hidden; isolation: isolate; padding: 150px 24px 170px; text-align: center; background: var(--sg-ink); color: #F3EDE0; }
.sgx-cta__bg { position: absolute; inset: -5%; z-index: -3; background: var(--sg-ink) url('img/asesoria/cta_asesoria_look.jpg') center / cover no-repeat; }
.sgx-cta__ov { position: absolute; inset: 0; z-index: -2; background: linear-gradient(rgba(14,15,10,.82), rgba(14,15,10,.96)), radial-gradient(900px 600px at 50% 0, rgba(253,128,29,.16), transparent 60%); }
.sgx-cta .sgx-eyebrow { color: rgba(243,237,224,.7); margin: 0; }
.sgx-cta h2 { margin: 30px auto 24px; font-weight: 300; font-size: clamp(40px, 6vw, 92px); line-height: 1; letter-spacing: -.04em; color: #F3EDE0; }
.sgx-cta p { margin: 0 auto 40px; max-width: 46ch; font-size: 18px; line-height: 1.55; color: rgba(243,237,224,.75); }
.sgx-cta .sgx-btn { padding: 20px 32px; }

/* Recursos marcado en el menu */
.nav__dropdown-toggle[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

@media (max-width: 1020px) {
  .sgx-bub { display: none; }
  .sgx-hero__in { padding: 140px 24px 64px; max-width: none; }
  .sgx-split, .sgx-faqw { grid-template-columns: 1fr; gap: 44px; }
  .sgx-split--rev .sgx-ph { order: 2; }
  .sgx-ph { aspect-ratio: 4 / 3; }
  .sgx-cards, .sgx-pts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgx-sec { padding: 100px 0; }
  .sgx-dark__in { padding-top: 100px; padding-bottom: 100px; }
}
@media (max-width: 620px) {
  .sgx-hero { border-radius: 0 0 28px 28px; min-height: 640px; }
  .sgx-cards, .sgx-pts { grid-template-columns: 1fr; gap: 16px; }
  .sgx-pts { gap: 28px; }
  .sgx-sec { padding: 84px 0; }
  .sgx-ph, .sgx-ph--wide, .sgx-split--rev .sgx-ph { aspect-ratio: 4 / 5; border-radius: 22px; }
  .sgx-g { left: 14px; right: 14px; bottom: 14px; }
  .sgx-faq summary { font-size: 17px; }
  .sgx-cta { padding: 110px 20px 120px; }
}
