/* =================================================================
   NETSEC — PREMIUM REFINEMENT LAYER
   "Enterprise luxury": deep ink, sober steel-azure accent,
   champagne detail, editorial serif. Loaded after styles.css.
   ================================================================= */

/* ---------- TYPOGRAPHY ---------- */
.hero-title,
.section-title,
.contacto-title,
.modal-title,
.brand-title,
.form-success h3,
.modal-success-screen h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f4f6f9;
}
.contacto-title { line-height: 1.13; margin: 14px 0 24px; }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.section-title { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.2; margin-bottom: 26px; }
.section-header .section-desc { margin-top: 4px; }
.section-title.light { color: #f4f6f9; }

/* Highlight = elegant champagne italic serif (no neon gradient) */
.highlight {
  background: none !important;
  -webkit-text-fill-color: currentColor;
  color: var(--gold);
  font-style: italic;
}

/* Eyebrows / tags = refined mono */
.section-tag,
.sol-panel-label,
.logos-title,
.mockup-title,
.stat-label,
.metric-label,
.cert-issuer-logo,
.cert-active-badge,
.sol-card-brand,
.sol-tag,
.prod-cat-badge,
.card-header-badge,
.mockup-badge {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

.section-tag {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 7px 15px 7px 13px;
  border-radius: 6px;
  display: inline-flex;
  gap: 9px;
  text-transform: uppercase;
}
.section-tag::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  align-self: center;
  box-shadow: 0 0 0 4px rgba(107,176,212,0.12);
}
.section-tag.danger { color: #d98a7d; border-color: rgba(207,106,91,0.32); }
.section-tag.danger::before { background: var(--danger); box-shadow: 0 0 0 4px rgba(207,106,91,0.12); }
.section-tag.green { color: #7cc4a6; }
.section-tag.green::before { background: var(--green); }

.section-desc { color: var(--text-muted); font-size: 1.06rem; line-height: 1.75; }
.section-desc.light { color: rgba(236,239,243,0.66); }

/* Numbers in mono for a technical, premium read */
.stat-num, .metric-num, .card-law-number, .progress-val .percent {
  font-family: var(--font-mono) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-num, .metric-num { color: #f4f6f9; }

/* ---------- BACKGROUND RHYTHM ---------- */
.problema   { background: var(--bg-2); border-top: 1px solid var(--border); }
.soluciones { background: var(--bg-dark); }
.confianza  { background: var(--bg-2); border-top: 1px solid var(--border); }
.productos  { background: var(--bg-dark); }
.contacto   { background: var(--bg-2); border-top: 1px solid var(--border); }
.section { padding: 110px 0; }
.section-header { margin-bottom: 60px; }

/* ---------- NAVBAR ---------- */
.navbar.scrolled { background: rgba(9,11,15,0.82); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(255,255,255,0.03); }
/* Logo legibility on dark hero: bigger + soft shadow so white-outline letters pop */
.nav-logo-img { height: 46px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.55)) drop-shadow(0 0 10px rgba(0,0,0,0.35)); }
.navbar.scrolled .nav-logo-img { height: 40px; }
.nav-links { gap: 26px; }
.nav-links a { font-size: 0.875rem; letter-spacing: 0.01em; color: rgba(236,239,243,0.66); white-space: nowrap; }
.btn-nav {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  box-shadow: none;
}
.btn-nav:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.28); transform: translateY(-1px); box-shadow: none; }
/* override the inline cyan catalogue link */
.nav-links a[href="productos.html"] { color: var(--primary) !important; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: #f4f6f9;
  color: #0b0d11;
  border-radius: 9px;
  padding: 16px 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.35s, background 0.35s;
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.btn-primary svg { stroke: #0b0d11; }
.btn-primary.full { padding: 17px; }

.btn-ghost { color: rgba(236,239,243,0.6); font-size: 0.92rem; gap: 6px; }
.btn-ghost:hover { color: var(--primary-strong); }

.btn-order-cta {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border-strong);
  font-weight: 500;
  font-size: 0.82rem;
}
.btn-order-cta:hover { background: rgba(107,176,212,0.08); color: var(--primary-strong); border-color: rgba(107,176,212,0.4); box-shadow: none; }

/* ---------- HERO ---------- */
.hero-overlay { background: radial-gradient(120% 90% at 50% 0%, rgba(107,176,212,0.06) 0%, var(--bg-dark) 62%); }
#networkCanvas { opacity: 0.4; }
.hero-content { max-width: 980px; }

.hero-badge {
  background: rgba(207,106,91,0.08);
  border: 1px solid rgba(207,106,91,0.24);
  color: #d98a7d;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 7px;
}
.hero-subtitle { color: rgba(236,239,243,0.66); font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.75; max-width: 660px; }

.hero-stats {
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  backdrop-filter: blur(8px);
}
.stat-num { font-size: 2.1rem; color: #f4f6f9; }
.stat-label { font-size: 0.66rem; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }
.hero-scroll-hint span { font-family: var(--font-mono); font-size: 0.62rem; }

/* ---------- GENERIC CARD REFINEMENT (kill the neon glow) ---------- */
.problema-card,
.sol-card,
.trust-metric,
.cert-card,
.prod-item,
.product-card,
.trust-quote,
.contact-form,
.dashboard-mockup,
.contact-info-block {
  background: var(--bg-card) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.problema-card { padding: 44px; }
.problema-card:hover,
.sol-card:hover,
.trust-metric:hover,
.cert-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.sol-card:hover { box-shadow: var(--shadow-soft); border-color: rgba(107,176,212,0.28); }

/* hairline top accent that fades in on hover for sol-cards */
.sol-card { position: relative; overflow: hidden; }
.sol-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.sol-card:hover::after { opacity: 0.7; }

.card-glow { opacity: 0.06 !important; filter: blur(80px); }
.card-glow.red { background: var(--danger); }
.card-glow.orange { background: var(--warning); }

.card-law-number { color: #f4f6f9; font-size: 2rem; }
.card-law-number.orange { color: var(--warning); }

.card-header-badge {
  background: transparent;
  border: 1px solid var(--border-strong);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 6px;
}
.card-header-badge.red { color: #d98a7d; border-color: rgba(207,106,91,0.3); }
.card-header-badge.orange { color: #d6a766; border-color: rgba(204,154,85,0.3); }

.card-risk { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; text-transform: none; border-radius: 8px; }
.card-risk.red { background: rgba(207,106,91,0.06); color: #d98a7d; border-color: rgba(207,106,91,0.18); }
.card-risk.orange { background: rgba(204,154,85,0.06); color: #d6a766; border-color: rgba(204,154,85,0.18); }
.oblig-icon { filter: grayscale(0.2); }

/* ---------- SOLUTION ICONS — muted, refined ---------- */
.sol-card-icon {
  width: 48px; height: 48px; border-radius: 11px;
  background: rgba(255,255,255,0.035) !important;
  border: 1px solid var(--border);
  color: var(--primary) !important;
  margin-bottom: 22px;
}
.sol-card-icon.orange, .sol-card-icon.gold { color: var(--gold) !important; }
.sol-card-icon.green { color: var(--green) !important; }
.sol-card-icon.red { color: var(--danger) !important; }
.sol-card-brand { color: var(--text-dim); font-size: 0.68rem; }
.sol-card h4 { font-size: 1.12rem; color: #eceff3; font-weight: 600; }
.sol-card p { color: var(--text-muted); }
.sol-tag {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.66rem; border-radius: 5px;
}

/* ---------- TABS ---------- */
.sol-tab {
  background: transparent; border: 1px solid var(--border);
  border-radius: 9px; color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
}
.sol-tab:hover { border-color: var(--border-strong); color: var(--text-main); background: rgba(255,255,255,0.03); }
.sol-tab.active {
  background: rgba(107,176,212,0.08);
  border-color: rgba(107,176,212,0.38);
  color: var(--primary-strong);
  box-shadow: none;
}

/* ---------- LOGOS / MARQUEE ---------- */
.logos-track-wrapper::before { background: linear-gradient(to right, var(--bg-2), transparent); }
.logos-track-wrapper::after { background: linear-gradient(to left, var(--bg-2), transparent); }
.logo-chip {
  background: transparent; border: 1px solid var(--border);
  color: rgba(236,239,243,0.45); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.01em; border-radius: 8px;
}
.logo-chip:hover { background: rgba(255,255,255,0.03); border-color: var(--border-strong); color: var(--text-main); }

/* ---------- CERTS ---------- */
.cert-card.featured { background: linear-gradient(135deg, rgba(198,168,117,0.06), rgba(198,168,117,0.02)) !important; border-color: rgba(198,168,117,0.3); box-shadow: none; }
.cert-badge-ring.gold svg circle:first-child { stroke: var(--gold); }
.cert-badge-ring.cyan svg circle:first-child { stroke: var(--primary); }
.cert-issuer-logo { color: var(--primary); }
.cert-active-badge { background: var(--gold-soft); color: var(--gold); border-color: rgba(198,168,117,0.28); font-size: 0.58rem; }
.cert-title { color: #eceff3; }
.cert-code { color: var(--primary); font-family: var(--font-mono); font-size: 0.7rem; }

/* ---------- QUOTE ---------- */
.trust-quote { background: rgba(255,255,255,0.018) !important; padding: 56px; }
.quote-icon { font-family: var(--font-display); color: var(--gold); opacity: 0.35; font-size: 6rem; }
.trust-quote p { font-family: var(--font-display); font-style: italic; font-size: 1.55rem; color: #dfe4ea; line-height: 1.55; }
.quote-author { font-family: var(--font-mono); font-size: 0.78rem; color: var(--primary); letter-spacing: 0.04em; }

/* ---------- METRICS ---------- */
.trust-metric { padding: 36px 24px; }
.metric-num { font-size: 2.6rem; }
.metric-label { font-size: 0.66rem; text-transform: uppercase; color: var(--text-dim); }

/* ---------- FORMS ---------- */
.contact-form { padding: 44px; }
.form-group label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 0.95rem;
  color: #eceff3;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(107,176,212,0.05);
  box-shadow: 0 0 0 3px rgba(107,176,212,0.12);
}
.benefit-check { background: var(--gold-soft); border-color: rgba(198,168,117,0.3); color: var(--gold); }
.contacto-benefits li { color: rgba(236,239,243,0.74); }
.ssl-badge { background: rgba(98,179,147,0.05); border-color: rgba(98,179,147,0.22); }
.ssl-badge svg { color: var(--green); }
.ssl-badge strong { color: var(--green); }

/* ---------- DATA-CONSENT CHECKBOX ---------- */
.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 4px 0 24px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: border-color 0.25s, background 0.25s;
}
.consent-group:hover { border-color: var(--border-strong); }
.consent-group.invalid { border-color: rgba(207,106,91,0.55); background: rgba(207,106,91,0.04); }
.consent-checkbox {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.consent-checkbox:hover { border-color: var(--primary); }
.consent-checkbox:checked { background: var(--primary); border-color: var(--primary); }
.consent-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: solid #0b0d11;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.consent-checkbox:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(107,176,212,0.25); }
.consent-text { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); cursor: pointer; }
.consent-text a { color: var(--primary); text-decoration: none; border-bottom: 1px solid rgba(107,176,212,0.3); }
.consent-text a:hover { color: var(--primary-strong); }
.consent-text .req { color: var(--danger); }

/* ---------- PREMIUM IMAGE FRAME + MOTION ---------- */
.premium-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1), border-color 0.6s, box-shadow 0.6s;
  will-change: transform;
}
.premium-frame img { width: 100%; display: block; transition: transform 1.4s cubic-bezier(0.2,0.8,0.2,1), filter 0.6s; }
.premium-frame:hover { transform: translateY(-6px); border-color: rgba(107,176,212,0.32); box-shadow: 0 36px 80px rgba(0,0,0,0.55); }
.premium-frame:hover img { transform: scale(1.045); filter: brightness(1.05) saturate(1.05); }
/* corner ticks (technical luxury detail) */
.premium-frame::before, .premium-frame::after {
  content: ""; position: absolute; width: 16px; height: 16px; z-index: 3; pointer-events: none;
  border-color: rgba(198,168,117,0.6); border-style: solid; border-width: 0;
}
.premium-frame::before { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.premium-frame::after { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
/* sheen sweep on hover */
.premium-frame .sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.10) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.2,0.8,0.2,1);
}
.premium-frame:hover .sheen { transform: translateX(120%); }
.premium-frame .frame-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 4;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(236,239,243,0.82);
  background: rgba(9,11,15,0.6); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(6px);
}
/* video frames: keep tag/corners clear of the control bar */
.premium-frame.has-video .frame-tag { top: 14px; bottom: auto; left: auto; right: 14px; }
.premium-frame.has-video::after { display: none; }
.premium-frame.has-video:hover { transform: translateY(-6px); }
.premium-frame.has-video:hover video { transform: none; }

/* refine legacy image helpers */
.floating-image { animation: floatSoft 10s ease-in-out infinite; }
.floating-image:hover { transform: translateY(-6px) scale(1.02); filter: brightness(1.04); }
@keyframes floatSoft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.interactive-hover-card { border-color: var(--border) !important; }
.interactive-hover-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,0.5); border-color: rgba(107,176,212,0.3) !important; }

/* ---------- MEDIA SLOT (drop your own image) ---------- */
.media-slot {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background-color: var(--bg-3);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.022) 0 12px, transparent 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 32px; min-height: 240px;
  transition: border-color 0.3s, background 0.3s;
}
.media-slot:hover { border-color: rgba(107,176,212,0.4); }
.media-slot .ms-mark { font-family: var(--font-mono); font-size: 1.6rem; color: var(--text-dim); }
.media-slot .ms-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.media-slot .ms-hint { font-size: 0.78rem; color: var(--text-dim); max-width: 260px; }

/* ---------- SPOTLIGHT / NEW PRODUCTS SECTION ---------- */
.novedades { background: var(--bg-2); border-top: 1px solid var(--border); position: relative; }
.spotlight {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  background: linear-gradient(135deg, rgba(198,168,117,0.05), rgba(255,255,255,0.012));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px; margin-bottom: 40px;
}
.spotlight-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 9px; }
.spotlight-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.spotlight h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #f4f6f9; line-height: 1.2; margin-bottom: 20px; }
.spotlight p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 26px; }
.spotlight-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.spotlight-meta span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; padding: 6px 11px; white-space: nowrap; }

