/* NISPLY · grc.css — páginas de las dos líneas de negocio (/grc/, /grc/fundadores/, /automatizacion-y-seguridad/
   y sus versiones inglesas). Solo lo que no está en site.css y apple.css. */

/* Módulos: cuatro paneles. El señalado se ensancha y enseña su descripción; la norma, en grande, hace de logotipo */
.paneles { display: flex; gap: 12px; height: 380px; margin-top: 8px; }
.panel {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px; border-radius: 30px; background: var(--card-bg); border: 1px solid var(--bd-40);
  cursor: pointer; overflow: hidden; outline: none;
  transition: flex-grow .6s cubic-bezier(.2, .8, .2, 1), background-color .3s, border-color .3s;
}
.panel.is-on { flex-grow: 3.2; background: var(--bg-80); border-color: var(--bd-50); }
.panel:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.panel__cab { min-width: 0; }
.panel__marca {
  margin: 0; font-size: clamp(2.5rem, 4.4vw, 3.5rem); font-weight: 500; letter-spacing: -.045em; line-height: .9;
  color: var(--fg-50); white-space: nowrap; transition: font-size .5s cubic-bezier(.2, .8, .2, 1), color .3s;
}
.panel.is-on .panel__marca { font-size: clamp(3.5rem, 7vw, 6rem); color: var(--foreground); }
.panel__nombre { margin: 12px 0 0; font-size: 1rem; font-weight: 500; color: var(--fg-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel__cuerpo { max-width: 26rem; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .45s; }
.panel.is-on .panel__cuerpo { opacity: 1; transform: none; transition-delay: .2s; }
.panel:not(.is-on) .panel__cuerpo { height: 0; overflow: hidden; }
.panel__cuerpo p { margin: 0; color: var(--fg-60); line-height: 1.6; }
.panel__enlace { display: inline-block; margin-top: 14px; font-weight: 500; color: var(--accent); }
.panel__estado { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--fg-60); white-space: nowrap; }
.panel__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-30); flex: none; }
.panel--ok .panel__punto { background: var(--success); }
.panel--dev .panel__punto { background: var(--pending-fg); }

/* Entidades fundadoras */
.cta--fund { text-align: left; }
.cta--fund .cta__in { max-width: 44rem; }

/* Contador de plazas: diez arcos en círculo (grc.js enciende uno por plaza ocupada) */
.anillo { position: relative; width: 168px; height: 168px; flex: none; }
.anillo--grande { width: 220px; height: 220px; }
.anillo__svg { width: 100%; height: 100%; display: block; }
.anillo__arco { fill: none; stroke: var(--bd-50); stroke-width: 7; stroke-linecap: round; transition: stroke .5s; }
.anillo__arco.is-ocupada { stroke: var(--accent); transition-delay: calc(var(--i) * 120ms); }
.anillo__centro {
  position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; line-height: 1.2;
}
.anillo__n { font-size: 3rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.anillo--grande .anillo__n { font-size: 4rem; }
.anillo__txt { margin-top: 4px; font-size: .8125rem; color: var(--fg-60); }
/* Sin ninguna plaza ocupada: una luz recorre el círculo despacio, esperando a la primera empresa */
.anillo--esperando .anillo__arco { animation: anillo-ronda 3.6s linear infinite; animation-delay: calc(var(--i) * 360ms); }
@keyframes anillo-ronda {
  0%, 30%, 100% { stroke: var(--bd-50); }
  8% { stroke: var(--accent); }
}

/* Cabecera de /grc/: texto a la izquierda y plazas a la derecha */
.hero--grc .hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero--grc .hero__inner { grid-template-columns: minmax(0, 1fr) 300px; } }
.hero__plazas { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--bd-40); background: var(--bg-50); }
.hero__plazas-texto p { margin: 0; color: var(--fg-70); font-size: .9375rem; line-height: 1.55; }
.hero__plazas .hero__plazas-tit { margin-bottom: 6px; font-weight: 500; color: var(--foreground); }
.hero__plazas-enlace { display: inline-block; margin-top: 10px; font-weight: 500; color: var(--accent); }

