/* ═══════════════════════════════════════════════════════════
   styles.css — TechStore
   Tema: tecnología moderna (azul, cian, toques neón)
═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --clr-primary:       #2563eb;
  --clr-primary-dark:  #1d4ed8;
  --clr-secondary:     #0ea5e9;
  --clr-neon:          #06d6a0;
  --clr-dark:          #07080f;
  --clr-dark-2:        #0f1629;
  --clr-dark-3:        #1a2540;
  --clr-text:          #1e2340;
  --clr-text-light:    #5a6282;
  --clr-text-muted:    #94a3b8;
  --clr-bg:            #f0f4ff;
  --clr-bg-alt:        #eef2ff;
  --clr-card:          #ffffff;
  --clr-border:        #dde4ff;
  --clr-success:       #16a34a;
  --clr-whatsapp:      #25d366;
  --clr-error:         #ef4444;

  --shadow-xs: 0 1px 4px rgba(37, 99, 235, .06);
  --shadow-sm: 0 2px 10px rgba(37, 99, 235, .08);
  --shadow-md: 0 8px 28px rgba(37, 99, 235, .14);
  --shadow-lg: 0 18px 56px rgba(37, 99, 235, .20);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.24s ease;

  --header-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
code {
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  background: var(--clr-bg-alt);
  padding: .15em .45em;
  border-radius: 4px;
  font-size: .85em;
  color: var(--clr-primary);
}


/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: #fff;
  box-shadow: 0 4px 22px rgba(37, 99, 235, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, .48);
}
.btn-outline {
  border-color: rgba(255,255,255,.55);
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.8);
  transform: translateY(-2px);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 2.1rem;
  background: var(--clr-whatsapp);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 22px rgba(37, 211, 102, .32);
  transition: all var(--transition);
  margin-top: 1.75rem;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .5);
}
.wa-icon { width: 22px; height: 22px; flex-shrink: 0; }


/* ══════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(37, 99, 235, .08);
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.2;
  margin-bottom: .75rem;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
}
.section-desc {
  color: var(--clr-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 1.25rem auto 0;
}
.gradient-text {
  background: linear-gradient(90deg, #60a5fa, #22d3ee, var(--clr-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ══════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(7, 8, 15, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 212, 255, .12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(6, 214, 160, .45));
  transition: filter var(--transition);
  flex-shrink: 0;
}
.logo:hover .logo-img {
  filter: drop-shadow(0 0 16px rgba(0, 212, 255, .8));
}
.logo-brand {
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  background: linear-gradient(90deg, #ffffff 30%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
/* Nav links */
.nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.nav-link {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover {
  color: #00d4ff;
  background: rgba(0, 212, 255, .08);
}
/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
/* Open state */
.nav-toggle.open .hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .hamburger:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #07080f 0%, #0f1629 55%, #0d1f4d 100%);
  padding: 6rem 0 5.5rem;
}
/* Background decorative circles */
.hero-bg-circles { position: absolute; inset: 0; pointer-events: none; }
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: .18;
}
.c1 {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, .6), transparent 70%);
}
.c2 {
  width: 400px; height: 400px;
  bottom: -160px; left: -80px;
  background: radial-gradient(circle, rgba(6, 214, 160, .5), transparent 70%);
}
.c3 {
  width: 280px; height: 280px;
  top: 60%; left: 38%;
  background: radial-gradient(circle, rgba(14, 165, 233, .4), transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3.5rem;
}
.hero-text {
  min-width: 0; /* prevent overflow in grid */
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hero-sub {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat span {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-top: .15rem;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* ── Hero visual column ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Animated glowing ring around the logo */
.hero-logo-ring {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  /* Outer glow pulse */
  animation: ring-pulse 3.5s ease-in-out infinite;
}
/* Rotating gradient border */
.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #00d4ff,
    #2563eb,
    #06d6a0,
    #0ea5e9,
    #00d4ff
  );
  animation: ring-spin 4s linear infinite;
  z-index: 0;
}
/* White mask to create a border-only effect */
.hero-logo-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #07080f;
  z-index: 1;
}
.hero-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 28px rgba(0, 212, 255, .35), 0 0 60px rgba(6, 214, 160, .18); }
  50%       { box-shadow: 0 0 48px rgba(0, 212, 255, .65), 0 0 90px rgba(6, 214, 160, .35); }
}