.newprods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.newprod-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), border-color 0.4s, box-shadow 0.4s;
}
.newprod-card:hover { transform: translateY(-5px); border-color: rgba(107,176,212,0.3); box-shadow: var(--shadow-soft); }
.newprod-badge { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(198,168,117,0.28); border-radius: 20px; padding: 4px 11px; }
.newprod-icon { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,0.035); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 20px; }
.newprod-icon svg { width: 22px; height: 22px; }
.newprod-card h4 { font-size: 1.12rem; color: #eceff3; font-weight: 600; margin-bottom: 8px; }
.newprod-brand { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.newprod-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; }
.newprod-card .editable-note { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.04em; opacity: 0.7; }

/* ---------- EXPANDED PRODUCT DESCRIPTION SPACE ---------- */
.prod-extended {
  margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}
.prod-extended .pe-block h5 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.prod-extended .pe-block p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.prod-extended .pe-editable { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); line-height: 1.7; }

/* ---------- MODAL ---------- */
.modal-backdrop { background: rgba(6,8,11,0.82); }
.modal-content-wrap { background: rgba(14,18,24,0.94) !important; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 40px 90px rgba(0,0,0,0.7); }
.modal-title { font-size: 1.9rem; }
.modal-form .form-group input, .modal-form .form-group select, .modal-form .form-group textarea { background: rgba(255,255,255,0.035); border-color: var(--border-strong); }

