/* Secciones v3: cada pagina con su propia estructura. Se carga despues de site.css */

/* Inicio: explorador de lineas (lista con progreso + escenario) */
.lines__grid { display: grid; gap: 1.2rem; }
.lines__stage { position: relative; order: -1; aspect-ratio: 16 / 11; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.lines__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.lines__slide.is-active { opacity: 1; visibility: visible; }
.lines__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s linear; }
.lines__slide.is-active img { transform: scale(1); }
.lines__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 9, .85)); }
.lines__go { position: absolute; left: 1.1rem; bottom: 1rem; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--c); color: var(--text); font-weight: 500; font-size: .92rem; }
.lines__list { display: grid; align-content: start; }
.lines__item { position: relative; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 1rem 0 1rem 1rem; color: var(--muted); transition: color .4s; }
.lines__item:last-child { border-bottom: 1px solid var(--line); }
.lines__item::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 4px; height: 1.3rem; border-radius: 4px; background: var(--c); opacity: .35; transition: opacity .4s, height .4s var(--ease); }
.lines__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.lines__name { font-size: 1.45rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.lines__count { font-size: .9rem; font-variant-numeric: tabular-nums; }
.lines__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); font-size: .98rem; font-weight: 300; }
.lines__desc > span { overflow: hidden; }
.lines__bar { display: block; height: 2px; overflow: hidden; }
.lines__bar i { display: block; height: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; }
.lines__item:hover, .lines__item.is-active { color: var(--text); }
.lines__item.is-active::before { opacity: 1; height: 1.6rem; }
.lines__item.is-active .lines__desc { grid-template-rows: 1fr; padding-top: .35rem; color: #cfd2c4; }
.lines__item.is-active .lines__bar { margin-top: .9rem; background: var(--line); }

/* Inicio: proceso (titulo fijo + pasos) */
.process__grid { display: grid; gap: 2.2rem; }
.process__head h2 { font-size: clamp(2rem, 6.4vw, 3.4rem); }
.process__head p { color: var(--muted); font-size: 1.08rem; margin: .9rem 0 1.6rem; max-width: 34ch; }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.process__step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; transition: border-color .4s; }
.process__step:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.process__step i { font-size: 1.9rem; color: var(--accent); }
.process__step h3 { font-size: 1.35rem; margin: 1.6rem 0 .4rem; }
.process__step p { color: var(--muted); font-size: .98rem; }

