/* =============================================================
   TPGO Tech — main.css
   Paleta navy profesional. Sin gradientes de colores llamativos.
   ============================================================= */

/* VARIABLES */
:root {
  --brand-primary: #1A3D7B;
  --brand-dark: #0D1F3C;
  --brand-accent: #2563EB;
  --white: #FFFFFF;
  --gray-text: #64748B;
  --gray-light: #94A3B8;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --border: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(26, 61, 123, 0.2);
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-white);
  color: #1E293B;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* SELECTION */
::selection { background: var(--brand-accent); color: #fff; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===================
   REVEAL (Intersection Observer)
   =================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================
   LOADER
   =================== */
.loader {
  position: fixed; inset: 0;
  background: var(--brand-dark);
  z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner {
  font-size: 1.4rem; font-weight: 800; letter-spacing: 0.05em;
  color: #fff;
  animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ===================
   NAV
   =================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.35s ease;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(13, 31, 60, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 38px; height: 38px; border-radius: 8px; }
.nav-logo-text { font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 9px 22px !important;
  background: var(--brand-accent) !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #1d4ed8 !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* NAV DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.75rem; opacity: 0.6; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  background: rgba(13,31,60,0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 8px;
  min-width: 240px; z-index: 1010; list-style: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu a {
  display: block; padding: 9px 16px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.75) !important;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: rgba(37,99,235,0.18); color: #fff !important; }
@media (max-width: 968px) {
  .nav-dropdown > a::after { display: none; }
  .nav-dropdown-menu { display: none !important; }
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }
@media (max-width: 968px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 72%;
    height: 100vh; flex-direction: column; justify-content: center; gap: 36px;
    background: var(--brand-dark);
    transition: right 0.4s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
}

/* ===================
   HERO
   =================== */
.hero {
  min-height: 100vh;
  background: var(--brand-dark);
  display: flex; align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
/* Subtle diagonal pattern overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 64px; align-items: center;
}
.hero-authority {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 4px;
  font-size: 0.78rem; font-weight: 600; color: #93C5FD;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 520px;
}
.hero-award {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.hero-award strong { color: rgba(255,255,255,0.65); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--brand-accent);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  border-radius: 6px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn-primary svg { transition: transform 0.25s; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-weight: 600; font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
/* Hero photo */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-photo-wrap {
  position: relative; width: 420px; height: 460px;
  flex-shrink: 0;
}
.hero-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 4px;
  position: relative; z-index: 2;
  filter: grayscale(15%) contrast(1.05);
}
.hero-photo-accent {
  position: absolute;
  bottom: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 2px solid rgba(37, 99, 235, 0.35);
  border-radius: 4px;
  z-index: 1;
}
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-photo-wrap { width: 280px; height: 310px; }
  .hero-authority { margin-left: auto; margin-right: auto; }
}

/* ===================
   DOLOR (Pain Points)
   =================== */
.dolor {
  padding: 100px 0;
  background: var(--bg-white);
}
.dolor-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 580px;
  line-height: 1.7;
}
/* Section titles on dark backgrounds */
.section-title--white { color: #fff; }
.section-subtitle--white { color: rgba(255,255,255,0.65); }
.section-label--white { color: #93C5FD; }

.dolor-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.dolor-card {
  padding: 32px 28px;
  background: var(--bg-light);
  border-left: 3px solid var(--brand-accent);
  border-radius: 0 8px 8px 0;
  transition: box-shadow 0.2s;
}
.dolor-card:hover { box-shadow: 0 4px 24px rgba(26,61,123,0.1); }
.dolor-card p {
  font-size: 1rem;
  color: #1E293B;
  font-weight: 500;
  line-height: 1.65;
}
.dolor-closing {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
  padding-top: 8px;
}
@media (max-width: 768px) {
  .dolor-grid { grid-template-columns: 1fr; }
}

/* ===================
   SERVICIOS
   =================== */
.services {
  padding: 100px 0;
  background: var(--bg-light);
}
.services-header { margin-bottom: 56px; }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  padding: 40px 36px;
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  box-shadow: 0 8px 32px rgba(26,61,123,0.1);
  transform: translateY(-4px);
  border-color: #CBD5E1;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,0.08);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.15rem; font-weight: 700; color: #0F172A;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--gray-text); font-size: 0.93rem; line-height: 1.7;
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===================
   AUTORIDAD
   =================== */
.autoridad {
  padding: 100px 0;
  background: var(--brand-dark);
}
.autoridad-inner {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 72px; align-items: center;
}
.autoridad-photo {
  position: relative;
}
.autoridad-photo img {
  width: 100%; border-radius: 4px;
  filter: grayscale(20%) contrast(1.05);
  position: relative; z-index: 2;
}
.autoridad-photo-accent {
  position: absolute; bottom: -10px; right: -10px;
  width: 100%; height: 100%;
  border: 2px solid rgba(37,99,235,0.4);
  border-radius: 4px; z-index: 1;
}
.autoridad-quote {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.autoridad-badges {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.autoridad-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  font-size: 0.83rem; font-weight: 600; color: rgba(255,255,255,0.8);
}
.autoridad-badge svg { flex-shrink: 0; }
@media (max-width: 768px) {
  .autoridad-inner { grid-template-columns: 1fr; }
  .autoridad-photo { max-width: 240px; margin: 0 auto; }
}

/* ===================
   MÉTODO
   =================== */
.metodo {
  padding: 100px 0;
  background: var(--bg-white);
}
.metodo-header { text-align: center; margin-bottom: 64px; }
.metodo-header .section-subtitle { margin: 0 auto; }
.metodo-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.metodo-step {
  padding: 36px 28px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  position: relative;
  transition: box-shadow 0.25s;
}
.metodo-step:hover { box-shadow: 0 4px 24px rgba(26,61,123,0.09); }
.metodo-num {
  font-size: 3.5rem; font-weight: 800;
  color: var(--brand-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.metodo-step h3 { font-size: 1.1rem; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.metodo-step p { font-size: 0.92rem; color: var(--gray-text); line-height: 1.65; }
.metodo-step-label {
  font-size: 0.72rem; font-weight: 700; color: var(--brand-accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 4px;
  display: block;
}
.metodo-cta { text-align: center; }
.metodo-cta-note {
  margin-top: 14px;
  font-size: 0.82rem; color: var(--gray-text);
}
@media (max-width: 768px) {
  .metodo-steps { grid-template-columns: 1fr; }
}

/* ===================
   SECTORES
   =================== */
.sectores {
  padding: 100px 0;
  background: var(--bg-light);
}
.sectores-header { text-align: center; margin-bottom: 56px; }
.sectores-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sector-card {
  padding: 36px 28px;
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sector-card:hover {
  box-shadow: 0 6px 24px rgba(26,61,123,0.09);
  transform: translateY(-3px);
}
.sector-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(26,61,123,0.07);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sector-card h3 { font-size: 1.05rem; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.sector-card p { font-size: 0.9rem; color: var(--gray-text); line-height: 1.6; }
@media (max-width: 768px) {
  .sectores-grid { grid-template-columns: 1fr; }
}

/* ===================
   EQUIPO / SOBRE NOSOTROS
   =================== */
.equipo {
  padding: 100px 0;
  background: var(--bg-white);
}
.equipo-inner {
  display: grid; grid-template-columns: 300px 1fr;
  gap: 72px; align-items: center;
}
.equipo-photo { position: relative; }
.equipo-photo img {
  width: 100%; border-radius: 4px;
  filter: grayscale(10%) contrast(1.05);
  position: relative; z-index: 2;
}
.equipo-photo-accent {
  position: absolute; bottom: -10px; right: -10px;
  width: 100%; height: 100%;
  border: 2px solid rgba(26, 61, 123, 0.2);
  border-radius: 4px; z-index: 1;
}
.equipo-name { font-size: 2rem; font-weight: 800; color: #0F172A; margin-bottom: 4px; letter-spacing: -0.03em; }
.equipo-role { font-size: 0.85rem; font-weight: 600; color: var(--brand-accent); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.equipo-empresa { font-size: 0.83rem; color: var(--gray-text); margin-bottom: 20px; }
.equipo-award-strip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(26,61,123,0.06);
  border: 1px solid rgba(26,61,123,0.15);
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 0.82rem; font-weight: 600; color: var(--brand-primary);
}
.equipo-bio { font-size: 1rem; color: #334155; line-height: 1.8; margin-bottom: 24px; }
.equipo-links { display: flex; gap: 14px; flex-wrap: wrap; }
.equipo-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  border: 1px solid rgba(26,61,123,0.25);
  border-radius: 4px;
  font-size: 0.83rem; font-weight: 600; color: var(--brand-primary);
  transition: background 0.2s, border-color 0.2s;
}
.equipo-link:hover { background: rgba(26,61,123,0.07); border-color: var(--brand-primary); }
@media (max-width: 768px) {
  .equipo-inner { grid-template-columns: 1fr; }
  .equipo-photo { max-width: 240px; margin: 0 auto; }
}

/* ===================
   FAQ
   =================== */
.faq {
  padding: 100px 0;
  background: var(--bg-light);
}
.faq-header { text-align: center; margin-bottom: 56px; }
.faq-header .section-subtitle { margin: 0 auto; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E2E8F0; overflow: hidden; }
.faq-question {
  padding: 22px 0;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.97rem; color: #0F172A;
  gap: 16px;
  transition: color 0.2s;
  user-select: none;
}
.faq-question:hover { color: var(--brand-accent); }
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.faq-icon svg { width: 13px; height: 13px; color: var(--brand-primary); transition: transform 0.3s; }
.faq-item.open .faq-icon { background: var(--brand-accent); border-color: var(--brand-accent); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner {
  padding-bottom: 20px;
  color: var(--gray-text); line-height: 1.75; font-size: 0.93rem;
}
.faq-item.open .faq-answer { max-height: 320px; }

/* ===================
   CTA FINAL
   =================== */
.cta-section {
  padding: 120px 0;
  background: var(--brand-dark);
  text-align: center;
}
.cta-content { max-width: 660px; margin: 0 auto; }
.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  line-height: 1.75;
}
.btn-primary--white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  background: #fff; color: var(--brand-dark);
  font-weight: 700; font-size: 1rem;
  border-radius: 6px; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary--white:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-primary--white svg { transition: transform 0.25s; }
.btn-primary--white:hover svg { transform: translateX(4px); }

/* ===================
   FOOTER
   =================== */
.footer {
  padding: 56px 0 36px;
  background: #060F1E;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 40px;
}
.footer-brand-block {}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.footer-brand img { width: 32px; height: 32px; border-radius: 6px; }
.footer-brand-name { font-weight: 800; font-size: 1.05rem; color: #fff; }
.footer-tagline { font-size: 0.83rem; color: rgba(255,255,255,0.4); max-width: 320px; line-height: 1.6; }
.footer-nav-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-nav-col h5 {
  font-size: 0.7rem; font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-nav-col ul { list-style: none; }
.footer-nav-col ul li { margin-bottom: 8px; }
.footer-nav-col ul a { font-size: 0.87rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-nav-col ul a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.65); }
@media (max-width: 768px) {
  .footer-top { flex-direction: column; }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===================
   SCROLL TOP
   =================== */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--brand-primary);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 100;
  opacity: 0; transform: translateY(12px);
  transition: all 0.3s;
  border: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-accent); }
.scroll-top svg { width: 18px; height: 18px; color: #fff; }

/* ===================
   BLOG — ARTÍCULO
   =================== */
.article-hero {
  background: var(--brand-dark);
  padding: 120px 0 60px;
  position: relative; overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.article-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.article-category {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.35);
  border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  color: #93C5FD; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800;
  color: #fff; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.84rem; color: rgba(255,255,255,0.5);
  margin-top: 20px;
}
.article-meta time { color: rgba(255,255,255,0.5); }
.article-meta .author { color: #93C5FD; font-weight: 500; }

/* Breadcrumb */
.breadcrumb-nav {
  background: var(--bg-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-dark);
}
.breadcrumb-list {
  display: flex; align-items: center; gap: 6px;
  list-style: none; font-size: 0.82rem; color: var(--gray-text);
}
.breadcrumb-list a { color: var(--brand-accent); }
.breadcrumb-list li::after { content: '›'; margin-left: 6px; opacity: 0.4; }
.breadcrumb-list li:last-child::after { content: ''; }

/* Article body */
.article-body {
  max-width: 820px; margin: 0 auto;
  padding: 56px 24px 64px;
}
.article-body h2 {
  font-size: 1.4rem; font-weight: 700; color: #0F172A;
  margin: 40px 0 14px; letter-spacing: -0.01em;
}
.article-body h3 {
  font-size: 1.1rem; font-weight: 600; color: #1E293B;
  margin: 28px 0 10px;
}
.article-body p {
  font-size: 1.02rem; line-height: 1.75; color: #334155;
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  padding-left: 22px; margin-bottom: 20px;
}
.article-body li {
  font-size: 1.02rem; line-height: 1.7; color: #334155;
  margin-bottom: 8px;
}
.article-body strong { color: #0F172A; font-weight: 600; }
.article-body .highlight-box {
  background: #EFF6FF; border-left: 4px solid var(--brand-accent);
  padding: 18px 22px; border-radius: 0 8px 8px 0;
  margin: 28px 0;
}
.article-body .highlight-box p { margin-bottom: 0; color: #1E3A8A; }

/* Article CTA */
.article-cta {
  background: var(--brand-dark);
  border-radius: 16px; padding: 44px 40px;
  text-align: center; margin: 48px 0;
}
.article-cta h3 {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  margin-bottom: 12px;
}
.article-cta p { color: rgba(255,255,255,0.65); margin-bottom: 24px; font-size: 1rem; }
.article-cta .btn-primary {
  display: inline-block;
  background: var(--brand-accent); color: #fff;
  padding: 14px 32px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.article-cta .btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }

/* Blog index */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; padding: 56px 0;
}
.blog-card {
  border: 1px solid #E2E8F0; border-radius: 12px;
  padding: 28px; transition: border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--brand-accent); box-shadow: 0 4px 24px rgba(37,99,235,0.1); }
.blog-card-category {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brand-accent); margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.05rem; font-weight: 700; color: #0F172A; line-height: 1.4; margin-bottom: 10px; }
.blog-card p { font-size: 0.88rem; color: var(--gray-text); line-height: 1.6; flex: 1; }
.blog-card-footer { margin-top: 18px; font-size: 0.8rem; color: var(--gray-light); }
.blog-card a.read-more {
  display: inline-block; margin-top: 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--brand-accent);
}
.blog-card a.read-more:hover { color: var(--brand-primary); }
@media (max-width: 640px) {
  .article-body { padding: 36px 20px 48px; }
  .article-cta { padding: 32px 20px; }
  .article-cta h3 { font-size: 1.2rem; }
}
