/* 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; }

/* ---------- Ajustes para celular ---------- */
@media (max-width: 620px) {
  .sec { padding: 56px 0; }
  .sec-bajada { font-size: 16px; }
  .top .wrap { height: 66px; }
  .top .logo img { height: 36px; }
  .nav { top: 66px; }
  .filtros { top: 70px; }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 60px; }
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 16px; margin-top: 22px; }
  .hero .acciones { margin-top: 28px; gap: 10px; }

  /* Soluciones: mosaico de 2 columnas */
  .necesidades { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
  .nec { min-height: 150px; }
  .nec:last-child { grid-column: 1 / -1; }
  .nec div { padding: 14px; }
  .nec h3 { font-size: 15px; }
  .nec p { font-size: 12px; }

  /* Destacados de la portada: carrusel deslizable */
  #destacados { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 30px -16px 0 !important; padding: 4px 16px 18px; scrollbar-width: none; }
  #destacados::-webkit-scrollbar { display: none; }
  #destacados .prod { flex: 0 0 80%; scroll-snap-align: center; }
  .anim #destacados .prod.rev { opacity: 1; transform: none; }
  #destacados + .centro { margin-top: 18px; }

  /* Catálogo: tarjetas en fila, más compactas */
  .bloque .grilla { gap: 12px; }
  .bloque .prod { flex-direction: row; }
  .bloque .prod .img { flex: 0 0 120px; aspect-ratio: auto; min-height: 128px; }
  .bloque .prod .cat { display: none; }
  .bloque .prod .etq { left: 6px; right: auto; top: 6px; font-size: 9px; padding: 4px 7px; }
  .bloque .prod .cuerpo { padding: 14px 14px 14px 16px; }
  .bloque .prod h3 { font-size: 16px; margin: 4px 0; }
  .bloque .prod p { font-size: 13px; }
  .bloque .prod .mas { margin-top: 8px; font-size: 12px; }
  .bloque { padding-top: 44px; }

  /* Pasos: número al costado */
  .pasos { gap: 12px; margin-top: 30px; }
  .paso { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .paso b { grid-row: span 2; width: 44px; height: 44px; font-size: 18px; }
  .paso h3 { margin: 0 0 6px; font-size: 18px; }

  .servicio { padding: 26px 22px; }
  .servicio h3 { font-size: 22px; }
  .acerca .texto p { font-size: 16px; }
  .equipo li { font-size: 13px; }
  .llamado .wrap { padding: 72px 16px; }
  .pie .wrap { padding: 48px 16px 32px; }

  /* Evita el zoom automático de iPhone al tocar un campo */
  .cotizar input, .cotizar textarea, .cotizar select, .buscar input { font-size: 16px; }

  .docs { gap: 8px; }
  .doc { padding: 10px 12px; gap: 12px; font-size: 13px; }
  .doc .pdf { width: 34px; height: 34px; font-size: 10px; }

  .wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa svg { width: 30px; height: 30px; }
}

/* ---------- Ventajas de nuestros productos ---------- */
.vt { background: #fff; padding-top: 88px; }
.vt-cab { padding-bottom: 44px; }
.vt-cab h2 { position: relative; padding-top: 34px; font-size: clamp(38px, 6.2vw, 84px); font-weight: 800; line-height: .95; letter-spacing: -0.03em; text-transform: uppercase; color: var(--rojo); }
.vt-cab h2::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: #b9c1cc; transform-origin: left; }
.vt-lineas { margin-top: 18px; font-size: clamp(14px, 1.5vw, 19px); font-weight: 500; text-transform: uppercase; color: var(--suave); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.vt-lineas a { transition: color .2s; }
.vt-lineas a:hover { color: var(--rojo); }
.vt-lineas i { font-style: normal; color: #b9c1cc; }

.vt-fila { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; scroll-margin-top: 90px; }
.vt-fila + .vt-fila { box-shadow: 0 -6px 14px -8px rgba(23,38,62,.25); }
.vt-media { position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; text-align: center; padding: 60px 30px; isolation: isolate; }
.vt-foto { position: absolute; inset: 0; background: var(--azul) center/cover no-repeat; z-index: -2; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.vt-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,38,62,.62), rgba(23,38,62,.8)); z-index: -1; }
.vt-media:hover .vt-foto { transform: scale(1.06); }
.vt-media h3 { font-size: clamp(32px, 3.7vw, 54px); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; max-width: 560px; }
.vt-sello { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #f2a7c2; }
.vt-media .btn { margin-top: 40px; padding: 18px 54px; border-radius: 0; font-size: 15px; }
.vt-media-in { display: flex; flex-direction: column; align-items: center; }

.vt-datos { display: flex; flex-direction: column; justify-content: center; padding: 70px 6vw; }
.vt-grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 30px; }
.vt-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.vt-ico { width: 84px; height: 84px; color: #5f6672; display: block; margin-bottom: 14px; transition: color .3s, transform .3s; }
.vt-ico svg { width: 100%; height: 100%; }
.vt-item:hover .vt-ico { color: var(--rojo); transform: translateY(-5px) scale(1.06); }
.vt-item h4 { font-size: 17px; font-weight: 800; line-height: 1.08; text-transform: uppercase; color: var(--rojo); letter-spacing: .02em; max-width: 220px; }
.vt-item p { font-size: 14.5px; line-height: 1.3; color: var(--suave); margin-top: 4px; max-width: 240px; }
.vt-sellos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.vt-sellos span { border: 1.5px solid #5f6672; color: #5f6672; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 4px; }
.invertida .vt-media { order: 2; }

/* ---------- Soluciones: 6 tarjetas ---------- */
.necesidades { grid-template-columns: repeat(3, 1fr); }
.nec { min-height: 240px; }

@media (max-width: 980px) {
  .necesidades { grid-template-columns: repeat(2, 1fr); }
  .nec { min-height: 200px; }
  .vt { padding-top: 64px; }
  .vt-fila { grid-template-columns: 1fr; min-height: 0; }
  .invertida .vt-media { order: 0; }
  .vt-media { min-height: 380px; }
  .vt-datos { padding: 56px 24px; }
}
@media (max-width: 620px) {
  .necesidades { grid-template-columns: 1fr 1fr; }
  .nec { min-height: 150px; }
  .nec:last-child { grid-column: auto; }
  .vt { padding-top: 56px; }
  .vt-cab { padding-bottom: 32px; }
  .vt-cab h2 { padding-top: 24px; }
  .vt-lineas { font-size: 12.5px; }
  .vt-media { min-height: 320px; padding: 48px 20px; }
  .vt-media .btn { margin-top: 28px; padding: 15px 40px; }
  .vt-datos { padding: 44px 16px; }
  .vt-grilla { gap: 28px 14px; }
  .vt-ico { width: 60px; height: 60px; margin-bottom: 10px; }
  .vt-item h4 { font-size: 14px; }
  .vt-item p { font-size: 12.5px; }
  .vt-sellos { margin-top: 32px; }
  .vt-sellos span { font-size: 10.5px; padding: 6px 9px; }
}

/* ---------- Animaciones al estilo PanelChok (Animate.css, 1,25 s ease) ---------- */
@keyframes slideInLeft { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes slideInRight { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes slideInUp { from { transform: translate3d(0, 100%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomInDown {
  from { opacity: 0; transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0); animation-timing-function: cubic-bezier(.55, .055, .675, .19); }
  60% { opacity: 1; transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0); animation-timing-function: cubic-bezier(.175, .885, .32, 1); }
}
@keyframes bounceInRight {
  from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
  from { opacity: 0; transform: translate3d(3000px, 0, 0) scaleX(3); }
  60% { opacity: 1; transform: translate3d(-25px, 0, 0) scaleX(1); }
  75% { transform: translate3d(10px, 0, 0) scaleX(.98); }
  90% { transform: translate3d(-5px, 0, 0) scaleX(.995); }
  to { transform: translate3d(0, 0, 0); }
}
/* Antes de verse: oculto y sin desplazar (para que el observador lo detecte en su lugar) */
.anim .rev, .anim .acerca .foto.rev, .anim .vt-media .rev { opacity: 0; transform: none; transition: none; }
.anim .rev.visto, .anim .acerca .foto.rev.visto { opacity: 1; animation-duration: 1.25s; animation-timing-function: ease; animation-fill-mode: backwards; }
.anim .rev.visto.a-izq { animation-name: slideInLeft; }
.anim .rev.visto.a-der { animation-name: slideInRight; }
.anim .rev.visto.a-arriba { animation-name: slideInUp; }
.anim .rev.visto.a-lento { animation-name: slideInUp; animation-duration: 2s; }
.anim .rev.visto.a-fade { animation-name: fadeIn; }
.anim .rev.visto.a-zoom { animation-name: zoomInDown; }
.anim .rev.visto.a-rebote { animation-name: bounceInRight; }
/* Las tarjetas recuperan su efecto al pasar el mouse una vez que entraron */
.anim .prod.rev.visto, .anim .nec.rev.visto, .anim .servicio.rev.visto { transition: transform .3s, box-shadow .25s, border-color .25s, background .2s; }
.vt-media { overflow: hidden; }

/* Efecto "grow" de PanelChok al pasar el mouse */
.btn, .nav a, .vt-lineas a { transition: transform .3s, background .2s, color .2s, border-color .2s; }
.btn:hover, .nav a:hover { transform: scale(1.1); }
.vt-media .btn:hover { transform: scale(1.1); }
.nec:hover, .anim .nec.rev.visto:hover { transform: scale(1.04); }

/* Sellos de certificación con logo, origen e importador (16-10-2026) */
.vt-sellos { align-items: center; gap: 22px 34px; }
.vt-sellos img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.vt-sellos-txt { margin-top: 18px; gap: 10px; }
.cab .origen { margin-top: 14px; font-size: 15px; opacity: .92; }
.cab .origen i, .origen-banda i { font-style: normal; margin: 0 10px; opacity: .5; }
.cab .btn-folleto { margin-top: 18px; }
.origen-banda { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 28px; padding: 20px 26px; background: #fff; border-left: 4px solid var(--rojo); border-radius: 8px; }
.origen-banda p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--azul); }
@media (max-width: 640px) {
  .vt-sellos { gap: 16px 22px; }
  .vt-sellos img { max-height: 58px; }
  .origen-banda { padding: 18px; }
  .origen-banda .btn { width: 100%; text-align: center; }
}
