/* ============================================================
   imports.grupo414.com — Comercio Exterior e Importaciones
   Concepto: "manifiesto de importación". Plano técnico azul
   marino, rutas punteadas, un documento sellado como héroe y
   los padrones como sellos de goma. Acento: --line-accent.
   ============================================================ */

/* ====== HERO ====== */
.im-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; padding: calc(var(--nav-h) + 72px) 0 96px; }
.im-blueprint {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 177, 227, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 177, 227, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(143, 177, 227, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 177, 227, 0.04) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.im-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 80% 30%, rgba(74, 124, 201, 0.28), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(74, 124, 201, 0.12), transparent 70%); }
.im-routes { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(143, 177, 227, 0.45); pointer-events: none; }
.im-route { animation: routeFlow 18s linear infinite; }
.im-route--slow { animation-duration: 30s; animation-direction: reverse; }
@keyframes routeFlow { to { stroke-dashoffset: -240; } }

.im-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 64px; align-items: center; }
.im-title { color: #fff; font-size: clamp(32px, 3.7vw, 50px); font-weight: 300; letter-spacing: -1.5px; line-height: 1.08; margin: 22px 0 22px; text-wrap: balance; }
.im-sub { font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, 0.8); max-width: 600px; margin-bottom: 36px; }
.im-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.im-ctas .btn { padding: 17px 26px; letter-spacing: 2px; }

/* Documento-manifiesto */
.manifest {
  position: relative; background: #FBFCFE; color: var(--navy-dark); border-radius: 6px; padding: 26px 26px 22px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.4) inset, 0 30px 60px rgba(4, 10, 24, 0.45), 0 8px 18px rgba(4, 10, 24, 0.3);
  transform: rotate(1.2deg); animation: docIn 0.9s var(--ease-out) both 0.15s;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(43, 58, 92, 0.06) 31px 32px);
}
@keyframes docIn { from { opacity: 0; transform: translateY(24px) rotate(4deg); } to { opacity: 1; transform: rotate(1.2deg); } }
.manifest::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 4px; background: repeating-linear-gradient(90deg, var(--line-accent) 0 18px, transparent 18px 26px); }
.mf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--navy-dark); }
.mf-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.mf-ref { font-family: var(--font-display); font-size: 10px; letter-spacing: 1px; color: var(--text-muted); }
.mf-route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--border-hover); position: relative; }
.mf-route li { display: flex; flex-direction: column; gap: 2px; position: relative; }
.mf-route li + li::before { content: '→'; position: absolute; left: -12px; top: 9px; font-family: var(--font-display); font-size: 12px; color: var(--line-accent); }
.mf-k { font-family: var(--font-display); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.mf-v { font-size: 13px; font-weight: 700; line-height: 1.3; }
.mf-checks { padding: 14px 0 6px; display: grid; gap: 9px; }
.mf-checks li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 12px; letter-spacing: 0.5px; opacity: 0; animation: checkIn 0.5s var(--ease-out) forwards; animation-delay: calc(0.7s + var(--i) * 0.28s); }
.mf-box { width: 16px; height: 16px; border: 1.5px solid var(--navy-dark); border-radius: 3px; display: grid; place-items: center; flex-shrink: 0; }
.mf-box::after { content: ''; width: 8px; height: 4px; border-left: 2px solid var(--line-ink); border-bottom: 2px solid var(--line-ink); transform: rotate(-45deg) translateY(-1px) scale(0); animation: tick 0.3s var(--ease-out) forwards; animation-delay: calc(0.9s + var(--i) * 0.28s); }
@keyframes checkIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes tick { to { transform: rotate(-45deg) translateY(-1px) scale(1); } }
.mf-stamp {
  position: absolute; right: 22px; bottom: 74px; width: 112px; height: 112px; border-radius: 50%;
  border: 3px double var(--line-ink); color: var(--line-ink); display: grid; place-content: center; text-align: center;
  font-family: var(--font-display); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; line-height: 1.3;
  transform: rotate(-14deg); opacity: 0; animation: stampIn 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) forwards 2.4s; mix-blend-mode: multiply;
}
.mf-stamp b { display: block; font-size: 26px; letter-spacing: 1px; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-14deg) scale(1.6); } to { opacity: 0.85; transform: rotate(-14deg) scale(1); } }
.mf-containers { width: 62%; margin-top: 10px; color: rgba(43, 58, 92, 0.35); }

