/* Versión "currada": se suma a styles.css. Mismos colores de marca. */

/* ---------- Portada: la foto se "imprime" capa a capa ---------- */
.impresion { position: relative; border-radius: 14px; border: 6px solid var(--blanco); overflow: hidden; background: var(--verde2); }
.capas .impresion img { border: 0; border-radius: 0; display: block; }
.boquilla { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rojo); opacity: 0; pointer-events: none; }
.boquilla::after {   /* cabezal */
  content: ""; position: absolute; bottom: 3px; left: 0; width: 34px; height: 22px; background: var(--blanco);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 62% 55%, 50% 100%, 38% 55%, 0 55%);
}
.capas .impresion img { animation: imprimir 2.6s steps(52) .25s both; }
.boquilla { animation: subir 2.6s steps(52) .25s both; }
.boquilla::after { animation: vaiven .42s ease-in-out .25s 7 alternate both; }
@keyframes imprimir { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes subir { 0% { bottom: 0; opacity: 1; } 96% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
@keyframes vaiven { from { left: 4%; } to { left: calc(96% - 34px); } }

.portada-texto > * { animation: entra .7s cubic-bezier(.16,1,.3,1) both; }
.portada-texto > :nth-child(2) { animation-delay: .08s; }
.portada-texto > :nth-child(3) { animation-delay: .16s; }
.portada-texto > :nth-child(4) { animation-delay: .24s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Aparecer al bajar ---------- */
.anima [data-ver], .anima .tarjeta, .anima .pasos li { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.anima .visto { opacity: 1 !important; transform: none !important; }

@media (hover: hover) {
  .tarjeta .foto { overflow: hidden; }
  .tarjeta .foto img { transition: transform .7s cubic-bezier(.16,1,.3,1); }
  .tarjeta:hover .foto img { transform: scale(1.05); }
}

/* ---------- Del plano a tu casa ---------- */
.taller { background: var(--verde); color: var(--blanco); }
.taller h2, .taller h3 { color: var(--blanco); }
.proceso { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.proceso li { scroll-snap-align: start; }
.proceso video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--verde2); cursor: pointer; }
.proceso h3 { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.proceso h3 span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rojo); font-size: .95rem; }
.proceso p { font-size: .95rem; }
@media (min-width: 600px) { .proceso { grid-auto-columns: 42%; } }
@media (min-width: 960px) {
  .proceso { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 22px; overflow: visible; }
  .proceso li:nth-child(even) { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .capas .impresion img, .boquilla, .boquilla::after, .portada-texto > * { animation: none; }
}
