/* Inicio orientado a compra */
.necesidades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; }
.nec { position: relative; min-height: 300px; border-radius: var(--radio); overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: var(--azul) center/cover no-repeat; transition: transform .25s; }
.nec::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,38,62,.05) 20%, rgba(23,38,62,.95) 100%); transition: background .25s; }
.nec:hover { transform: translateY(-5px); }
.nec:hover::before { background: linear-gradient(180deg, rgba(173,15,73,.3) 0%, rgba(173,15,73,.95) 100%); }
.nec div { position: relative; padding: 20px; }
.nec h3 { font-size: 18px; font-weight: 800; }
.nec p { font-size: 13px; opacity: .88; margin-top: 6px; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.paso { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radio); padding: 30px; }
.paso b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rojo); font-size: 20px; font-weight: 800; }
.paso h3 { font-size: 21px; font-weight: 800; margin: 18px 0 10px; }
.paso p { color: rgba(255,255,255,.8); font-size: 15px; }
.razones { margin-top: 26px; display: grid; gap: 14px; }
.razones li { border-left: 4px solid var(--rojo); background: var(--gris-claro); border-radius: 8px; padding: 16px 20px; }
.razones h3 { font-size: 17px; font-weight: 800; }
.acerca .texto .razones p { font-size: 15px; margin-top: 6px; }

/* Formulario de cotización */
.cotizar { background: var(--azul); color: #fff; border-radius: var(--radio); padding: 36px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; }
.cotizar h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; display: block; }
.cotizar h2::before { display: none; }
.cotizar > div > p { color: rgba(255,255,255,.8); font-size: 15px; }
.cotizar form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cotizar label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: grid; gap: 6px; }
.cotizar label.ancho, .cotizar form button { grid-column: 1 / -1; }
.cotizar input, .cotizar textarea, .cotizar select { font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 8px; border: 0; width: 100%; color: var(--texto); background: #fff; }
.cotizar textarea { min-height: 84px; resize: vertical; }
.cotizar form button { justify-content: center; }

@media (max-width: 980px) {
  .necesidades { grid-template-columns: repeat(2, 1fr); }
  .nec { min-height: 220px; }
  .pasos, .cotizar { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .necesidades { grid-template-columns: 1fr; }
  .nec { min-height: 170px; }
  .cotizar { padding: 24px; }
  .cotizar form { grid-template-columns: 1fr; }
}

/* Acerca de nosotros ampliado */
.sub { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rojo); margin: 30px 0 4px; }
.acerca .equipo { margin-top: 12px; }
.bloque-sub { margin-top: 56px; }
.bloque-sub .sub { margin-top: 0; }
.razones.tres { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.razones p { color: var(--suave); font-size: 15px; margin-top: 6px; }
.servicios.claro { margin-top: 18px; }
.servicios.claro .servicio { background: #fff; border: 1px solid var(--linea); border-top: 4px solid var(--rojo); }
.servicios.claro .servicio:hover { background: #fff; box-shadow: 0 14px 34px rgba(23,38,62,.12); }
.servicios.claro .num { color: var(--rojo); }
.servicios.claro h3 { color: var(--azul); }
.servicios.claro p { color: var(--suave); }
@media (max-width: 980px) { .razones.tres { grid-template-columns: 1fr; } }

/* Portada: foto desenfocada y titular con fondo rojo parejo */
.hero { overflow: hidden; }
.hero-bg { position: absolute; inset: -24px; background: center/cover no-repeat; filter: blur(5px); }
.hero::before { z-index: 1; background: linear-gradient(100deg, rgba(23,38,62,.9) 0%, rgba(23,38,62,.68) 50%, rgba(23,38,62,.35) 100%); }
.hero .wrap { z-index: 2; }
.hero h1 { max-width: none; line-height: 1.34; font-size: clamp(30px, 4.3vw, 54px); }
@media (min-width: 900px) { .hero h1 { white-space: nowrap; } }
.hero h1 span { background: var(--rojo); padding: 4px 16px 4px 0; box-shadow: -16px 0 0 var(--rojo); margin-left: 16px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero p { margin-top: 28px; }

/* Etiqueta "Innovador" y productos destacados */
.etq { background: var(--rojo); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 11px; border-radius: 4px; }
.prod .etq { position: absolute; right: 14px; top: 14px; box-shadow: 0 6px 16px rgba(173,15,73,.4); }
.prod.innovador { border: 2px solid var(--rojo); box-shadow: 0 10px 28px rgba(173,15,73,.14); }
.prod.innovador:hover { border-color: var(--rojo); }

/* ---------- Animaciones ---------- */
.top, .top .wrap, .top .logo img { transition: height .35s ease, box-shadow .35s ease, background .35s ease; }
.top.chico { box-shadow: 0 6px 26px rgba(10,18,32,.38); }
@media (min-width: 981px) {
  .top.chico .wrap { height: 74px; }
  .top.chico .logo img { height: 42px; }
}

/* Portada y cabeceras: entrada escalonada */
@keyframes subir { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes barrido { from { clip-path: inset(-12px 100% -12px -24px); } to { clip-path: inset(-12px -24px -12px -24px); } }
@keyframes acercar { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes linea { from { width: 0; } to { width: 44px; } }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }

.anim .hero-bg { animation: acercar 7s cubic-bezier(.2,.6,.2,1) both; }
.anim .hero .lema { animation: subir .7s .15s cubic-bezier(.2,.7,.2,1) backwards; }
.anim .hero .lema::before { animation: linea .6s .5s ease-out both; }
.anim .hero h1 { animation: barrido .9s .35s cubic-bezier(.77,0,.18,1) both; }
.anim .hero p { animation: subir .8s .8s cubic-bezier(.2,.7,.2,1) backwards; }
.anim .hero .acciones .btn { animation: subir .7s 1s cubic-bezier(.2,.7,.2,1) backwards; }
.anim .hero .acciones .btn + .btn { animation-delay: 1.12s; }
.anim .cab .wrap > * { animation: subir .7s cubic-bezier(.2,.7,.2,1) backwards; }
.anim .cab .wrap > :nth-child(2) { animation-delay: .1s; }
.anim .cab .wrap > :nth-child(3) { animation-delay: .2s; }
.anim .cab .wrap > :nth-child(4) { animation-delay: .3s; }
.anim .wa { animation: latido 2.4s 2s ease-out infinite; }

/* Aparición al hacer scroll */
.anim .rev { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.anim .rev.visto { opacity: 1; transform: none; }
.anim .acerca .foto.rev { transform: translateX(40px); }
.anim .acerca .foto.rev.visto { transform: none; }
/* las tarjetas recuperan su transición de hover una vez visibles */
.anim .prod.rev.visto, .anim .nec.rev.visto, .anim .servicio.rev.visto { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .25s, box-shadow .25s, border-color .25s, background .2s; }
.anim .prod.rev.visto:hover, .anim .nec.rev.visto:hover { transform: translateY(-5px); }
.anim .servicio.rev.visto:hover { transform: translateY(-4px); }

/* Botones: brillo al pasar el mouse */
.btn-rojo { position: relative; overflow: hidden; }
.btn-rojo::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn-rojo:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Botón flotante de WhatsApp */
.wa { width: 62px; height: 62px; }
.wa svg { width: 34px; height: 34px; display: block; }
