/* ================================================================
   MAIN.CSS — TECH / TI FLAT PREMIUM
   Empresa de Tecnología — Diseño flat, colores sólidos,
   tipografía técnica, animaciones Animate.css al máximo
================================================================ */

/* ================================================================
   1. GOOGLE FONTS — Cargadas desde index.php
      Syne (display/headings) + DM Sans (body)
================================================================ */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap");

/* ================================================================
   2. TOKENS — FLAT / SOLID COLORS ONLY
================================================================ */
:root {
  /* Paleta principal — sin degradados */
  --c-primary: #464973;
  --c-primary-dark: #363960;
  --c-secondary: #716c75;
  --c-accent: #7c7fff;
  --c-accent-dark: #5a5ecc;
  --c-tertiary: #a59cab;

  /* Neutrales */
  --c-ink: #0d0f1a;
  --c-ink-mid: #1a1d2e;
  --c-ink-soft: #2e3150;
  --c-dark: #2c3e50;
  --c-muted: #6b7280;
  --c-surface: #f4f5f9;
  --c-surface-2: #ecedf4;
  --c-white: #ffffff;

  /* Estado / feedback */
  --c-success: #10b981;
  --c-warning: #f59e0b;
  --c-danger: #ef4444;

  /* Bordes */
  --c-border: rgba(70, 73, 115, 0.12);
  --c-border-dark: rgba(255, 255, 255, 0.08);

  /* Tipografía */
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Radios */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Sombras flat (sin color) */
  --shadow-sm:
    0 1px 3px rgba(13, 15, 26, 0.08), 0 1px 2px rgba(13, 15, 26, 0.06);
  --shadow-md:
    0 4px 12px rgba(13, 15, 26, 0.1), 0 2px 4px rgba(13, 15, 26, 0.06);
  --shadow-lg:
    0 8px 24px rgba(13, 15, 26, 0.12), 0 4px 8px rgba(13, 15, 26, 0.06);
  --shadow-xl: 0 16px 48px rgba(13, 15, 26, 0.16);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Transiciones */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;
  --t-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================
   3. RESET & BASE
================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--c-surface);
  color: var(--c-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ================================================================
   4. TIPOGRAFÍA BASE
================================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ================================================================
   5. ANIMATE.CSS — CONFIGURACIÓN GLOBAL
      Ajustamos duraciones base para más impacto
================================================================ */
.animate__animated {
  --animate-duration: 0.7s;
  --animate-delay: 0s;
}

/* Duraciones personalizadas */
.anim-fast {
  --animate-duration: 0.4s;
}
.anim-medium {
  --animate-duration: 0.7s;
}
.anim-slow {
  --animate-duration: 1s;
}

/* Delays escalonados para grids */
.anim-d1 {
  --animate-delay: 0.1s;
}
.anim-d2 {
  --animate-delay: 0.2s;
}
.anim-d3 {
  --animate-delay: 0.3s;
}
.anim-d4 {
  --animate-delay: 0.4s;
}
.anim-d5 {
  --animate-delay: 0.5s;
}
.anim-d6 {
  --animate-delay: 0.6s;
}

/* ── Intersection Observer: animar al entrar en viewport ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ================================================================
   6. UTILIDADES BOOTSTRAP OVERRIDES
================================================================ */

/* Section tag / eyebrow label */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-xs);
  margin-bottom: 0.9rem;
}

/* Section title */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--c-ink);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 0;
  margin: 0.75rem auto 0;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.75;
}

/* Badge override */
.badge.bg-primary-subtle {
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: var(--r-xs);
  padding: 0.3rem 0.8rem;
}

/* Hover lift */
.hover-lift {
  transition:
    transform var(--t-base),
    box-shadow var(--t-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl) !important;
}

/* Object fit */
.object-fit-cover {
  object-fit: cover;
}