/* ====== PROBLEMA ====== */
.im-problem { background: #fff; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { padding: 28px 26px; border: 1px dashed var(--border-hover); border-radius: var(--radius-md); background: linear-gradient(180deg, #fff, var(--bg-section)); }
.pain-code { font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #A83A22; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.pain-code::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #E0563B; box-shadow: 0 0 0 4px rgba(224, 86, 59, 0.15); }
.pain h3 { font-size: 19px; margin-bottom: 10px; }
.pain p { font-size: 15px; color: var(--text-secondary); }

/* ====== SERVICIOS / FAQ (layout dividido) ====== */
.im-services { background: var(--bg-section); }
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.split-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.split-aside .section-title { font-size: clamp(28px, 3vw, 40px); }
.split-aside .section-lead { margin-bottom: 28px; }
.split-main { background: #fff; border-radius: var(--radius-lg); padding: 10px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-subtle); }
.split-main .acc { border-top: 0; }
.split-main .acc-item:last-child { border-bottom: 0; }

/* ====== CUMPLIMIENTO ====== */
.im-compliance { background: var(--navy-dark); color: #fff; overflow: hidden; }
.im-compliance .section-title { color: #fff; }
.compliance-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.compliance-text { font-size: 17px; color: rgba(255, 255, 255, 0.8); margin: 18px 0 26px; }
.compliance-points { display: grid; gap: 12px; }
.compliance-points li { display: flex; gap: 14px; font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.compliance-points li::before { content: '✓'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(74, 124, 201, 0.25); color: #BFD3F2; }
.stamps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stamp {
  display: flex; flex-direction: column; gap: 10px; justify-content: center; min-height: 150px; padding: 22px;
  border: 3px double rgba(191, 211, 242, 0.75); border-radius: 10px; color: #DCE7F7;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.4;
  transform: rotate(var(--r)); transition: transform 0.4s var(--ease-out), background-color 0.4s;
}
.stamp:hover { transform: rotate(0) scale(1.03); background: rgba(255, 255, 255, 0.04); }
.stamp-k { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.stamp--alt { border-color: rgba(143, 177, 227, 0.9); background: rgba(74, 124, 201, 0.12); }
.stamps .reveal.visible { transform: rotate(var(--r)); }

/* ====== PROCESO: la ruta ====== */
.im-process { background: #fff; }
.route { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; padding-top: 34px; }
.route::before { content: ''; position: absolute; top: 41px; left: 8px; right: 8px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-accent) 0 10px, transparent 10px 18px); }
.stop { position: relative; }
.stop-dot { position: absolute; top: -34px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--line-accent); box-shadow: 0 0 0 5px var(--line-accent-soft); }
.stop:last-child .stop-dot { background: var(--line-accent); }
.stop-n { display: block; font-family: var(--font-display); font-size: 12px; color: var(--line-ink); margin: 6px 0 10px; }
.stop h3 { font-size: 16px; margin-bottom: 8px; }
.stop p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ====== SECTORES ====== */
.im-industries { background: linear-gradient(180deg, var(--bg-section), #EDF2F8); }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.sector { background: #fff; padding: 30px 28px; transition: background-color var(--duration-normal); }
.sector:hover { background: var(--line-accent-soft); }
.sector-n { font-family: var(--font-display); font-size: 11px; color: var(--line-ink); letter-spacing: 1px; }
.sector h3 { font-size: 18px; margin: 10px 0 8px; }
.sector p { font-size: 14px; color: var(--text-secondary); }

/* ====== POR QUÉ ====== */
.im-why { background: #fff; }
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.diff { --cast-color: var(--line-accent); padding: 30px 26px; border: 1px solid var(--border-light); border-radius: 4px; background: #fff; transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal); }
.diff:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.diff h3 { font-size: 17px; margin-bottom: 10px; }
.diff p { font-size: 14px; color: var(--text-secondary); }
.diff--group { background: var(--line-accent-soft); border-color: color-mix(in srgb, var(--line-accent) 35%, transparent); }
.diff-link { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--line-ink); border-bottom: 2px solid var(--line-accent); padding-bottom: 3px; }
.diff-link:hover { color: var(--navy-dark); }

/* ====== FAQ ====== */
.im-faq { background: var(--bg-section); }
.acc-faq .acc-trigger { font-size: 15px; }
.acc-faq .acc-panel { padding-left: 4px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .im-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .manifest { max-width: 520px; }
  .split, .compliance-inner { grid-template-columns: 1fr; gap: 40px; }
  .split-aside { position: static; }
  .route { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .route::before { display: none; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .im-hero { padding: calc(var(--nav-h) + 40px) 0 64px; }
  .im-ctas { flex-direction: column; }
  .pain-grid { grid-template-columns: 1fr; }
  .split-main { padding: 4px 18px; }
  .route { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 30px; border-left: 2px dashed var(--line-accent); margin-left: 8px; }
  .stop { padding-bottom: 28px; }
  .stop-dot { top: 2px; left: -40px; }
  .stop-n { margin-top: 0; }
  .stamps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stamp { min-height: 120px; padding: 16px; font-size: 11px; }
}
@media (max-width: 480px) {
  .manifest { padding: 20px 18px 18px; transform: none; animation: none; }
  .mf-route { grid-template-columns: 1fr; }
  .mf-route li + li::before { display: none; }
  .mf-stamp { width: 88px; height: 88px; bottom: 60px; right: 14px; font-size: 7px; }
  .mf-stamp b { font-size: 20px; }
  .diff-grid, .sector-grid { grid-template-columns: 1fr; }
  .stamps { grid-template-columns: 1fr; }
}
