/* ============================================================
   INDIGO TECNOLOGÍA — ESTILO 3D PREMIUM
   Paleta: Azul corporativo + Cian tecnológico + WhatsApp
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --azul: #0A2A5E;
  --azul-claro: #1E4FA8;
  --cian: #00C2FF;
  --gris: #B0B7C3;
  --blanco: #FFFFFF;
  --fondo: #F4F6FA;
  --whatsapp: #25D366;
  --sombra-3d: 0 10px 30px rgba(10, 42, 94, 0.15);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: var(--azul);
  background: var(--fondo);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== FONDO GLOBAL DE HEXÁGONOS (textura sutil) ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--fondo);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(30, 79, 168, 0.06) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 194, 255, 0.06) 0, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l26 15v30L30 60 4 45V15z' fill='none' stroke='%230A2A5E' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1E4FA8 0%, #0A2A5E 70%);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 2rem;
  color: var(--blanco);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 194, 255, 0.35);
}
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; }
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 194, 255, 0.5);
  color: var(--blanco);
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(0, 194, 255, 0.35);
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 25px rgba(0,194,255,0.35); }
  50%      { box-shadow: 0 0 45px rgba(0,194,255,0.65); }
}

/* ===== BOTÓN 3D ===== */
.btn-3d {
  display: inline-block;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6EEF8 100%);
  color: var(--azul);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 0 var(--gris), 0 12px 25px rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
}
.btn-3d:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--gris), 0 6px 12px rgba(0,0,0,0.3);
}

/* ===== SECCIONES GENERALES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin-bottom: 1rem; }
.sub { text-align: center; color: #555; max-width: 700px; margin: 0 auto 3rem; }
.highlight { color: var(--azul-claro); }

/* ===== NOSOTROS (con gráfica de fondo) ===== */
.nosotros { background: var(--blanco); position: relative; overflow: hidden; }
.nosotros::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 150 Q150 80 300 120 T600 100 T900 130 T1200 90' fill='none' stroke='%231E4FA8' stroke-opacity='0.15' stroke-width='3'/%3E%3Cpath d='M0 170 Q150 100 300 140 T600 120 T900 150 T1200 110' fill='none' stroke='%2300C2FF' stroke-opacity='0.2' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.contador-wrap { text-align: center; margin: 2rem 0; }
.contador {
  font-size: 5rem;
  font-weight: 900;
  color: var(--azul-claro);
  line-height: 1;
  text-shadow: 0 0 30px rgba(0, 194, 255, 0.4);
}
.contador-label { display: block; color: #666; font-size: 1.1rem; }
.puntos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 2rem;
  font-weight: 600;
}