/* ================================================================
   7. BOTONES — FLAT, SIN DEGRADADOS
================================================================ */
.btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  padding: 0.65rem 1.5rem;
  border-width: 2px;
  transition:
    transform var(--t-spring),
    box-shadow var(--t-base),
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Ripple effect en botones con Animate.css */
.btn:active {
  animation: animate__pulse;
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

/* Primary — solid accent */
.btn-primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Outline primary */
.btn-outline-primary {
  background: transparent;
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.btn-outline-primary:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* Outline light */
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* Primary custom — slider */
.btn-primary-custom {
  background: var(--c-accent);
  border: 2px solid var(--c-accent);
  color: var(--c-white);
  border-radius: var(--r-full);
  padding: 0.75rem 2rem;
  font-size: 0.82rem;
  margin: 0 6px;
  box-shadow: var(--shadow-md);
}
.btn-primary-custom:hover {
  background: transparent;
  color: var(--c-white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Secondary custom — slider */
.btn-secondary-custom {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: var(--c-white);
  border-radius: var(--r-full);
  padding: 0.75rem 2rem;
  font-size: 0.82rem;
  margin: 0 6px;
}
.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--c-white);
  transform: translateY(-3px) scale(1.02);
}

/* Contactar */
.btn-contact {
  background: var(--c-primary);
  border: 2px solid var(--c-primary);
  color: var(--c-white);
  border-radius: var(--r-full);
  font-size: 0.75rem;
}
.btn-contact:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Cotización */
.btn-quote {
  background: var(--c-success);
  border: 2px solid var(--c-success);
  color: var(--c-white);
  border-radius: var(--r-full);
  font-size: 0.75rem;
}
.btn-quote:hover {
  background: #0ea372;
  border-color: #0ea372;
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Filter btn */
.filter-btn {
  margin: 0 5px 10px 0;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-muted);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-base);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ================================================================
   8. SLIDER / CAROUSEL
================================================================ */
.slider-container {
  position: relative;
  overflow: hidden;
}

.custom-slider {
  width: 100%;
}

.carousel-item {
  height: 540px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Tipos de fondo — colores SÓLIDOS */
.carousel-item.bg-gradient-primary {
  background-color: var(--c-primary);
}
.carousel-item.bg-gradient-secondary {
  background-color: var(--c-secondary);
}
.carousel-item.bg-gradient-dark {
  background-color: var(--c-ink-mid);
}
.carousel-item.bg-gradient-orange {
  background-color: var(--c-ink-soft);
}
.carousel-item.bg-gradient-gray {
  background-color: var(--c-dark);
}

/* Grid pattern decorativo sobre el slide */
.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 22, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-content {
  text-align: center;
  color: var(--c-white);
  max-width: 860px;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
}

/* Títulos del slider — se animan con Animate.css desde PHP */
.carousel-content h1,
.carousel-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin-bottom: 0.9rem;
  line-height: 1.08;
}

/* Línea accent decorativa bajo el título */
.carousel-content h1::after,
.carousel-content h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--c-accent);
  margin: 0.8rem auto 0;
}

.carousel-content p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 2.2rem;
  opacity: 0.85;
  font-weight: 300;
  line-height: 1.7;
}

/* Indicadores */
.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition:
    background 0.3s,
    transform 0.3s,
    width 0.3s;
  margin: 0 4px;
}
.carousel-indicators .active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  width: 28px;
  border-radius: 4px;
  transform: none;
}

/* Controles */
.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  top: 50%;
  transform: translateY(-50%);
  transition:
    background var(--t-base),
    transform var(--t-base);
}
.carousel-control-prev {
  left: 24px;
}
.carousel-control-next {
  right: 24px;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: translateY(-50%) scale(1.08);
}

/* ================================================================
   9. HERO SECTION
================================================================ */
.hero-section {
  position: relative;
  padding: 120px 0 100px;
  background: var(--c-ink-mid);
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Grid pattern */
.industrial-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
}

/* Dot accent */
.hero-section::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 80px solid rgba(124, 127, 255, 0.06);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Eyebrow tag */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-xs);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  line-height: 1.08;
}

.hero-title span {
  color: var(--c-accent);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  color: rgba(255, 255, 255, 0.62) !important;
  font-weight: 300;
  margin-bottom: 2.2rem;
  max-width: 540px;
  line-height: 1.75;
}

/* Stat chips en hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xs);
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
}

.hero-stat i {
  color: var(--c-accent);
  font-size: 0.72rem;
}

/* ================================================================
   10. PRODUCTS SECTION
================================================================ */
.products-section {
  padding: 100px 0;
  background: var(--c-surface);
}