/* Inicio: mosaico de cifras, mision, vision y beneficios */
.values { position: relative; overflow: hidden; isolation: isolate; }
.values::before, .values::after { content: ""; position: absolute; z-index: -1; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; border-radius: 50%; filter: blur(110px); opacity: .18; animation: drift 18s ease-in-out infinite alternate; }
.values::before { left: -12%; top: -10%; background: conic-gradient(from 40deg, #f5b301, #e0288c, #f5b301); }
.values::after { right: -12%; bottom: -14%; background: conic-gradient(from 200deg, #1193e0, #94b223, #1193e0); animation-delay: -9s; }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.tile { position: relative; overflow: hidden; background: rgba(19, 21, 15, .82); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; display: flex; flex-direction: column; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(169, 201, 48, .16), transparent 62%); }
.tile:hover::before { opacity: 1; }
.tile__n { font-size: clamp(3.6rem, 16vw, 6.5rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.tile__l { margin-top: .6rem; color: var(--muted); }
.tile__dots { display: flex; gap: .4rem; padding-top: 1.2rem; }
.tile__dots i { width: 14px; height: 14px; border-radius: 50%; }
.tile--co, .tile--txt { grid-column: 1 / -1; }
.tile--co > i { font-size: 1.8rem; color: var(--accent); }
.tile--co h3 { font-size: 1.5rem; margin: 1rem 0 .3rem; }
.tile--co p, .tile--txt p { color: var(--muted); }
.tile--txt h3 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: .8rem; }
.tile--perk { align-items: flex-start; gap: .9rem; font-weight: 500; line-height: 1.2; }
.tile--perk img { width: 48px; height: 48px; }

/* Catalogo: cabecera tipografica + filas por linea */
.cat-head { padding: calc(var(--nav-h) + 2.5rem) 0 1rem; background: radial-gradient(60% 120% at 80% 0%, rgba(169, 201, 48, .13), transparent 70%); }
.cat-head h1 { font-size: clamp(2.8rem, 11vw, 6rem); letter-spacing: -.04em; }
.cat-head p { color: var(--muted); font-size: 1.08rem; margin-top: .8rem; max-width: 44ch; }
.line { padding: 2rem 0 1rem; }
.line + .line { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.line__head { display: grid; gap: .4rem; margin-bottom: 1.4rem; padding-left: 1rem; border-left: 4px solid var(--c); }
.line__head h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.line__head p { color: var(--muted); max-width: 56ch; }
.line__count { font-size: .88rem; font-weight: 500; color: color-mix(in srgb, var(--c) 75%, #fff); }

/* Ficha: carril horizontal de la misma linea */
.rail { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -1rem; padding: .3rem 1rem 1rem; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.rail .card { flex: 0 0 62%; max-width: 250px; scroll-snap-align: start; }

/* Empleos: cabecera partida + acordeon */
.jobs-head { padding: calc(var(--nav-h) + 2rem) 0 1rem; }
.jobs-head__grid { display: grid; gap: 1.8rem; }
.jobs-head h1 { font-size: clamp(2.6rem, 10vw, 5rem); letter-spacing: -.04em; }
.jobs-head p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 40ch; }
.jobs-head img { border-radius: var(--r); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.roles { padding-top: 2.5rem; }
.role { border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-size: clamp(1.4rem, 5.4vw, 2.3rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--muted); transition: color .3s; }
.role summary::-webkit-details-marker { display: none; }
.role summary:hover, .role[open] summary { color: var(--text); }
.role summary i { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: 1.2rem; transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s; }
.role[open] summary i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.role__body { display: grid; grid-template-columns: 96px 1fr; gap: 1.2rem; align-items: start; padding: 0 0 1.8rem; }
.role__body p { color: var(--muted); margin-bottom: 1.1rem; max-width: 58ch; }

/* Contacto: pantalla dividida */
.split { display: grid; }
.split__side { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 2.5rem) 1rem 2.5rem; }
.split__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.split__side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 12, 9, .7), rgba(11, 12, 9, .93)); }
.split h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); letter-spacing: -.035em; }
.split__txt > p { color: #d6d9cb; font-size: 1.1rem; margin-top: .8rem; }
.split__info { margin-top: 2rem; }
.split__info li { display: flex; gap: .9rem; padding: .95rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.split__info li > i { font-size: 1.4rem; color: var(--accent); margin-top: .1rem; }
.split__info strong { display: block; font-weight: 500; }
.split__info span, .split__info a { color: #cfd2c4; font-size: .96rem; }
.split__info a:hover { color: var(--accent); }
.split__form { padding: 2.5rem 1rem 4rem; }
.split__form-in { max-width: 34rem; margin-inline: auto; }

@media (min-width: 600px) {
  .process__steps { grid-template-columns: 1fr 1fr; }
  .rail .card { flex-basis: 220px; }
  .role__body { grid-template-columns: 150px 1fr; gap: 2rem; }
}

@media (min-width: 900px) {
  .lines__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: stretch; }
  .lines__stage { order: 0; aspect-ratio: auto; min-height: 540px; }
  .lines__item { padding: 1.15rem 0 1.15rem 1.2rem; }
  .lines__name { font-size: 1.7rem; }
  .lines__go { left: 1.5rem; bottom: 1.4rem; }

  .process__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .process__head { position: sticky; top: calc(var(--nav-h) + 3rem); }
  .process__steps { gap: 1.1rem; padding-bottom: 2.5rem; }
  .process__step { padding: 2rem; }
  .process__step:nth-child(even) { position: relative; top: 2.5rem; }

  .mosaic { grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
  .tile { padding: 2rem; }
  .tile--num, .tile--lines, .tile--co { grid-column: span 4; min-height: 260px; justify-content: flex-end; }
  .tile--lines .tile__dots { order: -1; padding: 0; margin-bottom: auto; }
  .tile--txt { grid-column: span 6; }
  .tile--perk { grid-column: span 3; flex-direction: row; align-items: center; }

  .cat-head { padding: calc(var(--nav-h) + 4.5rem) 0 1.5rem; }
  .line { padding: 3rem 0 1.5rem; }
  .line__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding-left: 1.4rem; }
  .line__head p { grid-column: 1; }
  .line__count { grid-column: 2; grid-row: 1 / span 2; }
  .rail { margin-inline: 0; padding-inline: 0; }

  .jobs-head { padding: calc(var(--nav-h) + 4rem) 0 1rem; }
  .jobs-head__grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; }
  .role__body { grid-template-columns: 190px 1fr; gap: 3rem; padding-bottom: 2.5rem; }
  .role__body p { font-size: 1.1rem; }

  .split { grid-template-columns: 1fr 1fr; min-height: 100dvh; }
  .split__side { padding: calc(var(--nav-h) + 4rem) 4rem 4rem; display: flex; align-items: flex-end; }
  .split__form { padding: calc(var(--nav-h) + 4rem) 4rem 4rem; display: flex; align-items: center; }
  .split__form-in { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .values::before, .values::after { animation: none; }
  .lines__slide img { transition: none; transform: none; }
}