/* ══════════════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════════════ */
.services-section {
  padding: 5.5rem 0;
  background: #0f172a;
}
.services-section .section-tag {
  color: #7dd3fc;
  background: rgba(125, 211, 252, .1);
}
.services-section .section-header h2 { color: #f1f5f9; }
.services-section .section-header h2::after {
  background: linear-gradient(90deg, #7dd3fc, #06d6a0);
}
.services-section .section-desc { color: #94a3b8; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  border-color: rgba(0, 212, 255, .3);
  background: #243044;
}
.service-card h3 { color: #e2e8f0; }
.service-card p  { color: #94a3b8; }
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon-wrap svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: .975rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: .45rem;
}
.service-card p {
  font-size: .845rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Bank card variant — logos replace the icon */
.bank-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
  min-height: 56px;
}
.bank-logo {
  height: 36px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  border-radius: 6px;
}


/* ══════════════════════════════════════════════
   CATALOG SECTION
══════════════════════════════════════════════ */
.catalog-section {
  padding: 5.5rem 0;
  background: #131c30;
}
.catalog-section .section-tag {
  color: #7dd3fc;
  background: rgba(125, 211, 252, .1);
}
.catalog-section .section-header h2 { color: #f1f5f9; }
.catalog-section .section-header h2::after {
  background: linear-gradient(90deg, #7dd3fc, #06d6a0);
}
.catalog-section .section-desc { color: #94a3b8; }

/* ── State containers ── */
.catalog-state {
  text-align: center;
  padding: 4.5rem 2rem;
  color: var(--clr-text-light);
}
.hidden { display: none !important; }
.state-icon { font-size: 3.5rem; margin-bottom: .75rem; }

/* Spinner */
.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin .85s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-error);
  margin-bottom: .5rem;
}
.error-hint {
  font-size: .9rem;
  color: var(--clr-text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Catalog grid ── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.75rem;
}

/* ── Product card ── */
.product-card {
  background: var(--clr-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, .2);
}

/* Image area */
.product-img-wrap {
  position: relative;
  padding-top: 63%;
  background: linear-gradient(145deg, #ecf0ff, #f0f4ff);
  overflow: hidden;
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform .38s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .25rem .65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}

/* Card body */
.product-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
  margin-bottom: .45rem;
}
.product-desc {
  font-size: .845rem;
  color: var(--clr-text-light);
  line-height: 1.55;
  margin-bottom: .85rem;
  flex: 1;
}
.product-price {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--clr-primary);
  margin-bottom: 1.1rem;
  letter-spacing: -.02em;
}
/* Consultar button */
.btn-consultar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.25rem;
  background: linear-gradient(135deg, #1ebe5d, var(--clr-whatsapp));
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, .28);
  width: 100%;
}
.btn-consultar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
}
.btn-consultar svg { width: 18px; height: 18px; flex-shrink: 0; }


/* ══════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════ */
.contact-section {
  padding: 5.5rem 0;
  background: #0f172a;
}
.contact-section .section-tag {
  color: #7dd3fc;
  background: rgba(125, 211, 252, .1);
}
.contact-section .section-header h2 { color: #f1f5f9; }
.contact-section .section-header h2::after {
  background: linear-gradient(90deg, #7dd3fc, #06d6a0);
}
.contact-section .section-desc { color: #94a3b8; }
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  text-align: center;
}
.contact-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: .5rem; }
.contact-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  font-size: .975rem;
  color: #e2e8f0;
  font-weight: 500;
}
.contact-icon { width: 20px; height: 20px; color: var(--clr-primary); flex-shrink: 0; }


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--clr-dark);
  padding: 2.75rem 0;
  border-top: 1px solid rgba(0, 212, 255, .1);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #00d4ff;
}
.footer-logo-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 6px rgba(6, 214, 160, .45));
}
.footer-copy {
  font-size: .825rem;
  color: rgba(255,255,255,.4);
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(7, 8, 15, .98);
    padding: .75rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(0, 212, 255, .12);
    gap: 0;
    z-index: 199;
  }
  .nav.open { display: flex; }
  .nav-link {
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
  }
  .nav-link:last-child { border-bottom: none; }

  .hero { padding: 4.5rem 0 4rem; }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero-logo-ring { width: 180px; height: 180px; }
  .hero-sub { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { justify-content: center; gap: 1rem; }

  .services-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1rem; }

  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }

  .contact-card { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .logo-brand { display: none; }
  .hero-logo-ring { width: 150px; height: 150px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: .875rem; }
  .service-card { padding: 1.4rem 1rem 1.25rem; }
  .catalog-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.85rem; }
}