/* ---------- OMNISEC ---------- */
.omnisec-promo { background: var(--bg-dark); }
.omnisec-glow { background: radial-gradient(circle, rgba(107,176,212,0.04) 0%, rgba(198,168,117,0.03) 50%, transparent 100%); }
.omnisec-feature-item h4 { font-family: var(--font-body); font-weight: 600; color: #eceff3; }
.of-icon { background: rgba(255,255,255,0.03); border-color: var(--border); color: var(--primary); }
.btn-pdf-download { background: var(--gold-soft); border-color: rgba(198,168,117,0.28); }
.btn-pdf-download:hover { background: rgba(198,168,117,0.18); border-color: rgba(198,168,117,0.5); box-shadow: 0 14px 36px rgba(0,0,0,0.4); }
.radial-progress .fg-circle { filter: none; }
.stat-bar-fill.blue-fill { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); box-shadow: none; }
.stat-bar-fill.green-fill { background: linear-gradient(90deg, #4f9d7d, var(--green)); box-shadow: none; }
.stat-bar-fill.gold-fill { background: linear-gradient(90deg, #a8895a, var(--gold)); box-shadow: none; }

/* ---------- FOOTER ---------- */
.footer { background: #06080b; }
.footer-brand .logo-text { font-family: var(--font-display); }
.footer-logo-img { height: 38px; width: auto; max-width: 230px; object-fit: contain; align-self: flex-start; opacity: 0.92; }
.footer-links a:hover { color: var(--primary); }

/* ---------- CATALOG PAGE ---------- */
.catalog-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.sidebar-title { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--text-muted); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(107,176,212,0.08); color: var(--primary); }
.brand-title { font-size: 2.4rem; }
.brand-desc { color: var(--primary); font-family: var(--font-mono); font-size: 0.84rem; letter-spacing: 0.02em; }
.product-card { padding: 28px; }
.product-card h4 { color: #eceff3; font-weight: 600; }
.brand-roadmap-note { margin-top: 24px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--text-dim); }

/* ---------- REVEAL (refined) ---------- */
.fade-in, .slide-up { transition-duration: 1s; transition-timing-function: cubic-bezier(0.2,0.8,0.2,1); }
.slide-up { transform: translateY(28px); }

/* ---------- RESPONSIVE ---------- */
/* ===== AMBIENT CURSOR GLOW (soft premium background) ===== */
#cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 680px; height: 680px; margin: -340px 0 0 -340px;
  border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(circle, rgba(107,176,212,0.12) 0%, rgba(107,176,212,0.05) 38%, transparent 70%);
  filter: blur(26px); opacity: 0; transition: opacity 0.7s ease;
  mix-blend-mode: screen; will-change: transform;
}
body.glow-on #cursor-glow { opacity: 1; }
@media (pointer: coarse) { #cursor-glow { display: none; } }

/* ===== DRIFTING AURORA BACKGROUND (alive under text) ===== */
#aurora { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
#aurora::before, #aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); mix-blend-mode: screen; opacity: 0.55; will-change: transform;
}
#aurora::before {
  width: 52vw; height: 52vw; top: -12%; left: -8%;
  background: radial-gradient(circle, rgba(107,176,212,0.20), transparent 70%);
  animation: auroraDriftA 28s ease-in-out infinite alternate;
}
#aurora::after {
  width: 44vw; height: 44vw; bottom: -12%; right: -8%;
  background: radial-gradient(circle, rgba(198,168,117,0.13), transparent 70%);
  animation: auroraDriftB 34s ease-in-out infinite alternate;
}
@keyframes auroraDriftA { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(20vw, 14vh) scale(1.15); } }
@keyframes auroraDriftB { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-17vw, -11vh) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { #aurora::before, #aurora::after { animation: none; } }

/* ===== KEN BURNS — slow continuous motion on images ===== */
@media (prefers-reduced-motion: no-preference) {
  .premium-frame:not(.has-video) img,
  .soluciones-hero img {
    animation: kenburns 26s ease-in-out infinite alternate;
    will-change: transform;
  }
}
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.09) translate(-1.6%, -1.6%); }
}

