/* ════════════════════════════════════════════════════════════════════
   ATERIS — catalog.css (índice / catálogo avanzado; hereda styles.css)
   ════════════════════════════════════════════════════════════════════ */

/* Nav (reusa patrón de la landing, versión compacta) */
.cnav { position: sticky; top: 0; z-index: 100; background: rgba(253,252,250,0.85); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.cnav.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-xs); }
.cnav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.cnav-back { margin-left: 14px; font-weight: 700; font-size: 14.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand-name { white-space: nowrap; }
.cnav-back:hover { color: var(--coral-700); }
.cnav-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Catalog hero */
.chero { padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); position: relative; }
.chero-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(50% 60% at 80% 10%, rgba(255,107,107,0.13), transparent 60%); pointer-events: none; }
.chero-inner { position: relative; z-index: 1; max-width: 760px; }
.chero .display { margin: 16px 0 18px; }
.chero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero a dos columnas + visual de tarjetas */
.chero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,56px); align-items: center; position: relative; z-index: 1; }
.chero-copy { max-width: 600px; }
.chero-visual { position: relative; min-height: 320px; }
.cv-card { position: absolute; width: 232px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 14px; --rot: rotate(0deg); transform: var(--rot); animation: cvfloat 7s ease-in-out infinite; }
.cv-prev { height: 88px; border-radius: var(--r-sm); background: var(--bg-2); overflow: hidden; padding: 12px; display: flex; margin-bottom: 11px; }
.cv-label { display: flex; align-items: center; justify-content: space-between; }
.cv-label b { font-size: 13.5px; font-weight: 800; }
.cv-label span { font-size: 11px; color: var(--text-3); font-weight: 800; }
.cv-1 { top: 0; left: 4%; --rot: rotate(-5deg); z-index: 1; }
.cv-2 { top: 92px; right: 2%; --rot: rotate(4deg); z-index: 3; animation-duration: 8.5s; animation-delay: -2s; }
.cv-3 { bottom: 0; left: 16%; --rot: rotate(-2deg); z-index: 2; animation-duration: 9.5s; animation-delay: -1s; }
@keyframes cvfloat { 0%,100% { transform: var(--rot) translateY(0); } 50% { transform: var(--rot) translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .cv-card { animation: none; } }
.cvp-brand { align-items: center; gap: 10px; }
.cvm { width: 46px; height: 46px; border-radius: 13px; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex-shrink: 0; }
.cvsw { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cvsw i { display: block; height: 11px; border-radius: 5px; }
.cvsw i:nth-child(1) { background: #ff6b6b; } .cvsw i:nth-child(2) { background: #ffd23f; } .cvsw i:nth-child(3) { background: #101014; }
.cvp-web { flex-direction: column; gap: 7px; justify-content: center; }
.cvbar { display: block; height: 11px; width: 58%; border-radius: 5px; background: var(--coral); }
.cvln { display: block; height: 9px; border-radius: 4px; background: var(--card); }
.cvln.s { width: 72%; }
.cvp-chart { align-items: flex-end; gap: 7px; }
.cvp-chart i { display: block; flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--coral), rgba(255,107,107,.3)); }
.cvp-chart i:nth-child(1) { height: 24px; } .cvp-chart i:nth-child(2) { height: 42px; } .cvp-chart i:nth-child(3) { height: 32px; } .cvp-chart i:nth-child(4) { height: 56px; }
@media (max-width: 920px) {
  .chero-grid { grid-template-columns: 1fr; }
  .chero-visual { display: none; }
}

/* Index de áreas (chips ancladas) */
.cindex { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 48px); }
.cindex a { padding: 9px 15px; border-radius: var(--r-pill); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 700; color: var(--text-2); transition: all .15s; }
.cindex a:hover { box-shadow: inset 0 0 0 1.5px var(--coral); color: var(--coral-700); transform: translateY(-1px); }