/* Card */
.product-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 0;
  overflow: hidden;
  transition:
    transform var(--t-base),
    box-shadow var(--t-base),
    border-color var(--t-base);
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
}

/* Borde accent animado al hover */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
  z-index: 2;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(124, 127, 255, 0.25);
}

.product-card:hover::before {
  transform: scaleX(1);
}

/* Imagen */
.product-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--c-surface-2);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

/* Overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 22, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* Overlay aparece con Animate.css */
.product-card:hover .ver-detalles {
  animation: animate__bounceIn;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

/* Badge */
.product-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--c-accent);
  color: var(--c-white);
  padding: 0.28rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  border-radius: 0;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-description {
  font-size: 0.87rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-features li {
  font-size: 0.82rem;
  color: var(--c-dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
}

.product-features li i {
  color: var(--c-accent);
  font-size: 0.68rem;
  flex-shrink: 0;
}

/* Paginación */
.pagination .page-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-primary);
  border-color: var(--c-border);
  border-radius: 0 !important;
  margin: 0 1px;
  padding: 0.5rem 0.9rem;
  background: var(--c-white);
  transition: all var(--t-fast);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
  transform: translateY(-1px);
}

/* ================================================================
   11. FEATURES SECTION
================================================================ */
.features-section {
  padding: 100px 0;
  background: var(--c-white);
  position: relative;
}

/* Línea decorativa superior */
.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-border);
}

.feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 0;
  padding: 2.2rem 1.8rem;
  text-align: center;
  height: 100%;
  position: relative;
  transition:
    transform var(--t-base),
    box-shadow var(--t-base),
    border-color var(--t-base);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: default;
}

/* Accent corner */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 32px 32px 0 0;
  border-color: var(--c-accent) transparent transparent transparent;
  transition: border-width var(--t-slow);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent);
}

.feature-card:hover::before {
  border-width: 48px 48px 0 0;
}

/* Icono — box sólida flat */
.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--c-surface-2);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
  font-size: 1.5rem;
  color: var(--c-primary);
  transition:
    background var(--t-base),
    color var(--t-base),
    transform var(--t-spring);
  border: 1px solid var(--c-border);
}

.feature-card:hover .feature-icon {
  background: var(--c-accent);
  color: var(--c-white);
  border-color: var(--c-accent);
  transform: rotate(5deg) scale(1.1);
  /* Animate.css en hover via JS */
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ================================================================
   12. SERVICES SECTION (Bootstrap grid + Animate.css cards)
================================================================ */
.py-5.bg-light {
  background: var(--c-surface) !important;
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

/* Cards de servicio */
.py-5.bg-light .card {
  border: 1px solid var(--c-border) !important;
  border-radius: 0 !important;
  transition:
    transform var(--t-base),
    box-shadow var(--t-base),
    border-color var(--t-base);
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
}

.py-5.bg-light .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--c-accent) !important;
}

.py-5.bg-light .card-img-top {
  transition: transform var(--t-slow);
  border-radius: 0;
}
.py-5.bg-light .card:hover .card-img-top {
  transform: scale(1.05);
}

/* Badge número de servicio */
.py-5.bg-light .badge.bg-primary {
  background: var(--c-accent) !important;
  border-radius: 0 !important;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Títulos servicios */
.py-5.bg-light .card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

/* CTA box servicios — flat sólido */
.bg-primary-subtle.rounded-4 {
  background: var(--c-primary) !important;
  border-radius: var(--r-xs) !important;
  border: none !important;
  padding: 3rem 2.5rem;
}

.bg-primary-subtle.rounded-4 h4 {
  color: var(--c-white);
  font-family: var(--font-display);
}

.bg-primary-subtle.rounded-4 p {
  color: rgba(255, 255, 255, 0.62) !important;
}

/* Header sección servicios */
.py-5.bg-light .display-5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}

