/* Novedades del aplicativo en la portada: Carta de Portes y Albaranes.
   Las ilustraciones son HTML/CSS (sin imágenes) y se animan cuando su
   bloque .reveal recibe .in (js/showcase.js, al entrar en pantalla). */

.nov-lead { font-size: 18px; line-height: 1.55; }

/* ---------- Carta de Portes: banda oscura ---------- */
.nov-cp {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 420px at 85% 20%, rgba(47,111,237,0.28), transparent 60%),
              radial-gradient(700px 380px at 10% 90%, rgba(20,201,110,0.14), transparent 60%),
              linear-gradient(160deg, #0f2340 0%, #0b1a31 100%);
  padding: 96px 0;
}
.nov-cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.nov-cp h2 { color: #fff; font-size: 44px; letter-spacing: -1px; margin: 18px 0 14px; }
.nov-cp .nov-lead { color: #c5d2ea; max-width: 440px; margin-bottom: 30px; }
.nov-puntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nov-puntos li { position: relative; padding-left: 30px; color: #9fb0cf; font-size: 15px; line-height: 1.5; }
.nov-puntos li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(20,201,110,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fe39b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.nov-puntos b { color: #fff; font-weight: 700; }

.nov-cp-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cp-piezas { display: flex; align-items: center; gap: 12px; }
.cp-pieza {
  padding: 9px 16px; border-radius: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.2px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: #e4ebf8;
}
.cp-pieza-deca { color: #9cc0ff; border-color: rgba(127,176,255,0.35); }
.cp-pieza-carta { color: #7ff0b9; border-color: rgba(79,227,155,0.35); }
.cp-mas { color: #6b7fa3; font-weight: 800; }

.cp-doc {
  width: 100%; max-width: 420px; background: #fff; color: var(--text); border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(-1.5deg);
}
.cp-doc-cab { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed #d8deea; }
.cp-doc-cab small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.cp-doc-cab strong { font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.cp-qr { display: grid; grid-template-columns: repeat(3, 12px); gap: 3px; }
.cp-qr i { width: 12px; height: 12px; border-radius: 2px; background: var(--navy); }
.cp-qr i:nth-child(2), .cp-qr i:nth-child(4), .cp-qr i:nth-child(8) { background: transparent; box-shadow: inset 0 0 0 2px var(--navy); }
.cp-qr i:nth-child(6) { background: var(--accent); }

.cp-dia { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.cp-dia li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: #f4f6fb; font-size: 13px;
}
.cp-dia time { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.cp-dia span { color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-dia em { font-style: normal; color: var(--muted); }
.cp-dia small { font-weight: 700; color: var(--muted); }

.cp-firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-firma { border-radius: 10px; border: 1px solid var(--border); padding: 6px 10px 8px; }
.cp-firma svg { display: block; width: 100%; height: 34px; }
.cp-firma path { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.cp-firma span {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: #1e7a3c;
}
.cp-firma span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22a35d; }

/* Animación: las dos piezas se juntan, el documento aparece y se "rellena". */
.nov-cp-visual.in .cp-pieza-deca { animation: cpIzq 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.nov-cp-visual.in .cp-pieza-carta { animation: cpDer 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.nov-cp-visual.in .cp-mas { animation: cpMas 0.8s ease both; }
.nov-cp-visual.in .cp-doc { animation: cpDoc 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
.nov-cp-visual.in .cp-dia li { animation: cpFila 0.5s ease both; animation-delay: calc(0.9s + var(--i) * 0.28s); }
.nov-cp-visual.in .cp-firma path { animation: cpTrazo 1.1s ease-in-out 1.9s both; }
.nov-cp-visual.in .cp-firma-2 path { animation-delay: 2.5s; }
.nov-cp-visual.in .cp-firma span { animation: cpFila 0.4s ease both; animation-delay: 2.7s; }
.nov-cp-visual.in .cp-firma-2 span { animation-delay: 3.3s; }
@keyframes cpIzq { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes cpDer { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes cpMas { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.3); } 100% { transform: none; } }
@keyframes cpDoc { from { opacity: 0; transform: translateY(40px) rotate(4deg) scale(0.94); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes cpFila { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cpTrazo { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }

/* ---------- Albaranes: fondo claro ---------- */
.nov-alb { padding: 96px 0; background: linear-gradient(180deg, var(--bg) 0%, #eaf0fb 100%); }
.nov-alb-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.nov-alb h2 { font-size: 44px; letter-spacing: -1px; margin: 18px 0 12px; }
.nov-alb-head .muted { font-size: 18px; }

.alb-flujo {
  --c1: var(--accent); --c2: #14a35a; --c3: #d99a1f;
  display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 34px;
  box-shadow: 0 30px 70px -40px rgba(16,35,63,0.45);
}
.alb-etq { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.alb-fichas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.alb-fichas i {
  position: relative; display: block; height: 56px; border-radius: 9px; background: #f4f6fb;
  border: 1px solid #e3e8f1; border-top: 4px solid var(--c);
}
.alb-fichas i::before, .alb-fichas i::after { content: ''; position: absolute; left: 9px; height: 5px; border-radius: 3px; background: #d5dcea; }
.alb-fichas i::before { top: 12px; right: 12px; }
.alb-fichas i::after { top: 24px; right: 24px; }
.alb-fichas .c1, .alb-card.c1 { --c: var(--c1); }
.alb-fichas .c2, .alb-card.c2 { --c: var(--c2); }
.alb-fichas .c3, .alb-card.c3 { --c: var(--c3); }

.alb-flecha svg { width: 80px; height: 24px; }
.alb-flecha path { fill: none; stroke: #b7c2d6; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; }

.alb-destino { display: grid; gap: 12px; }
.alb-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: #fff;
  box-shadow: inset 4px 0 0 var(--c);
}
.alb-card strong { display: block; color: var(--navy); font-size: 15px; }
.alb-card small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.alb-sello {
  flex-shrink: 0; padding: 4px 10px; border-radius: 8px; border: 2px solid #22a35d; color: #1e7a3c;
  font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; transform: rotate(-6deg);
}

.nov-alb .alb-flujo.in .alb-fichas i { animation: albFicha 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 0.07s); }
.nov-alb .alb-flujo.in .alb-flecha path { animation: albFlecha 0.7s ease 0.7s both; }
.nov-alb .alb-flujo.in .alb-card { animation: albCard 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(1.1s + var(--i) * 0.18s); }
.nov-alb .alb-flujo.in .alb-sello { animation: albSello 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-delay: calc(1.8s + var(--i) * 0.22s); }
@keyframes albFicha { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes albFlecha { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }
@keyframes albCard { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes albSello { from { opacity: 0; transform: rotate(-20deg) scale(1.8); } to { opacity: 1; transform: rotate(-6deg); } }

.alb-pasos { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.alb-pasos li { display: flex; gap: 14px; align-items: flex-start; }
.alb-pasos li > span {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px;
}
.alb-pasos b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 3px; }
.alb-pasos p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nov-cp { padding: 72px 0; }
  .nov-cp-grid { grid-template-columns: 1fr; gap: 44px; }
  .nov-cp h2, .nov-alb h2 { font-size: 34px; }
  .alb-flujo { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .alb-flecha { justify-self: center; transform: rotate(90deg); }
  .alb-pasos { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .cp-doc { padding: 18px 16px 14px; }
  .cp-dia li { grid-template-columns: auto 1fr; }
  .cp-dia small { display: none; }
  .alb-fichas i { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .nov-cp-visual *, .alb-flujo * { animation: none !important; }
}

/* =====================================================================
   Carrusel de la cabecera: diapositivas de Carta de Portes y Albaranes.
   Las animaciones se reinician cada vez que la diapositiva pasa a
   .is-active (js/slider.js).
   ===================================================================== */
.slide-nov .slide-title { font-size: 44px; letter-spacing: -1px; line-height: 1.08; margin-bottom: 16px; }
.slide-cp .slide-title { color: #fff; }
.slide-cp .lead { color: #b9c3d9; }
.slide-alb .slide-title { color: var(--navy); }
.slide-degradado { background: linear-gradient(90deg, #7fb0ff 0%, #4fe39b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide-alb .slide-degradado { background-image: linear-gradient(90deg, var(--accent) 0%, #14a35a 100%); }
.slide-bullets-claro li { color: var(--navy-soft); }
.slide-bullets-claro li::before { color: var(--accent); }

.hv-cp, .hv-alb { position: relative; min-height: 470px; }

/* Tarjetas flotantes comunes */
.hv-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: #fff; box-shadow: 0 18px 40px -16px rgba(9,18,33,0.45); border: 1px solid rgba(16,35,63,0.06);
}
.hv-chip strong { display: block; font-size: 13.5px; color: var(--navy); }
.hv-chip span { display: block; font-size: 12px; color: var(--muted); }

/* ---------- Carta de Portes ---------- */
.hv-hoja {
  position: absolute; top: 50%; left: 50%; width: 230px; height: 300px; margin: -150px 0 0 -115px; border-radius: 18px; padding: 18px;
  border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(2px);
}
.hv-hoja b { display: block; font-size: 13px; letter-spacing: 0.3px; margin-bottom: 16px; }
.hv-hoja i { display: block; height: 8px; border-radius: 4px; margin-bottom: 12px; background: rgba(255,255,255,0.22); }
.hv-hoja i:nth-of-type(2) { width: 75%; }
.hv-hoja i:nth-of-type(3) { width: 55%; }
.hv-hoja-deca { background: linear-gradient(160deg, rgba(47,111,237,0.55), rgba(47,111,237,0.18)); color: #cfe0ff; transform: translateX(-120px) rotate(-9deg); }
.hv-hoja-carta { background: linear-gradient(160deg, rgba(20,201,110,0.45), rgba(20,201,110,0.14)); color: #c9f7df; transform: translateX(120px) rotate(9deg); }

.hv-doc {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 320px; margin: -170px 0 0 -160px; padding: 20px; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 90px -30px rgba(0,0,0,0.75), 0 0 80px -20px rgba(79,227,155,0.35);
}
.hv-doc-cab { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed #d8deea; }
.hv-doc-cab small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.hv-doc-cab strong { font-size: 28px; color: var(--navy); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.hv-qr { display: grid; grid-template-columns: repeat(3, 11px); gap: 3px; }
.hv-qr i { width: 11px; height: 11px; border-radius: 2px; background: var(--navy); }
.hv-qr i:nth-child(2), .hv-qr i:nth-child(4), .hv-qr i:nth-child(8) { background: transparent; box-shadow: inset 0 0 0 2px var(--navy); }
.hv-qr i:nth-child(6) { background: #14a35a; }
.hv-viajes { display: grid; gap: 7px; margin: 12px 0; }
.hv-viajes div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 10px; background: #f4f6fb; font-size: 12.5px; }
.hv-viajes time { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.hv-viajes span { color: var(--navy); font-weight: 600; }
.hv-viajes em { font-style: normal; font-weight: 700; color: var(--muted); }
.hv-firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hv-firmas svg { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--border); padding: 4px 8px; }
.hv-firmas path, .hv-alb-firma path { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; }
.hv-chip-a { top: 6px; left: -30px; }
.hv-chip-b { bottom: 30px; right: -8px; }
.hv-chip-b::before, .hv-chip-a::before { content: ''; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; background: #e5f6ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314a35a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat; }
.hv-chip-a::before { background-color: #e9f0ff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fed' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3 8 4-16 3 8h4'/%3E%3C/svg%3E"); }

.slide-cp.is-active .hv-hoja-deca { animation: hvHojaIzq 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.slide-cp.is-active .hv-hoja-carta { animation: hvHojaDer 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.slide-cp.is-active .hv-doc { animation: hvDoc 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.75s both; }
.slide-cp.is-active .hv-viajes div { animation: hvFila 0.45s ease both; animation-delay: calc(1.4s + var(--i) * 0.25s); }
.slide-cp.is-active .hv-firmas path { animation: hvTrazo 1s ease-in-out 2.3s both; }
.slide-cp.is-active .hv-firmas svg:nth-child(2) path { animation-delay: 2.9s; }
.slide-cp.is-active .hv-chip-a { animation: hvChip 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 3.4s both; }
.slide-cp.is-active .hv-chip-b { animation: hvChip 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 3.9s both; }
@keyframes hvHojaIzq { 0% { opacity: 0; transform: translateX(-260px) rotate(-22deg); } 55% { opacity: 1; transform: translateX(-120px) rotate(-9deg); } 100% { opacity: 1; transform: translateX(-120px) rotate(-9deg); } }
@keyframes hvHojaDer { 0% { opacity: 0; transform: translateX(260px) rotate(22deg); } 55% { opacity: 1; transform: translateX(120px) rotate(9deg); } 100% { opacity: 1; transform: translateX(120px) rotate(9deg); } }
@keyframes hvDoc { from { opacity: 0; transform: translateY(30px) scale(0.85); } to { opacity: 1; transform: none; } }

/* ---------- Albaranes ---------- */
.hv-pila { position: absolute; top: 50%; left: 50%; margin: -120px 0 0 -250px; }
.hv-pila i {
  position: absolute; display: block; width: 130px; height: 90px; border-radius: 12px; background: #fff; border: 1px solid var(--border);
  border-top: 5px solid var(--accent); box-shadow: 0 16px 30px -18px rgba(16,35,63,0.4);
}
.hv-pila i:nth-child(1) { transform: rotate(-12deg); }
.hv-pila i:nth-child(2) { top: 60px; left: 14px; border-top-color: #14a35a; transform: rotate(-4deg); }
.hv-pila i:nth-child(3) { top: 130px; left: -6px; border-top-color: #d99a1f; transform: rotate(-9deg); }

.hv-albaran {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 330px; margin: -205px 0 0 -130px; padding: 22px; border-radius: 20px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 50px 90px -40px rgba(16,35,63,0.55);
}
.hv-alb-cab { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.hv-logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--accent)); flex-shrink: 0; }
.hv-alb-cab small, .hv-alb-cliente small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.hv-alb-cab strong { font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.hv-alb-cliente { padding: 12px 0 8px; }
.hv-alb-cliente b { color: var(--navy); font-size: 15px; }
.hv-alb-tabla { display: grid; gap: 6px; }
.hv-alb-tabla div { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; background: #f4f6fb; font-size: 12.5px; }
.hv-alb-tabla span { color: var(--navy-soft); font-weight: 600; }
.hv-alb-tabla em { font-style: normal; font-weight: 800; color: var(--navy); }
.hv-alb-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--navy); color: #cfd9ee; font-size: 12.5px; font-weight: 600; }
.hv-alb-total strong { color: #fff; font-size: 20px; }
.hv-alb-firma { display: block; width: 140px; height: 38px; margin: 8px 0 0 auto; }
.hv-sello {
  position: absolute; right: 14px; top: 64px; padding: 7px 14px; border-radius: 10px; border: 3px solid #14a35a; color: #14a35a;
  font-size: 18px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; transform: rotate(-12deg); background: rgba(255,255,255,0.85);
}
.hv-chip-mail { bottom: 10px; left: -20px; }
.hv-chip-mail > svg { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: #e9f0ff; color: var(--accent); flex-shrink: 0; }

.slide-alb.is-active .hv-pila i { animation: hvPila 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.slide-alb.is-active .hv-pila i:nth-child(2) { animation-delay: 0.12s; }
.slide-alb.is-active .hv-pila i:nth-child(3) { animation-delay: 0.24s; }
.slide-alb.is-active .hv-albaran { animation: hvDoc 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both; }
.slide-alb.is-active .hv-alb-tabla div { animation: hvFila 0.4s ease both; animation-delay: calc(1.1s + var(--i) * 0.2s); }
.slide-alb.is-active .hv-alb-total { animation: hvFila 0.45s ease 2s both; }
.slide-alb.is-active .hv-alb-firma path { animation: hvTrazo 0.9s ease-in-out 2.4s both; }
.slide-alb.is-active .hv-sello { animation: hvSello 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 3.3s both; }
.slide-alb.is-active .hv-chip-mail { animation: hvChip 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) 3.8s both; }
@keyframes hvPila { from { opacity: 0; transform: translateX(-80px) rotate(-30deg); } }
@keyframes hvSello { from { opacity: 0; transform: rotate(-30deg) scale(2.6); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }

@keyframes hvFila { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hvTrazo { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
@keyframes hvChip { from { opacity: 0; transform: translateY(12px) scale(0.85); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .slide-nov .slide-title { font-size: 32px; }
  .hv-cp, .hv-alb { min-height: 420px; }
  .hv-hoja { width: 190px; height: 250px; margin: -125px 0 0 -95px; }
  .hv-hoja-deca { transform: translateX(-80px) rotate(-9deg); }
  .hv-hoja-carta { transform: translateX(80px) rotate(9deg); }
  @keyframes hvHojaIzq { 0% { opacity: 0; transform: translateX(-180px) rotate(-22deg); } 100% { opacity: 1; transform: translateX(-80px) rotate(-9deg); } }
  @keyframes hvHojaDer { 0% { opacity: 0; transform: translateX(180px) rotate(22deg); } 100% { opacity: 1; transform: translateX(80px) rotate(9deg); } }
  .hv-albaran { margin-left: -150px; width: 300px; }
  .hv-pila { display: none; }
  .hv-sello { top: auto; bottom: 20px; right: 14px; font-size: 15px; }
}
@media (max-width: 480px) {
  .hv-doc { width: 290px; margin-left: -145px; padding: 16px; }
  .hv-albaran { width: 280px; margin-left: -140px; padding: 18px; }
  .hv-chip-a { display: none; }
  .hv-chip-b { right: 0; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-cp *, .hv-alb * { animation: none !important; }
}
