/* SGI page styles */

/* Hero compacto */
.hero-sgi {
  position: relative;
  padding: clamp(18px, 4vw, 28px) 0 clamp(14px, 3vw, 22px);
  background: #f8fafc;
  overflow: hidden;
}

/* Fondo decorativo con blobs animados */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .blob { position: absolute; width: 52vw; height: 52vw; max-width: 820px; max-height: 820px; filter: blur(32px); opacity: .35; border-radius: 50%; }
.hero-bg .b1 { left: -12vw; top: -10vw; background: radial-gradient(closest-side, rgba(30,144,255,.35), transparent 60%); animation: float 14s ease-in-out infinite; }
.hero-bg .b2 { right: -10vw; bottom: -14vw; background: radial-gradient(closest-side, rgba(42,214,160,.35), transparent 60%); animation: float2 16s ease-in-out infinite; }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(12px) } }
@keyframes float2 { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

.hero-sgi-grid {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.hero-sgi .breadcrumb {
  margin-bottom: 12px;
}

.hero-panel { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.06); border-radius: 16px; padding: clamp(12px, 2.2vw, 20px); }
.hero-sgi-title { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; margin: 0 0 8px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 10px 0 0; list-style: none; }
.hero-chips li { font-weight: 600; font-size: 12px; letter-spacing: .25px; color: #065f46; background: linear-gradient(135deg, rgba(42,214,160,.18), rgba(30,144,255,.12)); border: 1px solid rgba(6,95,70,.12); border-radius: 999px; padding: 6px 10px; }

.hero-sgi-subtitle {
  color: #4b5563;
  margin: 0 0 16px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; min-height: clamp(160px, 22vw, 240px); }
.hero-visual::before{
  content: "";
  position: absolute;
  right: 0; top: -12%; bottom: -22%; width: 100%;
  background: linear-gradient(160deg, rgba(30,144,255,.16), rgba(42,214,160,.16));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);
  border-radius: 24px 0 0 24px;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -20% -10% -10% -20%;
  background:
    radial-gradient(120px 80px at 80% 20%, rgba(30,144,255,.15), transparent 70%),
    radial-gradient(120px 80px at 20% 80%, rgba(42,214,160,.15), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero-blob { width: 100%; height: auto; max-width: 520px; display: block; margin: 0 auto; position: relative; z-index: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.08)); }
.hero-rings { position: absolute; inset: auto 0 0 0; height: 40%; background: radial-gradient(closest-side, rgba(0,0,0,.06), transparent 65%); mask-image: radial-gradient(60% 60% at 50% 100%, #000 0%, transparent 70%); pointer-events: none; }

@media (max-width: 992px) {
  .hero-sgi { padding: 18px 0 14px; }
  .hero-sgi-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 170px; }
}

@media (min-width: 1600px) {
  .hero-visual { min-height: 280px; }
  .hero-visual::before { top: -14%; bottom: -20%; }
}

/* Override para separador breadcrumb con ASCII y evitar issues de codificación */
.breadcrumb li+li::before { content: ">"; }

/* Sistemas */
.sgi-systems { padding: 56px 0; }
.systems-header { margin-bottom: 20px; }
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

@media (max-width: 900px) { .systems-grid { grid-template-columns: 1fr; } }

.system-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.system-card[open] { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.system-card summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: default;
  pointer-events: none; /* evitar toggle; mostrar siempre expandido */
  font-weight: 600;
}
.system-card summary::-webkit-details-marker { display: none; }
.system-icon { font-size: 20px; }
.system-title { flex: 1; }
.system-list { margin: 12px 0 0 28px; color: #374151; }
.system-list li { margin: 8px 0; line-height: 1.45; }

/* Certificaciones */
.sgi-certs { padding: 44px 0; background: linear-gradient(180deg, rgba(0,0,0,.02), transparent 60%); }
.cert-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin: 16px 0 8px;
}
@media (max-width: 900px) { .cert-badges { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .cert-badges { grid-template-columns: 1fr; } }

.cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.cert-badge-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 700; font-size: 12px;
  color: #0b3b2e;
  background: conic-gradient(from 180deg, #2ad6a0, #1e90ff, #2ad6a0);
}
.cert-badge-text { font-weight: 800; letter-spacing: .2px; }
.cert-notes { color: #4b5563; margin-top: 8px; }
.cert-cta { margin-top: 14px; }

/* Política SGI */
.sgi-policy { padding: 48px 0; background: linear-gradient(180deg, rgba(0,0,0,.02), transparent 60%); }
.policy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
@media (max-width: 960px){ .policy-grid { grid-template-columns: 1fr; } }
.policy-card { position: relative; background: #fff; border:1px solid #e5e7eb; border-radius: 16px; padding: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.05); }
.policy-card::before { content: '"'; position: absolute; top: -8px; left: -4px; font-size: 64px; line-height: 1; color: rgba(30,144,255,.15); font-weight: 800; }
.policy-card p { margin: 0 0 8px; color: #374151; }
.policy-commitments { margin: 8px 0 0 0; padding: 0; list-style: none; }
.policy-commitments li { position: relative; padding-left: 24px; margin: 8px 0; color: #1f2937; }
.policy-commitments li::before { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(from 180deg, #2ad6a0, #1e90ff, #2ad6a0); }
.policy-note { color: #4b5563; font-size: 14px; margin-top: 6px; }
.policy-side { align-self: stretch; }
.policy-badges { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pbadge { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:12px; box-shadow:0 8px 20px rgba(0,0,0,.05); }
.pbadge .i { width: 42px; height: 42px; display:grid; place-items:center; border-radius:50%; font-weight:700; font-size:12px; color:#0b3b2e; background: conic-gradient(from 180deg, #2ad6a0, #1e90ff, #2ad6a0); }

/* Mapa de procesos */
.sgi-processes { padding: 48px 0; }
.process-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1100px){ .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .process-grid { grid-template-columns: 1fr; } }
.process-col { background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:16px; box-shadow:0 8px 20px rgba(0,0,0,.05); }
.process-col-title { margin:0 0 10px; font-weight:800; font-size:16px; color:#111827; }
.process-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.process-chips li { background:linear-gradient(135deg, rgba(42,214,160,.14), rgba(30,144,255,.10)); border:1px solid rgba(6,95,70,.12); color:#065f46; border-radius:999px; padding:6px 10px; font-weight:600; font-size:12px; letter-spacing:.2px; }

/* Layout principal: imagen izquierda + contenido derecha */
.process-layout{
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* ajusta proporción si quieres (ej 1fr 1fr) */
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1400px){
  .process-layout {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px){.process-layout { grid-template-columns: repeat(1, minmax(0,1fr)); }}
/* Bloque de imagen */
.process-media{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  background: #fff;
  min-height: 320px; /* para que se vea con altura */
  width: 100%;
}

/* La imagen ocupa todo el contenedor */
.process-media img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* recorta sin deformar */
  display: block;
}

/* CTA final */
.sgi-cta { padding: 48px 0; }
.sgi-cta-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, rgba(42,214,160,.06), rgba(30,144,255,.06));
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}
.sgi-cta-title { margin: 0 0 6px; }
.sgi-cta-subtitle { margin: 0; color: #4b5563; }
.sgi-cta-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 900px) {
  .sgi-cta-grid { grid-template-columns: 1fr; }
  .sgi-cta-actions { justify-content: flex-start; }
}
.breadcrumb ol { list-style: none; display: flex; padding: 0; margin: 0; align-items: center; flex-wrap: wrap; }
.breadcrumb li { color: #6b7280; font-size: 14px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb li+li::before { content: "›"; color: #9ca3af; margin: 0 6px; }
/* Hero interno estándar (reutiliza patrón de productos) */
.hero-internal {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 72px; /* altura del header */
}
.hero-internal-background { position: absolute; inset: 0; z-index: 0; }
.hero-internal-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-internal-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,130,194,0.85) 0%, rgba(0,155,168,0.75) 100%); z-index: 1; }
.hero-internal-content { position: relative; z-index: 2; width: 100%; padding: var(--space-6) 0; }
.breadcrumb { margin-bottom: var(--space-4); }
.breadcrumb ol { display:flex; flex-wrap:wrap; align-items:center; gap: var(--space-2); font-size:14px; color: rgba(255,255,255,0.9); }
.breadcrumb li { display:flex; align-items:center; gap: var(--space-2); }
.breadcrumb li:not(:last-child)::after { content:'/'; opacity:.6; }
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: underline; text-decoration-thickness:1px; text-underline-offset:2px; transition: opacity var(--duration-normal) ease; }
.breadcrumb a:hover { opacity:.8; }
.breadcrumb li[aria-current="page"] { font-weight:600; color: var(--color-white); }
.hero-internal-title { font-size: 36px; font-weight: 800; color: var(--color-white); margin-bottom: var(--space-3); line-height: 1.2; }
.hero-internal-subtitle { font-size: var(--font-body-l); color: rgba(255,255,255,0.95); max-width: 700px; line-height: 1.5; }
/* Page Header (Aurora Flow) */
.page-header {   position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 72px;
  background: linear-gradient(135deg, #0082C2 0%, #009BA8 100%); }
.page-header-image {   position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5; /* Por encima de las auroras */
  display: flex;
  justify-content: flex-end;
  pointer-events: none; }
.page-header-image img { width: 50%;
  max-width: calc((1200px * 0.50));
  height: 100%;
  object-fit: cover;
  margin-right: calc((100vw - 1200px) / 2);
  border-radius: 12px 0 0 12px; /* Solo redondeo en el lado izquierdo */

  /* Sombra interna para efecto empotrado en los lados */
  box-shadow:
          inset 3px 0 12px rgba(0,0,0,.35),
          inset 8px 0 20px rgba(0,0,0,.2),
          inset -2px 0 8px rgba(0,0,0,.15),
          -2px 0 8px rgba(0,0,0,.3);

  /* Borde sutil para definir los bordes laterales */
  border-left: 2px solid rgba(255,255,255,.15);
  border-right: 2px solid rgba(0,0,0,.2);

  position: relative; }

/* En pantallas menores al container, ocupa el 30% */
@media (max-width: 1240px) {
  .page-header-image img {
    margin-right: 20px;
  }
}

.page-header-aurora { position: absolute; left: 30%; top: 0; right: 0; height: 100%; overflow: hidden; z-index: 2; }
.aurora-layer { position: absolute; width: 200%; height: 200%; opacity: .6; mix-blend-mode: screen; filter: blur(60px); }
.aurora-layer-1 { background: radial-gradient(circle at 30% 50%, #0082C2 0%, transparent 50%); animation: aurora-flow-1 12s ease-in-out infinite; }
.aurora-layer-2 { background: radial-gradient(circle at 70% 30%, #009BA8 0%, transparent 50%); animation: aurora-flow-2 15s ease-in-out infinite; }
.aurora-layer-3 { background: radial-gradient(circle at 50% 70%, #00C2B8 0%, transparent 50%); animation: aurora-flow-3 18s ease-in-out infinite; }
@keyframes aurora-flow-1 { 0%,100%{ transform: translate(-20%,-20%) scale(1);} 50%{ transform: translate(10%,10%) scale(1.1);} }
@keyframes aurora-flow-2 { 0%,100%{ transform: translate(10%,10%) scale(1);} 50%{ transform: translate(-20%,-10%) scale(1.15);} }
@keyframes aurora-flow-3 { 0%,100%{ transform: translate(0%,15%) scale(1);} 50%{ transform: translate(15%,-15%) scale(1.1);} }
.page-header-particles { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.particle { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,.6); border-radius: 50%; animation: particle-float 8s ease-in-out infinite; }
.particle:nth-child(1){ left:35%; top:20%; animation-delay:0s; animation-duration:6s; }
.particle:nth-child(2){ left:50%; top:60%; animation-delay:1s; animation-duration:8s; }
.particle:nth-child(3){ left:70%; top:30%; animation-delay:2s; animation-duration:7s; }
.particle:nth-child(4){ left:85%; top:70%; animation-delay:1.5s; animation-duration:9s; }
.particle:nth-child(5){ left:60%; top:80%; animation-delay:.5s; animation-duration:7.5s; }
@keyframes particle-float { 0%,100%{ transform: translate(0,0); opacity:0;} 10%{opacity:1;} 90%{opacity:1;} 100%{ transform: translate(10px,-30px); opacity:0;} }
.page-header-content { position: relative; z-index: 4; color: var(--color-white); }
.page-breadcrumb { margin-bottom: 12px; }
.page-breadcrumb ol { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:500; }
.page-breadcrumb li { display:flex; align-items:center; gap:8px; color: rgba(255,255,255,.85); }
.page-breadcrumb li:not(:last-child)::after { content: ">"; font-size: 14px; opacity:.6; }
.page-breadcrumb a { color: rgba(255,255,255,.85); text-decoration:none; transition: color 200ms ease; position: relative; }
.page-breadcrumb a::after { content:""; position:absolute; bottom:-2px; left:0; width:0; height:1px; background: rgba(255,255,255,.9); transition: width 200ms ease; }
.page-breadcrumb a:hover { color:#fff; }
.page-breadcrumb a:hover::after { width:100%; }
.page-breadcrumb li[aria-current="page"] { color:#fff; font-weight:600; }
.page-header-title { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.1; letter-spacing: -0.5px; text-shadow: 0 2px 20px rgba(0,0,0,.15); animation: title-glow 3s ease-in-out infinite; }
@keyframes title-glow { 0%,100%{ text-shadow:0 2px 20px rgba(0,0,0,.15);} 50%{ text-shadow:0 2px 30px rgba(255,255,255,.2);} }
.page-header-subtitle { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.9); letter-spacing: .5px; text-transform: uppercase; }
.page-header-lines { position:absolute; inset:0; pointer-events:none; z-index:3; opacity:.3; }
.deco-line { position:absolute; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); height:1px; }
.deco-line-1 { top:30%; left:30%; right:0; animation: line-expand 4s ease-in-out infinite; }
.deco-line-2 { bottom:35%; left:35%; right:0; animation: line-expand 4s ease-in-out infinite 2s; }
@keyframes line-expand { 0%,100%{ transform: scaleX(.8); opacity:.2;} 50%{ transform: scaleX(1); opacity:.4;} }

/* =========================
   Misión y Visión (MV)
   ========================= */

.mv {
  padding: 52px 0;
}

.mv-grid {
  display: grid;
  gap: 16px;
}

.mv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .mv-cards {
    grid-template-columns: 1fr;
  }
}

.mv-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.mv-card-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 18px;
  color: #111827;
}

.mv-card p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
}
.mv-card p { margin: 0; color: #374151; line-height: 1.6; }

.system-icon svg {
  color: #388153; /* verde industrial */
}

.system-card summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