/* ===== PRODUCTOS 3D ===== */
.productos { background: var(--fondo); }
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.card-3d {
  background: var(--blanco);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--sombra-3d);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(30, 79, 168, 0.08);
}
.card-3d:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 25px 45px rgba(10, 42, 94, 0.2);
}
.card-canvas {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EEF2F8, #DDE6F3);
  cursor: grab;
}
.card-3d h3 { margin: 1rem 0 0.5rem; color: var(--azul); }
.card-3d p { font-size: 0.95rem; color: #555; }

/* ===== SERVICIOS (con barras animadas de fondo) ===== */
.servicios { background: var(--blanco); position: relative; overflow: hidden; }
.servicios::before {
  content: "";
  position: absolute;
  top: 20px; right: 20px;
  width: 200px; height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='10' y='60' width='12' height='30' fill='%2300C2FF' opacity='0.15'/%3E%3Crect x='30' y='40' width='12' height='50' fill='%231E4FA8' opacity='0.15'/%3E%3Crect x='50' y='25' width='12' height='65' fill='%2300C2FF' opacity='0.15'/%3E%3Crect x='70' y='50' width='12' height='40' fill='%231E4FA8' opacity='0.15'/%3E%3C/svg%3E");
  background-size: contain;
  pointer-events: none;
}
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.servicio {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: var(--fondo);
  transition: all 0.35s ease;
  border: 1px solid transparent;
}
.servicio:hover {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-claro) 100%);
  color: var(--blanco);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(10, 42, 94, 0.3);
  border-color: var(--cian);
}
.icono-3d {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: flotar 3s ease-in-out infinite;
}
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ===== CLIENTES ===== */
.clientes { background: var(--fondo); overflow: hidden; }
.carrusel-3d {
  overflow: hidden;
  margin-top: 2rem;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.track {
  display: flex;
  gap: 4rem;
  animation: scroll 20s linear infinite;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gris);
  white-space: nowrap;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   CONTACTO — Estilo "New Style Barber" (tarjetas 3D grandes)
   ============================================================ */
.contacto {
  background: radial-gradient(ellipse at top, #1E4FA8 0%, #0A2A5E 80%);
  color: var(--blanco);
  text-align: center;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}
.contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0l34 20v40L40 80 6 60V20z' fill='none' stroke='%2300C2FF' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.contacto .container { position: relative; z-index: 1; }
.contacto h2 { color: var(--blanco); text-shadow: 0 0 30px rgba(0,194,255,0.3); }

.grid-contacto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}
.tarjeta-contacto {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 194, 255, 0.35);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-decoration: none;
  color: var(--blanco);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2), 0 15px 35px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.tarjeta-contacto:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(0, 194, 255, 0.15);
  border-color: var(--cian);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), 0 20px 50px rgba(0, 194, 255, 0.4);
}
.tarjeta-contacto .icono {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 12px rgba(0, 194, 255, 0.6));
}
.tarjeta-contacto h3 { font-size: 1.15rem; margin: 0; }
.tarjeta-contacto p { font-size: 0.95rem; opacity: 0.85; margin: 0; }
.tarjeta-contacto.whatsapp { border-color: rgba(37, 211, 102, 0.5); }
.tarjeta-contacto.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: var(--whatsapp);
  box-shadow: 0 4px 0 rgba(0,0,0,0.2), 0 20px 50px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   BOTONES FLOTANTES (WhatsApp + Chatbot)
   ============================================================ */
