/* ══════════════════════════════════════════
   NAYAMA – terminales.css  (tema claro 2026)
   ══════════════════════════════════════════ */

/* ── COOKIE BANNER ── */
#nayama-cookie-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 9998;
  backdrop-filter: blur(3px); animation: ncFadeIn .25s ease;
}
#nayama-cookie-overlay.nc-visible { display: block; }
#nayama-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999; padding: 0 5vw 24px;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.22,.85,.36,1);
}
#nayama-cookie-banner.nc-visible { transform: translateY(0); }
.nc-card {
  max-width: 960px; margin: 0 auto; background: #fff;
  border: 1px solid rgba(0,0,0,.1); border-radius: 20px; padding: 28px 32px;
  box-shadow: 0 -4px 60px rgba(0,0,0,.12);
}
.nc-row-top { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.nc-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(0,102,255,0.08); border: 1px solid rgba(0,102,255,.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.nc-text { flex: 1; min-width: 220px; }
.nc-text h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: #0d0d0d; }
.nc-text p { font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: #5a6880; line-height: 1.6; }
.nc-text a { color: #0066ff; text-decoration: underline; }
.nc-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.nc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 500; cursor: pointer; border: none; transition: opacity .2s, transform .15s; }
.nc-btn:hover { transform: translateY(-1px); opacity: .92; }
.nc-btn-accept { background: #0066ff; color: #fff; }
.nc-btn-reject { background: transparent; color: #5a6880; border: 1px solid rgba(0,0,0,0.15); }
.nc-btn-config { background: transparent; color: #5a6880; border: 1px solid rgba(0,0,0,0.15); }
.nc-btn-save { background: #0066ff; color: #fff; flex: 1; justify-content: center; }
.nc-prefs { max-height: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease; opacity: 0; }
.nc-prefs.nc-open { max-height: 600px; opacity: 1; }
.nc-prefs-inner { border-top: 1px solid rgba(0,0,0,.08); margin-top: 20px; padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.nc-cat { background: #f5f7fa; border: 1px solid rgba(0,0,0,.07); border-radius: 14px; padding: 16px 20px; display: flex; align-items: flex-start; gap: 16px; }
.nc-cat-info { flex: 1; }
.nc-cat-info strong { display: block; font-family: 'Syne', sans-serif; font-size: 0.9rem; color: #0d0d0d; margin-bottom: 4px; }
.nc-cat-info span { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: #5a6880; line-height: 1.5; }
.nc-badge-req { font-size: 0.72rem; color: #0066ff; background: rgba(0,102,255,0.06); border: 1px solid rgba(0,102,255,.2); border-radius: 100px; padding: 2px 10px; flex-shrink: 0; align-self: center; white-space: nowrap; }
.nc-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; align-self: center; }
.nc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.nc-toggle-track { position: absolute; inset: 0; background: rgba(0,0,0,.12); border-radius: 100px; cursor: pointer; transition: background .25s; }
.nc-toggle input:checked + .nc-toggle-track { background: #0066ff; }
.nc-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.nc-toggle input:checked + .nc-toggle-track::after { transform: translateX(20px); }
.nc-prefs-foot { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
@keyframes ncFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── VARIABLES ── */
:root {
  --sky: #0066ff;
  --sky-dark: #0052cc;
  --mint: #00b2a9;
  --dark: #ffffff;
  --dark2: #f5f7fa;
  --dark3: #eef2f7;
  --border: rgba(0,0,0,0.08);
  --text: #0f172a;
  --muted: #64748b;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--dark); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em; text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 10px var(--sky);
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 100px;
  background: var(--sky); color: #fff;
  font-family: var(--font-body); font-weight: 500; font-size: 0.88rem;
  text-decoration: none; transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--sky-dark); transform: translateY(-1px); }
.nav-mobile-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.nav-drawer {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(255,255,255,0.99); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); z-index: 99;
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s ease, opacity 0.3s ease; opacity: 0;
}
.nav-drawer.open { max-height: 400px; opacity: 1; }
.nav-drawer ul { list-style: none; padding: 1rem 5vw 0.5rem; }
.nav-drawer ul li a { display: block; padding: 0.8rem 0; color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border); transition: color .2s; }
.nav-drawer ul li:last-child a { border-bottom: none; }
.nav-drawer ul li a:hover { color: var(--text); }
.drawer-cta { display: block; margin: 1rem 5vw 1.2rem; padding: 12px 20px; background: var(--sky); color: #fff; text-align: center; border-radius: 100px; font-weight: 500; text-decoration: none; }

/* ── HERO ── */
#hero-terminales {
  padding: 76px 5vw 0;
  text-align: center;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 60%);
  position: relative;
  overflow: hidden;
}
#hero-terminales::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,102,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
}
.hero-t-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 16px; border-radius: 100px;
  background: rgba(0,102,255,0.07); border: 1px solid rgba(0,102,255,0.25);
  color: var(--sky); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.2rem; position: relative;
}
#hero-terminales h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text); margin-bottom: 0.5rem; position: relative;
}
#hero-terminales h1 em { font-style: normal; color: var(--sky); }
#hero-terminales .hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted);
  max-width: 560px; margin: 0 auto 0.8rem; position: relative;
}
.hero-t-aviso {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff8e6; border: 1px solid rgba(245,158,11,0.3);
  border-radius: 14px; padding: 12px 20px;
  font-size: 0.88rem; color: #92400e;
  position: relative;
}
.hero-t-aviso strong { color: #b45309; }

/* ── SECCIÓN CATÁLOGO ── */
#catalogo {
  padding: 8px 5vw 80px;
  background: var(--dark);
}
.section-label {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky);
  display: flex; align-items: center; gap: 8px; margin-bottom: 0.6rem;
}
.section-label::before { content: ''; width: 28px; height: 2px; background: var(--sky); border-radius: 2px; }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--text); margin-bottom: 0.6rem;
}
.section-title em { font-style: normal; color: var(--sky); }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 560px; margin-bottom: 3rem; }

/* Filtro de categorías */
.cat-filter {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.cat-btn {
  padding: 7px 18px; border-radius: 100px; border: 1.5px solid var(--border);
  background: var(--dark2); color: var(--muted);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.cat-btn:hover { border-color: var(--sky); color: var(--sky); }
.cat-btn.active { background: var(--sky); border-color: var(--sky); color: #fff; }

/* Grid de terminales */
.terminales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* Tarjeta de terminal */
.terminal-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.terminal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(0,102,255,.18), 0 4px 16px rgba(0,102,255,.10);
  border-color: rgba(0,102,255,.45);
}
.terminal-img-wrap {
  background: var(--dark2);
  padding: 28px 20px 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
  position: relative;
}
.terminal-img-wrap img {
  max-height: 180px; width: auto; object-fit: contain;
  transition: transform .3s;
}
.terminal-card:hover .terminal-img-wrap img { transform: scale(1.08); }
.terminal-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--sky); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase;
  z-index: 2;
}
.terminal-badge.badge-stock { background: #16a34a; }
.terminal-badge.badge-oferta { background: #dc2626; }
.terminal-badge.badge-nuevo { background: var(--sky); }

.terminal-info {
  padding: 18px 20px 20px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.terminal-marca {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.terminal-nombre {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
}
.terminal-specs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.spec-pill {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px 10px;
  font-size: 0.75rem; color: var(--muted); font-weight: 500;
}
.spec-pill.pill-5g { background: rgba(0,102,255,.07); border-color: rgba(0,102,255,.2); color: var(--sky); font-weight: 600; }
.terminal-precio {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 6px;
}
.precio-num {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--text);
}
.precio-desde { font-size: 0.78rem; color: var(--muted); }
.precio-consultar {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--sky);
}
.terminal-iva {
  font-size: 0.72rem; color: var(--muted);
  margin-top: -4px;
}

/* Tarjeta "Preguntar en tienda" */
.terminal-card.card-preguntar {
  border-style: dashed;
  border-color: rgba(0,102,255,.25);
  background: rgba(0,102,255,.02);
  justify-content: center; align-items: center;
  text-align: center; min-height: 360px;
  cursor: default;
}
.card-preguntar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,102,255,.1);
  border-color: rgba(0,102,255,.45);
}
.card-preguntar-inner { padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.card-preguntar-icon { font-size: 2.8rem; }
.card-preguntar h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.card-preguntar p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; max-width: 180px; }

.btn-consultar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px; border-radius: 12px;
  background: rgba(0,102,255,.07); border: 1.5px solid rgba(0,102,255,.2);
  color: var(--sky); font-family: var(--font-body); font-size: 0.88rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-consultar:hover { background: var(--sky); color: #fff; border-color: var(--sky); }

/* ── SECCIÓN MARCAS/DISPOSITIVOS ── */
.devices-section { background: var(--dark2); padding: 72px 5vw 80px; }
.devices-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin-top: 2rem;
}
.device-card {
  background: rgba(121,167,234,0.5); border: 1px solid rgba(79,138,214,0.6);
  border-radius: 16px; padding: 24px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .2s, border-color .2s, background .2s;
}
.device-card:hover { transform: translateY(-3px); background: rgba(121,167,234,0.25); border-color: rgba(79,138,214,0.35); }
.device-brand { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.device-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.device-cta-card {
  background: linear-gradient(135deg, rgba(0,102,255,0.06), rgba(0,178,169,0.04));
  border: 1px solid rgba(0,102,255,0.2); border-radius: 16px;
  padding: 28px 24px; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 16px;
  grid-column: span 2;
}
.device-cta-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.device-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 100px; background: var(--sky); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--sky-dark); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 100px; background: transparent; color: var(--text);
  border: 1.5px solid var(--border); font-family: var(--font-body); font-weight: 500;
  font-size: 0.9rem; text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--sky); color: var(--sky); }

