/* ============================================================
   AUTELEC POWER — Estilos (HTML/CSS/JS puro)
   Tema oscuro industrial + acentos esmeralda
   ============================================================ */

:root {
  --bg: #0a0f0d;
  --bg-alt: #0d1311;
  --bg-card: #111916;
  --bg-footer: #070a09;
  --emerald: #10b981;
  --emerald-hover: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.1);
  --emerald-border: rgba(16, 185, 129, 0.3);
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(10, 15, 13, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  /* Fondo blanco suave para legibilidad sobre header oscuro */
  background: #fff;
  border-radius: 6px;
  padding: 3px 6px;
}

.logo-img-footer {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

/* Logo más grande en tablet / desktop */
@media (min-width: 480px) {
  .logo-img {
    height: 40px;
    max-width: 180px;
    padding: 4px 7px;
  }
  .logo-img-footer {
    height: 44px;
    max-width: 200px;
  }
}

@media (min-width: 768px) {
  .logo-img {
    height: 44px;
    max-width: 210px;
    padding: 4px 8px;
  }
  .logo-img-footer {
    height: 50px;
    max-width: 230px;
    padding: 6px 10px;
  }
}

/* Legacy text logo (por si se usa en algún sitio) */
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--emerald);
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: none;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4d4d8;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--emerald);
}

.btn-wa-header {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--emerald);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-wa-header:hover {
  background: var(--emerald-hover);
}

.btn-wa-header .wa-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.btn-wa-header .wa-label small {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.7;
}

.menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 15, 13, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.85rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
}

.mobile-nav a.active {
  color: var(--emerald);
}

.mobile-nav .btn-wa-mobile {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--emerald);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.85rem;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .btn-wa-header { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0f0d 0%, #0d1f18 40%, #0a0f0d 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
}

.hero-tag {
  color: var(--emerald);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero h1 span {
  color: var(--emerald);
}

.hero-desc {
  margin-top: 1.5rem;
  color: #d4d4d8;
  font-size: 1.1rem;
  max-width: 32rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--emerald);
  color: #000;
}

.btn-primary:hover {
  background: var(--emerald-hover);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.hero-stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 28rem;
  gap: 1.5rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--emerald);
}

.hero-stats span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-tag {
  color: var(--emerald);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 36rem;
  line-height: 1.7;
}

/* ---------- NOSOTROS ---------- */
.nosotros-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nosotros-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.features-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  gap: 0.9rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.nosotros-visual {
  position: relative;
}

.nosotros-visual-inner {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #111916, #0d1a14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-visual-inner .placeholder-icon {
  width: 80px;
  height: 80px;
  opacity: 0.15;
  color: var(--emerald);
}

.fundacion-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #101815;
  border: 1px solid var(--emerald-border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
}

.fundacion-badge strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--emerald);
}

.fundacion-badge span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---------- PRODUCTOS / CARDS ---------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.link-more {
  display: none;
  align-items: center;
  gap: 0.35rem;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.85rem;
  transition: gap 0.2s;
}

.link-more:hover {
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .link-more { display: inline-flex; }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--emerald-border);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.12);
}

.card-img {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #0d1a14, #111916);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img svg,
.card-img .cat-icon {
  width: 48px;
  height: 48px;
  color: var(--emerald);
  opacity: 0.4;
  transition: transform 0.4s, opacity 0.3s;
}

.card:hover .card-img svg,
.card:hover .card-img .cat-icon {
  transform: scale(1.1);
  opacity: 0.7;
}

.card-body {
  padding: 1rem;
}

.card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.card-all {
  background: var(--emerald-dim);
  border: 1px solid var(--emerald-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 180px;
  padding: 1.5rem;
  transition: background 0.2s;
}

.card-all:hover {
  background: rgba(16, 185, 129, 0.15);
}

.card-all-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: transform 0.2s;
}

.card-all:hover .card-all-icon {
  transform: scale(1.1);
}

.card-all p {
  font-weight: 700;
  color: var(--emerald);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- SERVICIOS ---------- */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}

.service-card:hover {
  border-color: var(--emerald-border);
}

.service-img {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #0d1a14, #111916);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img svg {
  width: 56px;
  height: 56px;
  color: var(--emerald);
  opacity: 0.35;
}

.service-body {
  padding: 1.5rem;
}

.service-num {
  color: var(--emerald);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.service-body h3 {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.3;
}

.service-body p {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-body .card-link {
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* ---------- UBICACIÓN ---------- */
.ubicacion-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ubicacion-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ubicacion-info p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #d4d4d8;
  margin-top: 1.5rem;
}

.ubicacion-info .horario {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-left: 2rem;
}

.map-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-card);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(35%) contrast(1.05);
}

/* ---------- EXPERIENCIAS ---------- */
.experiencias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .experiencias-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.exp-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #0d1a14, #111916);
}

.exp-card-overlay {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 2.5rem 1rem 1rem;
}

.exp-card-overlay h4 {
  font-size: 0.875rem;
  font-weight: 700;
}

.exp-card-overlay p {
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(90deg, #059669, #10b981);
  padding: 4rem 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #000;
}

.cta p {
  color: rgba(0, 0, 0, 0.7);
  margin-top: 0.35rem;
}

.btn-dark {
  background: #000;
  color: white;
  white-space: nowrap;
}

.btn-dark:hover {
  background: #1a1a1a;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 20rem;
}

.footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--emerald);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: #52525b;
}

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}

.wa-float:hover {
  transform: scale(1.1);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  color: white;
  fill: white;
}

/* ---------- PÁGINAS INTERNAS ---------- */
.page-hero {
  padding: 8rem 0 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 36rem;
}

/* Productos list */
.productos-list {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .productos-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .productos-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .productos-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.producto-item {
  background: #0c1411;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 12px;
  padding: 1.35rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.producto-item:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.08);
}

.producto-item .codigo {
  font-size: 0.78rem;
  color: var(--emerald);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.producto-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.45rem;
  line-height: 1.3;
  color: #fff;
}

.producto-item .marca {
  font-size: 0.72rem;
  color: #a1a1aa;
  margin-top: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.producto-item .detalle {
  font-size: 0.8rem;
  color: #71717a;
  margin-top: 0.25rem;
}

.producto-item .producto-actions {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.producto-item .btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-prod {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: transparent;
  color: var(--emerald);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.btn-prod:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--emerald);
}

.btn-prod svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-prod-cotizar {
  width: 100%;
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--emerald);
  font-size: 0.8rem;
  padding: 0.65rem 0.75rem;
}

.btn-prod-cotizar:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--emerald);
}

.btn-prod.disabled,
.btn-prod[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* Filtros */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filtro-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.filtro-btn:hover,
.filtro-btn.active {
  background: var(--emerald-dim);
  border-color: var(--emerald-border);
  color: var(--emerald);
}

/* Categoría detalle */
.cat-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.cat-info {
  flex: 1;
  min-width: 260px;
}

.cat-features {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.cat-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cat-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--emerald);
}

.breadcrumb span {
  color: var(--text-dim);
}

/* Blog placeholder */
.blog-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-dim);
}

.blog-empty svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  opacity: 0.3;
  color: var(--emerald);
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* Icons (inline SVG helpers) */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
}


/* ---------- FOOTER LEGAL ---------- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: #a1a1aa;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--emerald);
}

.footer-legal .libro-reclamaciones {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #a1a1aa;
  font-size: 0.8rem;
}

.footer-legal .libro-reclamaciones:hover {
  color: #60a5fa;
}

.footer-legal .libro-icon {
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}

/* Página legal */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
  color: #d4d4d8;
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal-content h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--emerald);
}