/* Resumen del programa en /grc/ y cabecera de /grc/fundadores/ */
.cta--fund { text-align: left; }
.fund-resumen { display: grid; gap: 32px; align-items: center; max-width: none; }
@media (min-width: 900px) { .fund-resumen { grid-template-columns: 220px minmax(0, 1fr); } }
.fund-hero__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .fund-hero__in { grid-template-columns: minmax(0, 1fr) 220px; } }
.fund-cols { display: grid; gap: 1.5rem; }
.fund-cols ul { margin: 0; padding-left: 1.1rem; color: var(--fg-70); line-height: 1.6; }
.fund-cols li + li { margin-top: .4rem; }
.volver { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.volver svg { width: 1rem; height: 1rem; }

/* Pasos numerados (solo para secuencias de verdad) */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: paso; }
@media (min-width: 768px) { .pasos { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
.pasos__paso { counter-increment: paso; padding: 24px; border-radius: var(--radius); border: 1px solid var(--bd-40); background: var(--card-bg); }
.pasos__paso::before { content: counter(paso); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 14px;
  border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-weight: 600; font-size: .875rem; }
.pasos__paso h3 { margin: 0 0 .4rem; font-size: 1.125rem; }
.pasos__paso p { margin: 0; color: var(--fg-60); line-height: 1.6; }

/* Una columna de tarjetas al lado del texto */
.card-grid--1 { display: grid; gap: 1.5rem; }

/* En pantallas estrechas los paneles se apilan y se abre el que se toca */
@media (max-width: 760px) {
  .paneles { flex-direction: column; height: auto; }
  .panel { flex: none; padding: 22px; gap: 18px; }
  .panel__marca, .panel.is-on .panel__marca { font-size: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .panel, .panel__marca, .panel__cuerpo { transition: none; }
  .anillo__arco { transition: none; }
  .anillo--esperando .anillo__arco { animation: none; }
}

/* Título grande en la cabecera de /grc/fundadores/ (no es un .hero, así que site.css no lo agranda) */
.fund-hero h1 { margin: 6px 0 18px; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.fund-hero .lead { max-width: 38rem; font-size: 1.125rem; color: var(--fg-70); line-height: 1.6; }
.fund-hero .page-kicker { margin-bottom: 28px; }

/* Cabecera de /grc/: el anillo arriba y centrado en su tarjeta */
.hero__plazas { align-items: center; text-align: center; }
.hero__plazas-texto { text-align: left; }
.anillo__centro { gap: 2px; }
.anillo__n { font-variant-numeric: tabular-nums; color: var(--foreground); }

/* Qué significa GRC, en una línea bajo los botones */
.grc-letras { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 10px 28px; color: var(--fg-60); font-size: .9375rem; }
@media (min-width: 768px) { .grc-letras { grid-template-columns: repeat(3, auto); justify-content: start; } }
.grc-letras b { display: block; color: var(--foreground); font-weight: 500; }

/* Rejilla compacta: qué ofrece el Gestor ENS, para quién es y el equipo */
.ofrece { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border: 1px solid var(--bd-40); border-radius: var(--radius);
  overflow: hidden; background: var(--bd-40); }
@media (min-width: 720px) { .ofrece { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .ofrece { grid-template-columns: repeat(4, 1fr); } .ofrece--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 1199px) { .ofrece--3 { grid-template-columns: repeat(3, 1fr); } }
.ofrece__item { padding: 28px 26px 30px; background: var(--background); transition: background-color .3s; }
.ofrece__item:hover { background: var(--muted-50); }
.ofrece__item h3 { margin: 0 0 .6rem; font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.ofrece__item p { margin: 0; color: var(--fg-60); line-height: 1.6; font-size: .9375rem; }
.section__head p a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.section__head p strong { color: var(--foreground); font-weight: 600; }
.mas-equipo { margin: 1.75rem 0 0; }