/* ── BANNER "OTROS MODELOS" ── */
.banner-otros {
  margin: 0 5vw 80px;
  background: linear-gradient(135deg, #0066ff, #0052cc);
  border-radius: 24px; padding: 48px 5%;
  text-align: center; position: relative; overflow: hidden;
}
.banner-otros::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(255,255,255,.15), transparent);
}
.banner-otros h2 {
  font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800; color: #fff; margin-bottom: 0.8rem; position: relative;
}
.banner-otros p { color: rgba(255,255,255,.85); max-width: 480px; margin: 0 auto 2rem; position: relative; font-size: 1rem; }
.banner-otros .btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 100px;
  background: #fff; color: var(--sky);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  position: relative;
}
.banner-otros .btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.banner-otros .btn-call {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 100px;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: background .2s, border-color .2s;
  position: relative; margin-left: 12px;
}
.banner-otros .btn-call:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── SECCIÓN ACCESORIOS ── */
#accesorios {
  padding: 72px 5vw 80px;
  background: var(--dark2);
}
.accesorios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px; margin-top: 2.5rem;
}
.accesorio-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 20px 16px;
  text-align: center; transition: transform .2s, box-shadow .2s;
}
.accesorio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.accesorio-icon { font-size: 2rem; margin-bottom: 10px; }
.accesorio-card h4 { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.accesorio-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* ── FOOTER ── */
footer {
  background: #0066ff;
  color: rgba(255,255,255,0.7);
  padding: 56px 5vw 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 12px; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-col h5 { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); text-decoration: none; font-size: 0.88rem; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,.35); }
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: rgba(255,255,255,.4); text-decoration: none; font-size: 0.82rem; transition: color .2s; }
.legal-links a:hover { color: rgba(255,255,255,.8); }

/* ── WA FLOAT ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-drawer { display: block; }
  #hero-terminales { padding: 100px 5vw 48px; }
  .terminales-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .terminal-img-wrap { min-height: 160px; padding: 20px; }
  .terminal-img-wrap img { max-height: 130px; }
  .banner-otros { margin: 0 4vw 60px; padding: 36px 6%; }
  .banner-otros .btn-call { margin-left: 0; }
  .accesorios-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
@media (max-width: 480px) {
  .terminales-grid { grid-template-columns: 1fr 1fr; }
  .accesorios-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Neutralizar nav::after de otros temas (banderolas fiesta, etc.) ── */
nav::after { display: none !important; }