.py-5.bg-light .badge.bg-primary-subtle {
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
  border-radius: var(--r-xs) !important;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.py-5.bg-light hr.border-primary {
  border-color: var(--c-accent) !important;
  opacity: 1;
  width: 48px !important;
  border-width: 2px !important;
  margin: 0.8rem auto 0 !important;
}

/* ================================================================
   13. CLIENTS TICKER
================================================================ */
.clients-ticker-section {
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
  position: relative;
}

.clients-ticker-inner {
  display: flex;
  align-items: stretch;
  min-height: 88px;
}

.clients-label {
  display: flex;
  align-items: center;
  padding: 0 24px 0 32px;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  flex-shrink: 0;
  z-index: 2;
}

.clients-label-text {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: var(--c-muted);
  white-space: nowrap;
}
.clients-label-text strong {
  color: var(--c-ink);
  font-weight: 800;
  display: block;
}

.clients-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.clients-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.clients-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--c-white), transparent);
}
.clients-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--c-white), transparent);
}

.clients-track {
  width: 100%;
  overflow: hidden;
}

.clients-slides {
  display: flex;
  align-items: center;
  width: max-content;
  animation: clientsScroll 30s linear infinite;
  will-change: transform;
}

.clients-track-wrapper:hover .clients-slides {
  animation-play-state: paused;
}

@keyframes clientsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-right: 1px solid var(--c-border);
  transition:
    background var(--t-base),
    transform var(--t-base);
  text-decoration: none;
  flex-shrink: 0;
}
.client-logo-item:hover {
  background: var(--c-surface);
  transform: translateY(-2px);
}

.client-logo-img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.45);
  transition: filter var(--t-base);
}
.client-logo-item:hover .client-logo-img {
  filter: grayscale(0%) opacity(1);
}

.client-logo-svg {
  height: 40px;
  width: auto;
  max-width: 140px;
  opacity: 0.55;
  transition: opacity var(--t-base);
}
.client-logo-item:hover .client-logo-svg {
  opacity: 1;
}

/* ================================================================
   14. CTA SECTION
================================================================ */
.cta-section {
  padding: 100px 0;
  text-align: center;
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}

/* Grid pattern */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Círculo decorativo */
.cta-section::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  color: var(--c-white);
}

.cta-text {
  font-size: 1.05rem;
  opacity: 0.72;
  margin-bottom: 2.2rem;
  font-weight: 300;
  line-height: 1.75;
}

/* ================================================================
   15. FOOTER — complementa footer.php
================================================================ */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-body);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

/* Barra superior */
.footer-top-bar {
  height: 3px;
  background: var(--c-accent);
}

.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity var(--t-base);
}
.footer-logo:hover {
  opacity: 1;
}

.footer-tagline {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.65;
  margin: 0;
  max-width: 320px;
}

/* Chips contacto */
.footer-contact-chips {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-xs);
  padding: 0.42rem 0.85rem;
  text-decoration: none;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
  width: fit-content;
}
.footer-chip i {
  color: var(--c-accent);
  font-size: 0.68rem;
}
.footer-chip:hover {
  background: rgba(124, 127, 255, 0.14);
  border-color: rgba(124, 127, 255, 0.28);
  color: var(--c-white);
}

/* Headings */
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 1rem;
}

/* Nav list */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav-list a {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  transition:
    color var(--t-fast),
    padding-left var(--t-fast);
  display: block;
  padding: 0.08rem 0;
}
.footer-nav-list a:hover {
  color: var(--c-white);
  padding-left: 6px;
}

/* Dirección */
.footer-address-block {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-address-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.65;
}

.footer-address-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: rgba(124, 127, 255, 0.14);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--c-accent);
  margin-top: 2px;
}

/* Botón mapa */
.footer-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xs);
  padding: 0.42rem 0.9rem;
  text-decoration: none;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}
.footer-map-btn i {
  font-size: 0.62rem;
}
.footer-map-btn:hover {
  background: rgba(124, 127, 255, 0.14);
  border-color: rgba(124, 127, 255, 0.28);
  color: var(--c-white);
}

/* Bottom bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.4rem 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.26);
  margin: 0;
  font-family: var(--font-mono);
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.66rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}
.footer-badge i {
  font-size: 0.6rem;
  color: rgba(124, 127, 255, 0.45);
}

/* ================================================================
   16. HERO CATEGORÍAS
================================================================ */
.hero-categorias {
  position: relative;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-categorias::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 22, 0.55);
  z-index: 1;
}
.hero-categorias > * {
  position: relative;
  z-index: 2;
}

