/* hecho por r3k1 */
.cabecera-pag { position: relative; z-index: 1; padding-top: clamp(40px, 9vh, 110px); padding-bottom: clamp(32px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: 32px }
.cabecera-pag .gigante { margin-top: 18px; font-size: clamp(56px, 9.4vw, 168px) }
.cabecera-pag .baja { max-width: 40ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--gris); padding-bottom: 10px }
.cabecera-pag .baja b { color: var(--tinta); font-weight: 600 }

.indice { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: clamp(20px, 4vh, 40px); border-bottom: 1px solid var(--linea) }
.indice a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--celda); border: 1px solid var(--linea); font-size: 15px; font-weight: 500; transition: border-color .3s, scale .16s ease-out }
.indice a:active { scale: .97 }
.indice a i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tono); color: var(--tono-txt, #fff); font-style: normal; font-size: 12px; font-weight: 600 }

.obra { --tono: var(--acento); position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(32px, 5vw, 96px); padding: clamp(64px, 12vh, 140px) 0; border-bottom: 1px solid var(--linea) }
.obra:nth-of-type(even) .obra-info { order: 2 }
.obra:nth-of-type(even) { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr) }
.obra-num { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris) }
.obra-num i { width: 10px; height: 10px; border-radius: 3px; background: var(--tono); rotate: 45deg }
.obra h2 { margin-top: 18px; font-size: clamp(54px, 7vw, 124px) }
.obra .tipo { margin-top: 14px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; letter-spacing: -.01em }
.obra .que { margin-top: 12px; max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--gris) }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none }
.chips li { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linea); font-size: 13px; font-weight: 500; color: var(--tinta) }
.chips li:first-child { border-color: color-mix(in srgb, var(--tono) 55%, transparent); color: color-mix(in srgb, var(--tono) 70%, var(--tinta)) }
:root[data-tema="claro"] .chips li:first-child { color: color-mix(in srgb, var(--tono) 45%, var(--tinta)) }
.obra .acciones { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px }
.obra .boton { background: var(--tono); color: var(--tono-txt, #fff) }
.obra .boton .boton-flecha { background: color-mix(in srgb, var(--tono-txt, #fff) 18%, transparent) }
.obra .boton.hueco { background: transparent; color: var(--tinta) }
.obra .boton.hueco .boton-flecha { background: var(--boton) }

.vista { position: relative; aspect-ratio: 16 / 11; isolation: isolate }
.vista::before { content: ""; position: absolute; inset: 6% 4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tono) 30%, transparent), transparent); filter: blur(30px) }
.portatil { position: absolute; left: 0; top: 4%; width: 86% }
.portatil .pantalla { position: relative; border-radius: 14px 14px 4px 4px; padding: 2.2%; background: #1a1a1d; border: 1px solid #2e2e33; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7) }
.portatil .pantalla img, .tele .pase img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px }
.portatil .base { height: 14px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#2a2a2f, #151518); position: relative }
.portatil .base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; translate: -50% 0; border-radius: 0 0 8px 8px; background: #0e0e10 }
.telefono { position: absolute; right: 0; bottom: 0; width: 25%; padding: 1.4%; border-radius: 22px; background: #1a1a1d; border: 1px solid #2e2e33; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8) }
.telefono img { width: 100%; height: auto; aspect-ratio: 540 / 1169; object-fit: cover; border-radius: 17px }
.telefono::before { content: ""; position: absolute; left: 50%; top: 3.2%; width: 26%; height: 2.4%; translate: -50% 0; border-radius: 99px; background: #0b0b0d; z-index: 1 }

.tele { position: absolute; left: 0; top: 2%; width: 88% }
.tele .marco { position: relative; padding: 2%; border-radius: 16px; background: #1a1a1d; border: 1px solid #2e2e33; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7) }
.pase { position: relative; display: grid; border-radius: 8px; overflow: hidden }
.pase img { grid-area: 1 / 1; opacity: 0 }
.pase img.ya { opacity: 1 }
.barras { position: absolute; left: 4%; right: 4%; top: 4%; display: flex; gap: 6px; z-index: 2 }
.barras i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden }
.barras i b { display: block; height: 100%; background: #fff; transform-origin: 0 50%; scale: 0 1 }
.mando { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 16 / 10; padding: 1.6%; border-radius: 18px; background: #1a1a1d; border: 1px solid #2e2e33; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); overflow: hidden }
.mando img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px }
.mando .toque { position: absolute; left: 9%; bottom: 12%; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12) }
.mando .toque + .toque { left: auto; right: 9% }

.proceso { position: relative; z-index: 1; padding-top: clamp(80px, 14vh, 160px) }
.proceso > .gigante { font-size: clamp(48px, 6.4vw, 112px) }
.pasos { margin-top: clamp(32px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; counter-reset: paso }
.pasos li { position: relative; padding: 26px 26px 30px; border-radius: 24px; background: var(--celda); border: 1px solid var(--linea); overflow: hidden }
.pasos li > b { display: block; font-family: var(--anton); font-weight: 400; font-size: 56px; line-height: 1; color: var(--acento) }
.pasos h3 { margin-top: 22px; font-size: 21px; font-weight: 600; letter-spacing: -.02em }
.pasos p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--gris) }
.pasos svg { position: absolute; right: 22px; top: 24px; width: 44px; height: 44px; fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }

.alma-grande { width: clamp(120px, 14vw, 220px); justify-self: end; align-self: center; overflow: visible }
.alma-grande .cuerpo { fill: var(--tinta) }
.alma-grande .ojos ellipse { fill: var(--fondo) }
.alma-grande .sombra { fill: var(--tinta); opacity: .12 }

@media (hover: hover) and (pointer: fine) {
  .indice a:hover { border-color: var(--gris) }
}

@media (max-width: 960px) {
  .cabecera-pag { grid-template-columns: 1fr; align-items: start }
  .alma-grande { display: none }
  .obra, .obra:nth-of-type(even) { grid-template-columns: 1fr; gap: 36px }
  .obra:nth-of-type(even) .obra-info { order: 0 }
  .pasos { grid-template-columns: 1fr }
}