/* ===== SOFT SPOTLIGHT FOLLOWING CURSOR INSIDE CARDS ===== */
.sol-card, .problema-card, .newprod-card, .product-card, .cert-card { position: relative; }
.sol-card::before, .problema-card::before, .newprod-card::before, .product-card::before, .cert-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(107,176,212,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.45s ease;
}
.sol-card:hover::before, .problema-card:hover::before, .newprod-card:hover::before,
.product-card:hover::before, .cert-card:hover::before { opacity: 1; }

/* ===== ZYXEL ROADMAP NOTE ===== */
.zyxel-roadmap { text-align: center; margin-top: 30px; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--text-dim); }
.zyxel-roadmap a { color: var(--primary); text-decoration: none; }
.zyxel-roadmap a:hover { color: var(--primary-strong); }

/* ===== VIDEO DEMO BLOCK ===== */
.video-demo { margin-top: 56px; }
.video-demo .premium-frame { max-width: 960px; margin: 0 auto; }
.video-caption { text-align: center; max-width: 680px; margin: 22px auto 0; color: var(--text-muted); font-size: 0.96rem; line-height: 1.7; }

/* ---------- RESPONSIVE ---------- */
/* ===== SOLUCIONES HERO IMAGE ===== */
.soluciones-hero { max-width: 1000px; margin: 0 auto 56px; }