/* ================================================================
   17. CONTACTO
================================================================ */
.contacto-container {
  max-width: 1400px;
  margin: 90px 40px 40px;
  padding: 20px;
}
.contacto-header {
  text-align: center;
  margin-bottom: 50px;
}
.contacto-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 15px;
}
.contacto-header p {
  font-size: 1.05rem;
  color: var(--c-muted);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.info-contacto {
  background: var(--c-surface);
  padding: 30px;
  border-radius: 0;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.info-contacto h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--c-ink);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--c-border);
}
.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  width: 46px;
  height: 46px;
  background: var(--c-primary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-right: 18px;
}

.info-content h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--c-ink);
}
.info-content p {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.65;
  font-size: 0.9rem;
}

.horarios-lista {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.horarios-lista li {
  padding: 4px 0;
  color: var(--c-dark);
  font-size: 0.88rem;
}
.horarios-lista strong {
  color: var(--c-dark);
  display: inline-block;
  width: 120px;
}

.formulario-contacto {
  background: var(--c-white);
  padding: 30px;
  border-radius: 0;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.formulario-contacto h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--c-ink);
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--c-dark);
  font-size: 0.88rem;
}
.form-group label .required {
  color: var(--c-danger);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 0;
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  background: var(--c-white);
  color: var(--c-dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(124, 127, 255, 0.12);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-enviar {
  background: var(--c-primary);
  color: var(--c-white);
  border: none;
  padding: 13px 40px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  width: 100%;
  transition:
    background var(--t-fast),
    transform var(--t-spring);
}
.btn-enviar:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
}
.btn-enviar:disabled {
  background: var(--c-muted);
  cursor: not-allowed;
  transform: none;
}

.alert {
  padding: 14px 18px;
  border-radius: 0;
  margin-bottom: 18px;
  font-size: 0.88rem;
}
.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.mapa-container {
  margin-top: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}
.mapa-container h2 {
  background: var(--c-surface);
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--c-ink);
}
.mapa-wrapper {
  height: 450px;
  width: 100%;
}
.mapa-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.tipo-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-xs);
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 8px;
}
.badge-soporte {
  background: var(--c-warning);
  color: #000;
}
.badge-ventas {
  background: var(--c-success);
  color: var(--c-white);
}
.badge-consulta {
  background: #17a2b8;
  color: var(--c-white);
}

/* ================================================================
   18. FLOATING BUTTONS
================================================================ */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
}

.main-floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 0;
  background: var(--c-accent);
  border: none;
  color: var(--c-white);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition:
    background var(--t-fast),
    transform var(--t-spring),
    box-shadow var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-floating-btn:hover {
  background: var(--c-accent-dark);
  transform: scale(1.08) rotate(8deg);
  box-shadow: var(--shadow-xl);
}

.floating-menu {
  position: absolute;
  bottom: 64px;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.floating-menu.active {
  display: flex;
  animation: animate__fadeInUp;
  animation-duration: 0.35s;
  animation-fill-mode: both;
}

.sub-floating-btn {
  width: 46px;
  height: 46px;
  border-radius: 0;
  border: none;
  color: var(--c-white);
  font-size: 17px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--t-spring),
    box-shadow var(--t-base);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  position: relative;
}
.floating-menu.active .sub-floating-btn {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow var(--t-base);
}
.floating-menu.active .sub-floating-btn:nth-child(1) {
  transition-delay: 0.04s;
  background: #4267b2;
}
.floating-menu.active .sub-floating-btn:nth-child(2) {
  transition-delay: 0.08s;
  background: #e1306c;
}
.floating-menu.active .sub-floating-btn:nth-child(3) {
  transition-delay: 0.12s;
  background: #25d366;
}
.floating-menu.active .sub-floating-btn:nth-child(4) {
  transition-delay: 0.16s;
  background: #1da1f2;
}
.floating-menu.active .sub-floating-btn:nth-child(5) {
  transition-delay: 0.2s;
  background: #0077b5;
}
.floating-menu.active .sub-floating-btn:nth-child(6) {
  transition-delay: 0.24s;
  background: #ff0000;
}
.sub-floating-btn.phone {
  background: #28a745;
}
.sub-floating-btn.whatsapp {
  background: #25d366;
}