.float-btns {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}
.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.float-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.float-btn.whatsapp { background: linear-gradient(135deg, #25D366, #1EBE57); }
.float-btn.chatbot  { background: linear-gradient(135deg, #00C2FF, #1E4FA8); }
.float-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: pulso 2.5s ease-out infinite;
}
.float-btn.whatsapp::after { color: #25D366; }
.float-btn.chatbot::after  { color: #00C2FF; }
@keyframes pulso {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.5);  opacity: 0; }
}

/* ============================================================
   PANEL DE CHATBOT
   ============================================================ */
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 160px;
  width: 340px;
  max-height: 480px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(10, 42, 94, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chat-panel.abierto {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.chat-header {
  background: linear-gradient(135deg, #1E4FA8, #0A2A5E);
  color: #fff;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #F4F6FA;
  font-size: 0.9rem;
}
.msg { padding: 0.6rem 0.9rem; border-radius: 14px; max-width: 85%; }
.msg.bot  { background: #fff; color: #0A2A5E; align-self: flex-start; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.msg.user { background: #1E4FA8; color: #fff; align-self: flex-end; }
.chat-footer {
  display: flex;
  border-top: 1px solid #e0e6f0;
}
.chat-footer input {
  flex: 1;
  border: none;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
.chat-footer button {
  border: none;
  background: #1E4FA8;
  color: #fff;
  padding: 0 1.2rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
}
.chat-footer button:hover { background: #0A2A5E; }

@media (max-width: 480px) {
  .chat-panel { width: calc(100% - 30px); right: 15px; bottom: 150px; }
  .float-btns { right: 15px; bottom: 15px; }
}

/* ============================================================
   HEADER 3D FLOTANTE (Glassmorphism + relieve)
   ============================================================ */
.header-3d {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(30, 79, 168, 0.12);
  box-shadow:
    0 4px 12px rgba(10, 42, 94, 0.08),
    0 12px 30px rgba(10, 42, 94, 0.06),
    inset 0 -1px 0 rgba(0, 194, 255, 0.25);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.header-3d.scrolled {
  padding: 0.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 6px 18px rgba(10, 42, 94, 0.15),
    0 16px 40px rgba(10, 42, 94, 0.1),
    inset 0 -1px 0 rgba(0, 194, 255, 0.4);
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ===== Logo con profundidad ===== */
.logo-3d {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.logo-3d:hover { transform: translateY(-2px); }
.logo-3d .logo-icono {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1E4FA8 0%, #0A2A5E 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00C2FF;
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow:
    0 4px 10px rgba(10, 42, 94, 0.35),
    0 0 20px rgba(0, 194, 255, 0.4),
    inset -3px -3px 8px rgba(0,0,0,0.25),
    inset 3px 3px 8px rgba(255,255,255,0.15);
}
.logo-3d .logo-texto {
  font-weight: 900;
  font-size: 1.35rem;
  color: #0A2A5E;
  letter-spacing: 0.5px;
  line-height: 1;
}
.logo-3d .logo-texto small {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #1E4FA8;
  margin-top: 2px;
}

/* ===== Menú con hover 3D ===== */
.nav-3d {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}
.nav-3d li { position: relative; }
.nav-3d > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.9rem;
  color: #0A2A5E;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.nav-3d > li > a:hover {
  background: linear-gradient(180deg, #FFFFFF, #E6EEF8);
  color: #1E4FA8;
  box-shadow:
    0 2px 0 #B0B7C3,
    0 4px 10px rgba(30, 79, 168, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-1px);
}
.nav-3d > li > a.activo {
  color: #1E4FA8;
  background: rgba(0, 194, 255, 0.1);
}
.flecha {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
  display: inline-block;
}
.nav-3d li:hover .flecha { transform: rotate(180deg); }

/* ===== Submenú desplegable 3D ===== */
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  padding: 0.6rem;
  list-style: none;
  box-shadow:
    0 4px 0 rgba(176, 183, 195, 0.4),
    0 16px 40px rgba(10, 42, 94, 0.2),
    inset 0 1px 0 #fff;
  border: 1px solid rgba(30, 79, 168, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-3d li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: #0A2A5E;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.submenu li a:hover {
  background: linear-gradient(90deg, #E6EEF8, #F4F6FA);
  color: #1E4FA8;
  padding-left: 1.2rem;
  box-shadow: inset 3px 0 0 #00C2FF;
}

/* ===== Botones del header (Acceso + Buscar) ===== */
.header-acciones {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-buscar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #FFFFFF, #E6EEF8);
  color: #0A2A5E;
  font-size: 1rem;
  cursor: pointer;
  box-shadow:
    0 3px 0 #B0B7C3,
    0 6px 12px rgba(10,42,94,0.15),
    inset 0 1px 0 #fff;
  transition: all 0.2s ease;
}
.btn-buscar:hover {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #B0B7C3,
    0 3px 8px rgba(10,42,94,0.2),
    inset 0 1px 0 #fff;
}
.btn-acceso {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(180deg, #1E4FA8, #0A2A5E);
  box-shadow:
    0 3px 0 #061A3D,
    0 6px 15px rgba(10, 42, 94, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.2s ease;
}
.btn-acceso:hover {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 #061A3D,
    0 3px 8px rgba(10, 42, 94, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ===== Menú hamburguesa (móvil) ===== */
.hamburguesa {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #1E4FA8, #0A2A5E);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 3px 0 #061A3D, 0 6px 12px rgba(10,42,94,0.3);
}
@media (max-width: 900px) {
  .nav-3d, .header-acciones { display: none; }
  .hamburguesa { display: flex; align-items: center; justify-content: center; }
}

/* Compensa el header fijo */
body { padding-top: 0; }
.hero { padding-top: 72px; }

/* ============================================================
   BLOG — Tarjetas 3D
   ============================================================ */
.blog {
  background: var(--blanco);
  position: relative;
  overflow: hidden;
}
.blog::before {
  content: "";
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,255,0.08), transparent 70%);
  pointer-events: none;
}
.grid-blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}
.articulo {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 0 rgba(176,183,195,0.4),
    0 15px 35px rgba(10,42,94,0.1);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(30, 79, 168, 0.08);
  display: flex;
  flex-direction: column;
}
.articulo:hover {
  transform: translateY(-8px) rotateX(1deg);
  box-shadow:
    0 2px 0 rgba(176,183,195,0.4),
    0 25px 50px rgba(10, 42, 94, 0.22);
}
.articulo .cover {
  height: 180px;
  background: linear-gradient(135deg, #1E4FA8 0%, #0A2A5E 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.articulo .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(0,194,255,0.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.15), transparent 50%);
}
.articulo .cover .icono-blog {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  position: relative;
  z-index: 1;
}
.articulo .cuerpo {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.articulo .meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
}
.articulo .meta .categoria {
  background: rgba(0, 194, 255, 0.12);
  color: #1E4FA8;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
}
.articulo h3 {
  font-size: 1.15rem;
  color: #0A2A5E;
  line-height: 1.35;
  margin: 0;
}
.articulo p {
  font-size: 0.92rem;
  color: #555;
  flex: 1;
  margin: 0;
}
.articulo .leer-mas {
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1E4FA8;
  text-decoration: none;
  background: linear-gradient(180deg, #FFFFFF, #E6EEF8);
  box-shadow:
    0 3px 0 #B0B7C3,
    0 6px 12px rgba(10,42,94,0.12),
    inset 0 1px 0 #fff;
  transition: all 0.2s ease;
}
.articulo .leer-mas:hover {
  transform: translateY(2px);
  color: #fff;
  background: linear-gradient(180deg, #1E4FA8, #0A2A5E);
  box-shadow:
    0 1px 0 #061A3D,
    0 3px 8px rgba(10,42,94,0.35),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-ver-blog {
  display: block;
  margin: 3rem auto 0;
  text-align: center;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #00C2FF, #1E4FA8);
  box-shadow:
    0 6px 0 #061A3D,
    0 15px 35px rgba(0, 194, 255, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.25s ease;
  width: fit-content;
}
.btn-ver-blog:hover {
  transform: translateY(3px);
  box-shadow:
    0 3px 0 #061A3D,
    0 8px 20px rgba(0, 194, 255, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============================================================
   CANVAS 3D DE FONDO GLOBAL
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.85;
}

/* El body::before (hexágonos) lo subimos por encima del canvas
   para que se vea como textura encima del 3D */
body::before {
  z-index: -1 !important;
}

/* ============================================================
   FONDOS SEMI-TRANSPARENTES PARA DEJAR VER EL 3D
   ============================================================ */
.nosotros { background: rgba(255, 255, 255, 0.82) !important; backdrop-filter: blur(4px); }
.productos { background: rgba(244, 246, 250, 0.78) !important; backdrop-filter: blur(4px); }
.servicios { background: rgba(255, 255, 255, 0.82) !important; backdrop-filter: blur(4px); }
.blog { background: rgba(255, 255, 255, 0.82) !important; backdrop-filter: blur(4px); }
.clientes { background: rgba(244, 246, 250, 0.78) !important; backdrop-filter: blur(4px); }

/* Las tarjetas internas mantienen su fondo blanco sólido */
.card-3d,
.servicio,
.articulo {
  background: #fff !important;
}

/* ============================================================
   FIX: DESTAPAR EL FONDO 3D GLOBAL
   ============================================================ */

/* Body transparente para que se vea el canvas detrás */
html, body {
  background: transparent !important;
}

/* El canvas del fondo: visible, fijo, con color de fondo azul muy claro */
#bg-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background: radial-gradient(ellipse at center, #EAF2FC 0%, #D6E4F5 100%) !important;
}

/* Hexágonos encima del canvas pero sutiles */
body::before {
  z-index: 1 !important;
  opacity: 0.5 !important;
}

/* Todas las secciones: transparentes y por encima del canvas */
header.hero,
section.nosotros,
section.productos,
section.servicios,
section.clientes,
section.blog,
footer.contacto,
.header-3d {
  position: relative !important;
  z-index: 2 !important;
}

/* Secciones claras: fondo MUY transparente para dejar ver el 3D */
.nosotros {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.productos {
  background: rgba(244, 246, 250, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.servicios {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.blog {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.clientes {
  background: rgba(244, 246, 250, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* El hero ya tiene su propio canvas, no necesita transparencia del global */
header.hero {
  background: radial-gradient(ellipse at center, #1E4FA8 0%, #0A2A5E 70%) !important;
}