/* ===== CLIENTES & SECTORES ===== */
.clientes { background: var(--bg-dark); border-top: 1px solid var(--border); }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.sector-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), border-color 0.4s, box-shadow 0.4s; }
.sector-card:hover { transform: translateY(-5px); border-color: rgba(107,176,212,0.3); box-shadow: var(--shadow-soft); }
.sector-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(107,176,212,0.10), transparent 60%); opacity: 0; transition: opacity 0.45s ease; }
.sector-card:hover::before { opacity: 1; }
.sector-icon { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,0.035); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 18px; }
.sector-icon svg { width: 22px; height: 22px; }
.sector-card h4 { font-size: 1.1rem; color: #eceff3; font-weight: 600; margin-bottom: 8px; }
.sector-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
.sector-count { position: absolute; top: 26px; right: 26px; white-space: nowrap; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(198,168,117,0.28); border-radius: 20px; padding: 4px 10px; }

.ventaja-panel { margin-top: 28px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; background: linear-gradient(135deg, rgba(198,168,117,0.05), rgba(255,255,255,0.012)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 52px; }
.ventaja-num { font-family: var(--font-mono); font-weight: 600; font-size: clamp(3.6rem, 7vw, 5.4rem); line-height: 1; color: #f4f6f9; letter-spacing: -0.03em; display: block; }
.ventaja-num-label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); display: block; margin-top: 10px; }
.ventaja-figure p { margin-top: 20px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.ventaja-list { list-style: none; display: grid; gap: 16px; }
.ventaja-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.ventaja-list strong { color: #dfe4ea; font-weight: 600; }
.v-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-soft); border: 1px solid rgba(198,168,117,0.3); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 1px; }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .spotlight { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .prod-extended { grid-template-columns: 1fr; gap: 18px; }
  .problema-card { padding: 32px; }
  .contact-form { padding: 30px; }
  .ventaja-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
}

/* ============================================================
   MOBILE & TABLET HARDENING (pre-production responsive pass)
   ============================================================ */
/* Long Spanish words must never overflow their container */
.hero-title, .section-title, .spotlight h3, .contacto-title,
.brand-title, .legal-hero h1, .trust-quote p, .sector-card h4,
.newprod-card h4, .sol-card h4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.container { width: 100%; }

@media (max-width: 768px) {
  /* Comfortable type sizes on phones */
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.7rem); line-height: 1.1; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .spotlight h3 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .hero-subtitle, .section-desc { font-size: 1rem; }
  .trust-quote p { font-size: 1.2rem; }
  .trust-quote { padding: 32px; }
  .premium-frame .frame-tag { font-size: 0.56rem; }
  /* stack the two problema images */
  .visual-wrapper { grid-template-columns: 1fr !important; }
  .premium-frame img, .visual-wrapper .premium-frame img { height: 240px !important; }
  .soluciones-hero img { height: auto; }
  /* tighten section rhythm */
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  /* tap targets */
  .btn-primary, .btn-nav, .btn-order-cta { min-height: 44px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .hero-badge { font-size: 0.62rem; padding: 7px 12px; }
  .problema-card, .contact-form, .spotlight, .ventaja-panel { padding: 22px; }
  .sol-card, .sector-card, .newprod-card { padding: 24px; }
  .sector-grid, .newprods-grid { grid-template-columns: 1fr; }
  .spotlight-meta span { font-size: 0.62rem; }
  .ventaja-num { font-size: clamp(3rem, 16vw, 4rem); }
  .sector-count { position: static; display: inline-block; margin-bottom: 12px; }
  .stat-num { font-size: 1.7rem; }
  /* nav logo a touch smaller so it never crowds the hamburger */
  .nav-logo-img { height: 38px; }
}