.sub-floating-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.floating-tooltip {
  position: absolute;
  right: 56px;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sub-floating-btn:hover .floating-tooltip {
  opacity: 1;
}

/* Legacy .tooltip support */
.sub-floating-btn .tooltip {
  right: 56px;
  background: var(--c-ink);
  font-size: 11px;
}

/* ================================================================
   19. ANIMATE.CSS — SCROLL TRIGGER (via JS IntersectionObserver)
================================================================ */
[data-animate] {
  opacity: 0;
}
[data-animate].animated {
  opacity: 1;
}

/* ================================================================
   20. RESPONSIVE
================================================================ */
@media (max-width: 991px) {
  .contacto-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-stats {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 420px;
  }
  .hero-section {
    padding: 80px 0 60px;
    min-height: auto;
  }
  .hero-title {
    font-size: 2rem;
    margin-top: 1rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .product-title {
    font-size: 0.95rem;
  }
  .features-section,
  .products-section,
  .cta-section {
    padding: 64px 0;
  }
  .clients-label {
    padding: 0 14px 0 16px;
  }
  .clients-slides {
    animation-duration: 22s;
  }
  .client-logo-item {
    padding: 14px 16px;
  }
  .clients-fade {
    width: 36px;
  }
  .footer-badges {
    display: none;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .contacto-container {
    margin: 80px 14px 24px;
  }
  .carousel-control-prev {
    left: 12px;
  }
  .carousel-control-next {
    right: 12px;
  }
}

@media (max-width: 480px) {
  .clients-label {
    display: none;
  }
  .carousel-item {
    height: 360px;
  }
  .carousel-content h1,
  .carousel-content h2 {
    font-size: 1.8rem;
  }
}

/* ================================================================
   21. DARK MODE TICKER
================================================================ */
@media (prefers-color-scheme: dark) {
  .clients-ticker-section {
    background: #12131f;
    border-color: rgba(255, 255, 255, 0.06);
  }
  .clients-label {
    background: #0d0e1a;
    border-right-color: rgba(255, 255, 255, 0.06);
  }
  .clients-label-text {
    color: #555;
  }
  .clients-label-text strong {
    color: #aaa;
  }
  .clients-fade-left {
    background: linear-gradient(to right, #12131f, transparent);
  }
  .clients-fade-right {
    background: linear-gradient(to left, #12131f, transparent);
  }
  .client-logo-item:hover {
    background: rgba(255, 255, 255, 0.04);
  }
  .client-logo-img {
    filter: grayscale(100%) brightness(1.8) opacity(0.4);
  }
  .client-logo-item:hover .client-logo-img {
    filter: grayscale(0%) brightness(1) opacity(1);
  }
}

/* ================================================================
   22. SCROLL ANIMATIONS JS HELPER
       Pega este bloque en footer.php o en un <script> global
================================================================ */
/*
<script>
(function(){
  // IntersectionObserver para Animate.css en cards/sections
  var io = new IntersectionObserver(function(entries){
    entries.forEach(function(e){
      if(e.isIntersecting){
        var el  = e.target;
        var cls = el.dataset.animateClass || 'animate__fadeInUp';
        el.classList.add('animate__animated', cls);
        el.style.opacity = '1';
        io.unobserve(el);
      }
    });
  }, { threshold: 0.12 });

  document.querySelectorAll('[data-animate]').forEach(function(el){ io.observe(el); });

  // Feature cards: bounce icon on hover via Animate.css
  document.querySelectorAll('.feature-card').forEach(function(card){
    var icon = card.querySelector('.feature-icon');
    if(!icon) return;
    card.addEventListener('mouseenter', function(){
      icon.classList.add('animate__animated','animate__rubberBand');
    });
    card.addEventListener('mouseleave', function(){
      icon.classList.remove('animate__animated','animate__rubberBand');
    });
  });
})();
</script>
*/