/* Service detail blocks */
.cservice { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.cservice:nth-child(even) { background: var(--bg-2); }
.cs-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.cs-left { position: sticky; top: 90px; }
.cs-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.cs-ic svg { width: 26px; height: 26px; }
.cs-num { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--coral-700); }
.cs-title { font-size: clamp(26px, 3vw, 36px); margin: 6px 0 12px; }
.cs-lede { color: var(--text-2); font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.cs-cta { display: inline-flex; }

.cs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cs-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-xs); transition: transform .16s, box-shadow .16s; }
.cs-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.cs-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cs-card-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.cs-card-t { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.cs-card-d { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-2); color: var(--text-2); }
.cs-time { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.cs-time svg { width: 14px; height: 14px; }

/* CTA final */
.cfinal { padding: clamp(56px, 7vw, 96px) 0; background: var(--ink); color: var(--text-inv); text-align: center; }
.cfinal .h2 { color: #fff; }
.cfinal p { color: var(--text-inv-2); max-width: 520px; margin: 14px auto 26px; font-size: 17px; }
.cfinal-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 880px) {
  .cs-grid { grid-template-columns: 1fr; gap: 26px; }
  .cs-left { position: static; }
  .cnav .nav-links { display: none; }
}
@media (max-width: 560px) {
  .cs-cards { grid-template-columns: 1fr; }
}

/* ════════════════════ MINI-VISUALES (como la landing) ════════════════════ */
.cs-left .cs-ic { display: none; }
.cs-prev { position: relative; height: 150px; border-radius: var(--r-md); background: var(--bg-2); overflow: hidden; padding: 16px; display: flex; margin-bottom: 18px; box-shadow: var(--sh-xs); }
.cs-prev .pv { opacity: 0; transform: translateY(10px) scale(.95); }
.cs-left.in .cs-prev .pv { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.cs-left.in .cs-prev .pv:nth-child(2) { transition-delay: .1s; }
.cs-left.in .cs-prev .pv:nth-child(3) { transition-delay: .2s; }
.cs-left.in .cs-prev .pv:nth-child(4) { transition-delay: .3s; }
.cs-left.in .cs-prev .pv:nth-child(5) { transition-delay: .4s; }
.cs-prev::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); pointer-events: none; opacity: 0; }
.cs-prev:hover::after { animation: cshine .8s ease; }
@keyframes cshine { from { left: -75%; opacity: 0; } 20% { opacity: 1; } to { left: 140%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cs-prev .pv { opacity: 1; transform: none; } .cs-prev:hover::after { animation: none; } }

.pv-direcao { flex-direction: column; justify-content: center; gap: 12px; }
.pv-direcao .tl { display: flex; align-items: center; gap: 10px; }
.pv-direcao .tl span { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.pv-direcao .tl i { display: block; height: 10px; border-radius: 5px; background: var(--card); }

.pv-brand { align-items: center; gap: 16px; }
.pv-brand .bmark { width: 64px; height: 64px; border-radius: 18px; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 30px; flex-shrink: 0; }
.pv-brand .bsw { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pv-brand .bsw i { display: block; height: 16px; border-radius: 7px; }

.pv-web { flex-direction: column; gap: 0; padding: 0; background: var(--card); border: 1px solid var(--line); }
.pv-web .wbar { display: flex; gap: 5px; padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.pv-web .wbar b { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pv-web .wbody { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.pv-web .wl { display: block; height: 10px; border-radius: 5px; background: var(--bg-2); }
.pv-web .wl.s { width: 58%; background: var(--coral); }
.pv-web .wbtn { display: block; width: 70px; height: 20px; border-radius: 9px; background: var(--coral); margin-top: 3px; }

.pv-chart { align-items: flex-end; gap: 8px; }
.pv-chart i { display: block; flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(var(--coral), rgba(255,107,107,.3)); }

.pv-ad { align-items: center; justify-content: center; }
.pv-ad .adcard { width: 70%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pv-ad .adimg { display: block; height: 44px; border-radius: 8px; background: linear-gradient(120deg, var(--coral-soft), var(--yellow-soft)); }
.pv-ad .adcta { display: block; height: 14px; width: 50%; border-radius: 7px; background: var(--coral); }

.pv-design { align-items: center; justify-content: center; position: relative; }
.pv-design .ds { position: absolute; }
.pv-design .c1 { width: 58px; height: 58px; border-radius: 50%; background: var(--coral); transform: translateX(-28px); }
.pv-design .c2 { width: 52px; height: 52px; border-radius: 15px; background: var(--yellow); transform: translateX(20px) rotate(12deg); }
.pv-design .c3 { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); }

.pv-av { align-items: center; justify-content: center; background: linear-gradient(140deg, var(--coral), var(--yellow)); }
.pv-av .playbtn { width: 0; height: 0; border-left: 26px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; margin-left: 6px; }

.pv-text { flex-direction: column; justify-content: center; gap: 11px; }
.pv-text .tx { display: block; height: 11px; border-radius: 5px; background: var(--card); }
.pv-text .tx.s { width: 48%; background: var(--coral); }

/* ════════════════════ HERO: chips animados + nav responsive ════════════════════ */
.cindex.in a { transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .15s, color .15s; }
.cindex a { opacity: 0; transform: translateY(14px); }
.cindex.in a { opacity: 1; transform: none; }
.cindex.in a:nth-child(2) { transition-delay: .05s; }
.cindex.in a:nth-child(3) { transition-delay: .1s; }
.cindex.in a:nth-child(4) { transition-delay: .15s; }
.cindex.in a:nth-child(5) { transition-delay: .2s; }
.cindex.in a:nth-child(6) { transition-delay: .25s; }
.cindex.in a:nth-child(7) { transition-delay: .3s; }
.cindex.in a:nth-child(8) { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .cindex a { opacity: 1; transform: none; } }

@media (max-width: 620px) {
  .cnav-inner { gap: 10px; height: 60px; }
  .cnav-tools { gap: 8px; }
  .cnav .btn-wa span { display: none; }
  .cnav .btn-wa { padding: 10px; }
  .cnav-back { margin-left: 6px; }
  .cnav-back span { display: none; }
}
