/*
Theme Name: Huam
Theme URI: https://huamsolutions.com
Author: Huam Solutions
Author URI: https://huamsolutions.com
Description: Tema corporativo para Huam Solutions. Tecnología que transforma negocios.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huam
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, theme-options

Huam Solutions - Tema de WordPress
*/

/* ==========================================================================
   Variables (alineado con huamsolutions.html)
   ========================================================================== */
:root {
  --white: #ffffff;
  --bg: #f7f8fc;
  --bg2: #eef0f8;
  --ink: #0d1226;
  --ink2: #2a3050;
  --muted: #6b7394;
  --border: #e2e5f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff4ff;
  --blue-mid: #dbeafe;
  --gold: #f59e0b;
  --green: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: 'Nunito', sans-serif;
}

/* ==========================================================================
   Reset y base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

/* Accesibilidad: anillo de foco visible para teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; z-index: 100000; padding: 0.75rem 1rem; background: var(--blue); color: #fff; font-weight: 600; }
.skip-link:focus { left: 0; top: 0; clip: auto; width: auto; height: auto; overflow: visible; }

/* ==========================================================================
   Header — Tres capas (barra superior, nav principal, anuncio)
   ========================================================================== */
.huam-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.huam-header .header-inner.alignwide {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.huam-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(13, 18, 38, 0.08);
  background: rgba(255, 255, 255, 0.97);
}
/* Al hacer scroll: ocultar primera capa (contacto + redes) y barra de anuncio */
.huam-header.is-scrolled .header-layer.header-top-bar,
.huam-header.is-scrolled .header-layer.header-announce {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  border: none;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
}
.header-layer.header-top-bar,
.header-layer.header-announce {
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
}

/* Capa 1: Barra superior */
.header-layer.header-top-bar {
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  max-height: 5rem;
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.header-top-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.header-contact-item:hover {
  color: var(--white);
  transform: translateY(-1px);
}
.header-contact-item .header-icon {
  display: inline-flex;
  opacity: 0.9;
}
.header-contact-item .header-icon svg {
  stroke: currentColor;
}
.header-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.header-social-link:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08);
}
.header-social-link svg {
  flex-shrink: 0;
}

/* Capa 2: Navegación principal */
.header-layer.header-main {
  padding: 0.65rem 0;
  transition: padding 0.3s ease;
}
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header .site-branding {
  flex-shrink: 0;
}
.nav-logo {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  transition: opacity 0.2s ease;
}
.nav-logo:hover {
  color: var(--ink);
  opacity: 0.85;
}
.nav-logo img {
  max-height: 52px;
  width: auto;
}
.nav-logo-text {
  color: inherit;
}
.nav-logo-dot {
  color: var(--blue);
  margin-left: 1px;
}
.main-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.main-navigation .nav-menu,
.main-navigation #primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.main-navigation .nav-menu a,
.main-navigation #primary-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.main-navigation .nav-menu a:hover,
.main-navigation #primary-menu a:hover {
  color: var(--ink);
}
.main-navigation .nav-menu a::after,
.main-navigation #primary-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}
.main-navigation .nav-menu a:hover::after,
.main-navigation #primary-menu a:hover::after {
  width: 100%;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.4);
}
.nav-cta-arrow {
  transition: transform 0.2s ease;
}
.nav-cta:hover .nav-cta-arrow {
  transform: translateX(3px);
}

/* Menú móvil: hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.menu-toggle:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Capa 3: Anuncio */
.header-layer.header-announce {
  background: linear-gradient(90deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.15);
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  max-height: 4rem;
}
.header-announce-text {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--blue-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.header-announce-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: huam-pulse 2s ease-in-out infinite;
}
@keyframes huam-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* Línea de acento bajo el header */
.header-accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #818cf8, var(--blue));
  background-size: 200% 100%;
  animation: huam-shine 8s ease-in-out infinite;
}
@keyframes huam-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Responsive: barra superior */
@media (max-width: 768px) {
  .header-top-inner {
    justify-content: center;
    text-align: center;
  }
  .header-top-left {
    justify-content: center;
  }
  .header-contact-item span:not(.header-icon) {
    font-size: 0.75rem;
  }
}

/* Responsive: menú principal */
@media (max-width: 992px) {
  .main-navigation .nav-menu,
  .main-navigation #primary-menu {
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .header-layer.header-main {
    padding: 0.75rem 0;
  }
  .header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }
  .site-header .site-branding {
    flex-shrink: 0;
    min-width: 0;
  }
  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  .main-navigation .nav-menu,
  .main-navigation #primary-menu {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding-top: 7rem;
    margin-top: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 7rem 1.5rem 1.5rem;
    border-top: none;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(13, 18, 38, 0.08);
    border-radius: 0;
    z-index: 999;
    max-height: 100vh;
    overflow-y: auto;
  }
  .main-navigation .nav-menu.toggled,
  .main-navigation #primary-menu.toggled {
    display: flex;
  }
  .main-navigation .nav-menu li,
  .main-navigation #primary-menu li {
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    justify-content: center;
  }
  .main-navigation .nav-menu li:last-child,
  .main-navigation #primary-menu li:last-child {
    border-bottom: none;
  }
  .main-navigation .nav-menu a,
  .main-navigation #primary-menu a {
    justify-content: center;
    display: inline-block;
  }
  /* CTA visible en la misma línea que el menú hamburguesa */
  .main-navigation .nav-cta {
    width: auto;
    margin-top: 0;
    order: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  .nav-logo {
    font-size: 1.4rem;
  }
  .nav-logo img {
    max-height: 46px;
  }
}

/* Logo personalizado usa también .nav-logo */
.site-branding .custom-logo-link.nav-logo {
  display: inline-block;
  text-decoration: none;
}
.site-branding .custom-logo-link.nav-logo img {
  max-height: 52px;
  width: auto;
  height: auto;
}

.site-content { padding: 2rem 0; min-height: 60vh; }
.content-wrap { display: flex; flex-wrap: wrap; gap: 2rem; }
.site-main { flex: 1; min-width: 0; max-width: 800px; }
.site-main.contact-page { max-width: none; width: 100%; }
.widget-area.sidebar { flex: 0 0 280px; }
@media (max-width: 1023px) {
  .widget-area.sidebar { flex: 0 0 100%; }
}

.page-header { margin-bottom: 2rem; }
.page-title { font-size: 1.75rem; color: var(--ink); }
.posts-wrapper { display: flex; flex-direction: column; gap: 2rem; }

/* Entradas */
.entry { padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.entry:last-child { border-bottom: 0; }
.entry-header { margin-bottom: 1rem; }
.entry-title { font-size: 1.5rem; margin: 0 0 0.5rem; }
.entry-title a { color: var(--ink); }
.entry-meta { font-size: 0.875rem; color: var(--muted); }
.entry-thumbnail { margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; }
.entry-content { margin-top: 1rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-footer { margin-top: 1.5rem; padding-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.edit-link { margin-left: 1rem; }

/* Navegación de entradas */
.nav-links { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.posts-pagination { margin-top: 2rem; }
.button { display: inline-block; padding: 0.5rem 1rem; background: var(--blue); color: var(--white); border-radius: var(--radius-sm); }
.button:hover { background: var(--blue-dark); color: var(--white); }

/* ==========================================================================
   Blog — Hero, layout, tarjetas y sidebar (fuentes del tema)
   ========================================================================== */
.blog-hero {
  padding: 5rem 1.5rem 4rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.blog-blob-1 { width: 500px; height: 500px; background: rgba(37,99,235,0.06); top: -120px; right: -80px; }
.blog-blob-2 { width: 300px; height: 300px; background: rgba(245,158,11,0.05); bottom: -60px; left: 8%; }
.blog-hero-inner { max-width: 780px; position: relative; z-index: 2; }
.blog-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  color: var(--blue); border-radius: 100px;
  padding: 5px 14px 5px 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 1.4rem;
}
.blog-eyebrow .eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: huam-blink 2s infinite; }
.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; color: var(--ink);
  margin: 0 0 1rem;
}
.blog-hero-title .blue { color: var(--blue); }
.blog-hero-desc {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--muted); max-width: 54ch; margin: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 3rem 1.5rem 4rem;
}
.blog-main { min-width: 0; }

/* Featured post */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 40px rgba(13,18,38,0.07);
  margin-bottom: 2.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none; color: inherit;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: 0 18px 60px rgba(13,18,38,0.12); }
.featured-img {
  min-height: 280px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 40%, #4f46e5 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.featured-img-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.featured-img-inner-img { width: 100%; height: 100%; object-fit: cover; }
.fi-emoji { font-size: 4rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3)); }
.fi-circles {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(99,102,241,0.4) 0%, transparent 50%);
}
.featured-body { padding: 2rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.featured-label {
  display: inline-block;
  background: var(--gold); color: #fff;
  border-radius: 6px; padding: 2px 8px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.post-cat {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 100px; padding: 3px 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1rem; width: fit-content;
}
.featured-title {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 800;
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 0.75rem;
}
.featured-excerpt { font-size: 0.9rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.4rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.meta-author { display: flex; align-items: center; gap: 8px; }
.meta-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff;
}
.meta-name { font-size: 0.8rem; font-weight: 600; color: var(--ink2); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.meta-date, .meta-read { font-size: 0.78rem; color: var(--muted); }
.read-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; margin-top: 0.5rem;
  transition: gap 0.2s ease;
}
.read-link:hover { gap: 10px; color: var(--blue-dark); }

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.post-card {
  border-radius: 14px; border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13,18,38,0.05);
  text-decoration: none; color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(13,18,38,0.11); }
.card-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  font-size: 2.6rem;
}
.card-img-thumb { width: 100%; height: 100%; object-fit: cover; }
.card-img-bg1 { background: linear-gradient(135deg, #0ea5e9 0%, var(--blue) 100%); }
.card-img-bg2 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.card-img-bg3 { background: linear-gradient(135deg, var(--gold) 0%, #d97706 100%); }
.card-img-bg4 { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.card-img-bg5 { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.card-img-bg6 { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.card-img-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.card-img-emoji { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card-cat { margin-bottom: 0.6rem; }
.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 800;
  line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 0.6rem;
}
.post-card:hover .card-title { color: var(--blue); }
.card-excerpt { font-size: 0.845rem; line-height: 1.65; color: var(--muted); flex: 1; margin-bottom: 1.1rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-read { font-size: 0.78rem; font-weight: 700; color: var(--blue); }
.card-time { font-size: 0.75rem; color: var(--muted); }

/* Paginación blog */
.blog-main .nav-links { border-top: none; padding-top: 0; }
.blog-main .posts-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; margin-top: 3rem; flex-wrap: wrap;
}
.blog-main .posts-pagination .nav-links { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0; }
.blog-main .page-numbers {
  min-width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.83rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--muted); text-decoration: none;
  transition: all 0.18s ease;
}
.blog-main .page-numbers:hover,
.blog-main .page-numbers.current {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.blog-main .page-numbers.prev,
.blog-main .page-numbers.next { padding: 0 0.85rem; }

/* Sidebar blog */
.blog-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.blog-sidebar .sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
}
.blog-sidebar .sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--ink);
  margin: 0 0 1.2rem;
}
.blog-sidebar .search-input-wrap { position: relative; }
.blog-sidebar .search-form { display: flex; }
.blog-sidebar .search-field {
  width: 100%; padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  font-size: 0.875rem; font-weight: 500;
  outline: none; transition: border-color 0.2s ease;
}
.blog-sidebar .search-field:focus { border-color: var(--blue); }
.blog-sidebar .search-form label { flex: 1; margin: 0; }
.blog-sidebar .search-submit { display: none; }
.blog-sidebar .cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-sidebar .cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.75rem; border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  text-decoration: none; color: var(--ink2);
  font-size: 0.86rem; font-weight: 500;
}
.blog-sidebar .cat-item:hover { background: var(--white); }
.blog-sidebar .cat-item.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.blog-sidebar .cat-badge {
  background: var(--white); color: var(--muted);
  padding: 1px 7px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
}
.blog-sidebar .cat-item.active .cat-badge { background: var(--blue); color: #fff; }
.blog-sidebar .popular-list { display: flex; flex-direction: column; gap: 1rem; }
.blog-sidebar .popular-item { display: flex; gap: 0.9rem; text-decoration: none; color: inherit; }
.blog-sidebar .popular-num {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 800;
  color: var(--blue-mid); line-height: 1;
  flex-shrink: 0; padding-top: 2px;
}
.blog-sidebar .popular-info h4 {
  font-size: 0.845rem; font-weight: 600;
  color: var(--ink); line-height: 1.3;
  margin: 0 0 0.2rem;
  transition: color 0.2s ease;
}
.blog-sidebar .popular-item:hover h4 { color: var(--blue); }
.blog-sidebar .popular-info span { font-size: 0.75rem; color: var(--muted); }
.blog-sidebar .tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blog-sidebar .tag {
  background: var(--white); color: var(--ink2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.77rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.blog-sidebar .tag:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.blog-sidebar .newsletter-mini {
  background: linear-gradient(135deg, var(--blue), #4f46e5);
  border: none;
}
.blog-sidebar .newsletter-mini .sidebar-title { color: #fff; }
.blog-sidebar .newsletter-mini p { font-size: 0.845rem; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 1rem; }
.blog-sidebar .newsletter-input {
  width: 100%; padding: 0.65rem 1rem;
  border: none; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 0.85rem; outline: none; margin-bottom: 0.6rem;
}
.blog-sidebar .newsletter-input::placeholder { color: rgba(255,255,255,0.55); }
.blog-sidebar .newsletter-btn {
  width: 100%; padding: 0.65rem; border-radius: var(--radius-sm);
  background: #fff; color: var(--blue);
  font-size: 0.875rem; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; text-align: center; display: block;
  transition: opacity 0.18s ease, transform 0.15s ease;
}
.blog-sidebar .newsletter-btn:hover { opacity: 0.92; transform: translateY(-1px); color: var(--blue); }

@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .blog-sidebar .newsletter-mini { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 200px; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Single post — Entrada única (single-post.html + fuentes del tema + comentarios)
   ========================================================================== */
.single-breadcrumb {
  padding: 1rem 1.5rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.8rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.single-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.18s ease; }
.single-breadcrumb a:hover { color: var(--blue); }
.single-breadcrumb .sep { opacity: 0.4; }
.single-breadcrumb .current { color: var(--ink2); font-weight: 500; max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.single-article-hero { padding: 2.5rem 0 0; }
.single-article-hero .article-hero-inner { max-width: 760px; }
.post-cat-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-light); color: var(--blue);
  border-radius: 100px; padding: 4px 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.4rem;
  text-decoration: none;
}
.post-cat-tag:hover { background: var(--blue-mid); color: var(--blue-dark); }
.single-entry-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; color: var(--ink);
  margin: 0 0 1.2rem;
}
.single-article-hero .lead {
  font-size: 1.1rem; line-height: 1.75;
  color: var(--muted); max-width: 60ch;
  margin: 0 0 2rem;
}
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 1.2rem; padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.author-block { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; }
.author-name { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.author-role { font-size: 0.75rem; color: var(--muted); }
.meta-sep { width: 1px; height: 28px; background: var(--border); }
.meta-item { font-size: 0.8rem; color: var(--muted); }
.share-bar { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.share-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.share-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; cursor: pointer; transition: all 0.18s ease;
  text-decoration: none; color: inherit;
}
.share-btn:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.cover-img.single-cover-img {
  height: 360px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #4f46e5 100%);
  border-radius: 18px;
  margin: 2rem 1.5rem 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.cover-img-inner { width: 100%; height: 100%; object-fit: cover; }
.cover-img-placeholder .cover-pattern {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(99,102,241,0.5) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.cover-content { position: relative; z-index: 2; text-align: center; }
.cover-emoji { font-size: 5rem; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.3)); display: block; margin-bottom: 0.5rem; }
.cover-tagline { color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.single-content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 2.5rem 1.5rem 4rem;
}
.single-article { min-width: 0; }

.single-article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink2);
}
.single-article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem; font-weight: 800;
  letter-spacing: -0.025em; color: var(--ink);
  margin: 2.4rem 0 1rem;
  padding-top: 0.5rem;
}
.single-article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 800;
  color: var(--ink2); margin: 1.8rem 0 0.7rem;
}
.single-article-body p { margin-bottom: 1.4rem; }
.single-article-body ul, .single-article-body ol { margin: 0 0 1.4rem 1.5rem; }
.single-article-body li { margin-bottom: 0.6rem; }
.single-article-body strong { font-weight: 700; color: var(--ink); }
.single-article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.single-article-body a:hover { color: var(--blue-dark); }
.single-article-body .page-links { margin: 1.5rem 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.5rem 0 0; }
.atag {
  background: var(--bg); color: var(--ink2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
  text-decoration: none; transition: all 0.18s ease;
}
.atag:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.single-author-bio {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  display: flex; gap: 1.5rem;
}
.single-author-bio .bio-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.single-author-bio .bio-name {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 800; color: var(--ink);
  margin-bottom: 0.2rem;
}
.single-author-bio .bio-role { font-size: 0.78rem; color: var(--blue); font-weight: 600; margin-bottom: 0.7rem; }
.single-author-bio .bio-text { font-size: 0.875rem; line-height: 1.65; color: var(--muted); margin: 0; }

.related-section { margin-top: 4rem; }
.related-title {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 1.5rem;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.related-card {
  border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; text-decoration: none; color: inherit;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13,18,38,0.09); }
.related-img {
  height: 110px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; background: linear-gradient(135deg, #0ea5e9, var(--blue));
}
.related-img-thumb { padding: 0; }
.related-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ri1 { background: linear-gradient(135deg, #0ea5e9, var(--blue)); }
.ri2 { background: linear-gradient(135deg, #10b981, #059669); }
.ri3 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.related-body { padding: 1rem 1.1rem 1.2rem; }
.related-body h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 800;
  line-height: 1.3; color: var(--ink); margin: 0 0 0.3rem;
}
.related-body span { font-size: 0.75rem; color: var(--muted); }

.single-post-sidebar { display: flex; flex-direction: column; gap: 1.8rem; }
.single-sidebar-cta {
  background: linear-gradient(135deg, var(--blue-dark), #4f46e5);
  border-radius: 14px; padding: 1.6rem;
  text-align: center; border: none;
}
.single-sidebar-cta h3 {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 800;
  color: #fff; margin: 0 0 0.6rem;
}
.single-sidebar-cta p { font-size: 0.83rem; color: rgba(255,255,255,0.75); line-height: 1.6; margin: 0 0 1.2rem; }
.sidebar-cta-btn {
  display: block; background: #fff; color: var(--blue);
  padding: 0.7rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none; transition: opacity 0.18s ease, transform 0.15s ease;
}
.sidebar-cta-btn:hover { opacity: 0.92; transform: translateY(-1px); color: var(--blue-dark); }
.single-share-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem;
  text-align: center;
}
.single-share-card .share-card-title { font-size: 0.83rem; font-weight: 700; color: var(--muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.share-btns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.share-platform {
  padding: 0.55rem; border-radius: 8px;
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: opacity 0.18s ease;
  text-decoration: none; display: block;
  text-align: center; font-family: inherit;
}
.sp-linkedin { background: #0a66c2; color: #fff; }
.sp-twitter { background: #000; color: #fff; }
.sp-whatsapp { background: #25d366; color: #fff; }
.sp-copy { background: var(--bg2); color: var(--ink2); border: 1px solid var(--border); }

/* Navegación entre entradas */
.single .nav-links {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
  display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.single .nav-links a { color: var(--blue); }
.single .nav-subtitle { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.single .nav-title { font-weight: 600; }

/* Comentarios */
.single-comments-wrap { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.single-comments .comments-title {
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.single-comments .comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.single-comments .comment-item { margin-bottom: 1.5rem; }
.single-comments .comment-body {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.single-comments .comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.single-comments .comment-avatar { border-radius: 50%; }
.single-comments .comment-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.single-comments .comment-author-info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.single-comments .comment-author-info a:hover { color: var(--blue); }
.single-comments .comment-author-info time { font-size: 0.8rem; color: var(--muted); }
.single-comments .comment-content { font-size: 0.95rem; line-height: 1.65; color: var(--ink2); }
.single-comments .comment-reply { margin-top: 0.75rem; }
.single-comments .comment-reply a { font-size: 0.85rem; font-weight: 600; }
.single-comments .comment-awaiting-moderation { font-size: 0.875rem; color: var(--muted); font-style: italic; }
.single-comments .no-comments { color: var(--muted); margin-bottom: 1.5rem; }

.single-comment-form .comment-notes { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.single-comment-form .comment-reply-title {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 800;
  margin-bottom: 1rem;
}
.single-comment-form p { margin-bottom: 1rem; }
.single-comment-form label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.single-comment-form input[type="text"],
.single-comment-form input[type="email"],
.single-comment-form input[type="url"],
.single-comment-form textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.single-comment-form input:focus,
.single-comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.single-comment-form textarea { min-height: 120px; resize: vertical; }
.single-comment-form .form-submit { margin-top: 0.5rem; }
.single-comment-form .submit {
  padding: 0.7rem 1.5rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.single-comment-form .submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

@media (max-width: 960px) {
  .single-content-layout { grid-template-columns: 1fr; }
  .single-post-sidebar { order: -1; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .single-sidebar-cta { flex: 1; min-width: 280px; }
  .single-share-card { flex: 1; min-width: 200px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .single-article-hero { padding-top: 1.5rem; }
  .cover-img.single-cover-img { height: 220px; margin: 1.5rem 1rem 0; }
  .single-share-bar { display: none; }
  .single-author-bio { flex-direction: column; }
}

/* ==========================================================================
   Footer — Diseño dinámico con más información
   ========================================================================== */
.huam-footer {
  margin-top: 0;
  background: linear-gradient(180deg, #0f172a 0%, var(--ink) 40%, #0a0f1a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.huam-footer .alignwide {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Barra CTA sobre el footer */
.footer-cta-strip {
  background: linear-gradient(135deg, var(--blue) 0%, #4338ca 50%, var(--blue-dark) 100%);
  background-size: 200% 100%;
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: 0 -6px 32px rgba(13, 18, 38, 0.15);
  position: relative;
  animation: footer-cta-bg 12s ease-in-out infinite;
}
@keyframes footer-cta-bg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-cta-text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.footer-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  color: var(--blue-dark);
}
.footer-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.footer-cta-btn:hover .footer-cta-arrow {
  transform: translateX(4px);
}

/* Área principal del footer */
.footer-main {
  padding: 4rem 0 2.5rem;
  position: relative;
}
.footer-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.4) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  z-index: 1;
  text-align: left;
}
.footer-grid .footer-col {
  text-align: left;
}
.footer-grid.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .footer-grid .footer-col {
    text-align: center;
  }
  .footer-brand {
    padding-right: 0;
  }
  .footer-brand .footer-contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-links {
    align-items: center;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    text-align: center;
  }
  .footer-grid .footer-col {
    text-align: center;
  }
  .footer-brand {
    padding-right: 0;
  }
  .footer-brand .footer-contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-links {
    align-items: center;
  }
}

/* Columna marca (1 de 4) */
.footer-brand {
  padding-right: 1rem;
}
.footer-brand .footer-contact-list {
  margin-top: 1.25rem;
}
.footer-logo {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-logo:hover {
  color: var(--white);
  opacity: 0.95;
  transform: translateX(2px);
}
.footer-logo-text { color: inherit; }
.footer-logo-dot { color: var(--blue); }
.footer-logo img {
  max-height: 48px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
}
.footer-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 36ch;
}

/* Columna contacto */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}
.footer-contact-list a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-contact-list a:hover {
  color: var(--white);
  padding-left: 2px;
}
.footer-contact-icon {
  font-size: 1rem;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Títulos de columnas */
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 1px;
}

/* Enlaces de menú */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.25s ease;
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

/* Columna redes sociales */
.footer-col-social .footer-col-title {
  margin-bottom: 1rem;
}
.footer-no-social {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-social .header-social-link,
.footer-social .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.footer-social .header-social-link:hover,
.footer-social .footer-social-link:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
  border-color: transparent;
}
.footer-social .header-social-link svg,
.footer-social .footer-social-link svg {
  flex-shrink: 0;
}
.footer-social-hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Línea de confianza */
.footer-trust {
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}
.footer-trust-text {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* Widgets del footer */
.footer-widgets-wrap {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}
.huam-footer .footer-widgets .widget {
  margin-bottom: 1rem;
}
.huam-footer .footer-widgets .widget-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}
.huam-footer .footer-widgets a,
.huam-footer .footer-widgets {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}
.huam-footer .footer-widgets a:hover {
  color: var(--white);
}

/* Línea de acento */
.footer-accent-line {
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #818cf8, var(--blue));
  background-size: 200% 100%;
  animation: huam-shine 8s ease-in-out infinite;
}

/* Barra inferior */
.footer-bottom {
  padding: 1.25rem 0 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-copy {
  flex: 1;
  min-width: 0;
}
.footer-made {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-made:hover {
  color: #818cf8;
}
@media (max-width: 600px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}

/* Búsqueda */
.search-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.search-field { padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 200px; }
.search-submit { padding: 0.5rem 1rem; background: var(--blue); color: var(--white); border: 0; border-radius: var(--radius-sm); cursor: pointer; }

/* Widgets */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1rem; margin-bottom: 0.75rem; color: var(--ink); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 0.25rem 0; border-bottom: 1px solid var(--border); }

/* ==========================================================================
   Página de inicio (front-page landing)
   ========================================================================== */
body.home .site-content { padding: 0; }
.front-page-landing { max-width: none; width: 100%; padding: 0; }
.front-page-landing .alignwide { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Hero */
.front-hero {
  min-height: 100vh;
  padding: 6rem 0 4rem;
  display: flex;
  align-items: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.blob-1 { width: 500px; height: 500px; background: rgba(37,99,235,0.07); top: -100px; right: -100px; }
.blob-2 { width: 350px; height: 350px; background: rgba(245,158,11,0.06); bottom: 0; left: 10%; }
.hero-left { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  color: var(--blue);
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: huam-blink 2s infinite; }
@keyframes huam-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.hero-title-underline {
  position: relative;
  display: inline-block;
  color: var(--blue);
}
.hero-title-underline::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(37,99,235,0.2);
  border-radius: 2px;
  z-index: -1;
}
.hero-desc { font-size: 1.05rem; line-height: 1.75; color: var(--muted); max-width: 46ch; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.4); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.hero-trust { display: flex; align-items: center; gap: 1rem; font-size: 0.82rem; color: var(--muted); }
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
  font-size: 0.65rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.trust-avatars span:first-child { margin-left: 0; }
.av1{background:#4f46e5} .av2{background:#0891b2} .av3{background:#059669} .av4{background:#d97706} .av5{background:#dc2626}
.trust-stars { color: var(--gold); font-size: 0.85rem; }
.hero-right { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }
.hero-cards-wrap { position: relative; width: 100%; max-width: 380px; height: 420px; margin: 0 auto; }
.hcard {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(13,18,38,0.08);
  padding: 1.4rem 1.6rem;
}
.hcard-main { width: 85%; max-width: 320px; top: 40px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hcard-back1 { width: 80%; max-width: 300px; top: 20px; left: 50%; transform: translateX(-50%) rotate(3deg); opacity: 0.6; background: var(--bg); z-index: 2; }
.hcard-back2 { width: 78%; max-width: 300px; top: 10px; left: 50%; transform: translateX(-50%) rotate(6deg); opacity: 0.35; background: var(--bg2); z-index: 1; }
.hcard-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--blue-light); color: var(--blue); border-radius: 100px; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.hcard-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: var(--ink); margin: 0 0 0.5rem; }
.hcard-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin: 0 0 1.2rem; }
.hcard-bar-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.3rem; display: flex; justify-content: space-between; }
.hcard-bar { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; margin-bottom: 0.7rem; }
.hcard-bar-fill { height: 100%; border-radius: 3px; background: var(--blue); }
.hcard-bar-fill-alt { background: #818cf8; }
.hcard-metric { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.hcard-metric-num { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.hcard-metric-label { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.hcard-metric-badge { margin-left: auto; background: #d1fae5; color: #065f46; padding: 2px 8px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.float-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  box-shadow: 0 4px 20px rgba(13,18,38,0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  z-index: 4;
}
.fbadge-1 { bottom: 20px; left: 0; }
.fbadge-2 { top: 10px; right: 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 4rem 0 3rem; }
  .hero-right { order: -1; }
  .hero-cards-wrap { height: 360px; }
}

/* Hero Slider — dinámico: gradientes por tema, blobs animados, transiciones */
.front-hero-slider {
  min-height: 100vh;
  padding: 6rem 0 5rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background 0.8s ease;
}
/* Fondos dinámicos por tema — oscuros para contrastar con el texto claro del hero premium */
.front-hero-slider.theme-intro {
  background: radial-gradient(ellipse 80% 55% at 72% 18%, rgba(37,99,235,0.22) 0%, transparent 52%),
              radial-gradient(ellipse 55% 50% at 12% 85%, rgba(99,102,241,0.14) 0%, transparent 50%),
              linear-gradient(165deg, #060b1e 0%, #0b1436 42%, #0e1a4a 72%, #070d22 100%);
  background-size: 200% 200%;
  animation: hero-bg-intro 18s ease-in-out infinite;
}
.front-hero-slider.theme-blue {
  background: radial-gradient(ellipse 75% 55% at 65% 15%, rgba(37,99,235,0.35) 0%, transparent 55%),
              radial-gradient(ellipse 50% 45% at 18% 88%, rgba(59,130,246,0.12) 0%, transparent 50%),
              linear-gradient(165deg, #040a1c 0%, #0a1a42 45%, #071228 100%);
  background-size: 200% 200%;
  animation: hero-bg-shift 14s ease-in-out infinite;
}
.front-hero-slider.theme-purple {
  background: radial-gradient(ellipse 78% 58% at 70% 22%, rgba(99,102,241,0.28) 0%, transparent 55%),
              radial-gradient(ellipse 48% 48% at 14% 80%, rgba(124,58,237,0.14) 0%, transparent 50%),
              linear-gradient(165deg, #060818 0%, #120a28 48%, #070d1e 100%);
  background-size: 200% 200%;
  animation: hero-bg-shift 14s ease-in-out infinite reverse;
}
.front-hero-slider.theme-green {
  background: radial-gradient(ellipse 72% 52% at 68% 20%, rgba(16,185,129,0.18) 0%, transparent 54%),
              radial-gradient(ellipse 52% 50% at 12% 82%, rgba(6,182,212,0.1) 0%, transparent 50%),
              linear-gradient(165deg, #050f18 0%, #082018 46%, #061016 100%);
  background-size: 200% 200%;
  animation: hero-bg-shift 14s ease-in-out infinite;
}
.front-hero-slider.theme-amber {
  background: radial-gradient(ellipse 74% 54% at 66% 18%, rgba(245,158,11,0.16) 0%, transparent 54%),
              radial-gradient(ellipse 50% 48% at 16% 85%, rgba(251,146,60,0.1) 0%, transparent 50%),
              linear-gradient(165deg, #0c0a08 0%, #18120c 46%, #080706 100%);
  background-size: 200% 200%;
  animation: hero-bg-shift 14s ease-in-out infinite reverse;
}
@keyframes hero-bg-intro {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes hero-bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(37,99,235,0.06) 0%, transparent 50%),
              radial-gradient(ellipse 60% 80% at 20% 80%, rgba(124,58,237,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-slider-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: hero-shine 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes hero-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-slider-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: hero-blob-float 20s ease-in-out infinite;
}
.hero-slider-blob.blob-1 {
  width: 480px; height: 480px;
  background: rgba(37,99,235,0.12);
  top: -80px; right: -80px;
  animation-delay: 0s;
}
.hero-slider-blob.blob-2 {
  width: 320px; height: 320px;
  background: rgba(245,158,11,0.1);
  bottom: 5%; left: 8%;
  animation-delay: -5s;
}
.hero-slider-blob.blob-3 {
  width: 260px; height: 260px;
  background: rgba(124,58,237,0.08);
  top: 40%; right: 15%;
  animation-delay: -10s;
}
@keyframes hero-blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  33% { transform: translate(15px, -20px) scale(1.05); opacity: 1; }
  66% { transform: translate(-10px, 15px) scale(0.98); opacity: 0.85; }
}

.hero-slider-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-slider-track {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.front-hero-slider .hero-slide:not(.is-active) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(24px) scale(0.98);
}
.hero-slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}
.hero-slide-content {
  max-width: 640px;
  padding: 0 0.5rem;
  animation: hero-content-in 0.6s ease both;
}
.hero-slide.is-active .hero-slide-content {
  animation: hero-content-in 0.6s ease both;
}
@keyframes hero-content-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Alternar alineación: impar izquierda, par derecha */
.hero-slide--left .hero-slide-content {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}
.hero-slide--left .hero-slide-actions {
  justify-content: flex-start;
}
.hero-slide--right .hero-slide-content {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}
.hero-slide--right .hero-slide-actions {
  justify-content: flex-end;
}
.hero-slide--right .hero-slide-num,
.hero-slide--right .hero-slide-icon-wrap {
  margin-left: auto;
  margin-right: 0;
}
.hero-slide-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.hero-slide-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 14px;
  margin-bottom: 1.25rem;
}
.hero-slide-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.hero-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.hero-slide-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 52ch;
}
.hero-slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-slide--purple .hero-slide-num,
.hero-slide--purple .hero-slide-icon-wrap { color: #7c3aed; border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.1); }
.hero-slide--green .hero-slide-num,
.hero-slide--green .hero-slide-icon-wrap { color: #059669; border-color: rgba(5,150,105,0.3); background: rgba(5,150,105,0.1); }
.hero-slide--amber .hero-slide-num,
.hero-slide--amber .hero-slide-icon-wrap { color: #d97706; border-color: rgba(217,119,6,0.3); background: rgba(217,119,6,0.1); }

/* Slide intro HUAM — logo con efecto, años, botón contacto */
.hero-slide--intro .hero-slide-content { max-width: 620px; }
.hero-intro-logo {
  margin-bottom: 1.5rem;
  animation: hero-logo-reveal 1s ease-out both;
}
.hero-intro-logo .custom-logo-link,
.hero-intro-logo a {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.hero-intro-logo .custom-logo-link:hover,
.hero-intro-logo a:hover { opacity: 0.9; transform: scale(1.02); }
.hero-intro-logo img {
  max-height: 56px;
  width: auto;
  height: auto;
}
.hero-intro-logo-text {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-intro-dot { color: var(--blue); }
.hero-intro-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}
.hero-slide--intro .hero-intro-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-intro-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 48ch;
}
.hero-intro-actions .btn-hero-cta {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.hero-intro-actions .btn-hero-cta:hover {
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.45);
}
@keyframes hero-logo-reveal {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 12px rgba(13,18,38,0.06);
}
.hero-slider-btn:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(37,99,235,0.2);
}
.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-slider-dot:hover {
  background: var(--muted);
  transform: scale(1.15);
}
.hero-slider-dot.is-active {
  background: var(--blue);
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}
.front-hero-slider.theme-purple .hero-slider-dot.is-active {
  background: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.25);
}
.front-hero-slider.theme-green .hero-slider-dot.is-active {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,0.25);
}
.front-hero-slider.theme-amber .hero-slider-dot.is-active {
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.25);
}
.header-accent-line--hero {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--blue), #818cf8, var(--blue));
  background-size: 200% 100%;
  animation: huam-shine 8s ease-in-out infinite;
}
.front-hero-slider.theme-purple .header-accent-line--hero {
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #7c3aed);
  background-size: 200% 100%;
}
.front-hero-slider.theme-green .header-accent-line--hero {
  background: linear-gradient(90deg, #059669, #34d399, #059669);
  background-size: 200% 100%;
}
.front-hero-slider.theme-amber .header-accent-line--hero {
  background: linear-gradient(90deg, #d97706, #fbbf24, #d97706);
  background-size: 200% 100%;
}
@media (max-width: 768px) {
  .front-hero-slider { padding: 5rem 0 4rem; }
  .hero-slider-track { min-height: 380px; }
  .hero-slide-actions { flex-direction: column; align-items: flex-start; }
}

/* Stats */
.front-stats {
  background: var(--ink);
  padding: 3rem 0;
  position: relative;
}
.front-stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #818cf8, var(--blue));
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.stat-item { text-align: center; padding: 1.5rem 1rem; border-right: 1px solid rgba(255,255,255,0.07); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; color: var(--white); }
.stat-num .accent { color: var(--blue); }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.4rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 768px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-item:nth-child(2n) { border-right: none; }
}

/* Section common */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.section-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--blue); border-radius: 1px; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; margin: 0 0 0.75rem; }
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 50ch; margin: 0; }

/* Services — diseño visual y dinámico */
.front-services {
  padding: 5.5rem 0 6rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 30%, var(--bg2) 70%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.front-services::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.front-services::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 35%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.services-inner { position: relative; z-index: 1; }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.scard {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.35s ease;
  box-shadow: 0 4px 24px rgba(13, 18, 38, 0.04);
}
.scard:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(13, 18, 38, 0.12);
  border-color: transparent;
}
.scard-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  border-radius: 0 4px 4px 0;
  transition: height 0.4s ease;
}
.scard:hover .scard-accent { height: 100%; }
.scard--blue .scard-accent { background: linear-gradient(180deg, var(--blue), #818cf8); }
.scard--purple .scard-accent { background: linear-gradient(180deg, #7c3aed, #a78bfa); }
.scard--green .scard-accent { background: linear-gradient(180deg, #059669, #34d399); }
.scard--amber .scard-accent { background: linear-gradient(180deg, var(--gold), #fbbf24); }

.scard-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.06;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.scard:hover .scard-num { opacity: 0.1; transform: scale(1.05); }
.scard--blue .scard-num { color: var(--blue); }
.scard--purple .scard-num { color: #7c3aed; }
.scard--green .scard-num { color: #059669; }
.scard--amber .scard-num { color: var(--gold); }

.scard-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.35s ease;
}
.scard:hover .scard-icon-wrap { transform: scale(1.08); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.scard--blue .scard-icon-wrap { background: linear-gradient(135deg, var(--blue-light), var(--blue-mid)); }
.scard--purple .scard-icon-wrap { background: linear-gradient(135deg, #f0ebff, #e9d5ff); }
.scard--green .scard-icon-wrap { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.scard--amber .scard-icon-wrap { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.scard-icon { font-size: 2rem; line-height: 1; }

.scard-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  position: relative;
}
.scard-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.scard-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.scard-features li {
  font-size: 0.875rem;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, padding-left 0.25s ease;
}
.scard:hover .scard-features li { border-bottom-color: var(--border); }
.scard-features li::before {
  content: '✓';
  color: var(--white);
  font-weight: 700;
  font-size: 0.65rem;
  background: var(--blue);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.scard:hover .scard-features li::before { transform: scale(1.1); }
.scard--purple .scard-features li::before { background: #7c3aed; }
.scard--green .scard-features li::before { background: #059669; }
.scard--amber .scard-features li::before { background: var(--gold); }

.scard-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.35s ease, color 0.25s ease;
  position: relative;
}
.scard-link:hover { gap: 0.75rem; color: var(--blue-dark); }
.scard-link-arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}
.scard-link:hover .scard-link-arrow { transform: translateX(6px); }
.scard--purple .scard-link { color: #7c3aed; }
.scard--purple .scard-link:hover { color: #6d28d9; }
.scard--green .scard-link { color: #059669; }
.scard--green .scard-link:hover { color: #047857; }
.scard--amber .scard-link { color: var(--gold); }
.scard--amber .scard-link:hover { color: #d97706; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .scard { padding: 1.75rem 1.5rem; }
  .scard-num { font-size: 3rem; }
  .scard-icon-wrap { width: 56px; height: 56px; }
  .scard-icon { font-size: 1.75rem; }
}

/* About */
.front-about { padding: 5rem 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-logo-big { font-family: var(--font-heading); font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; color: var(--blue); letter-spacing: -4px; opacity: 0.9; }
.about-logo-big .about-logo-dot { color: var(--ink); }
.about-logo-wrap { padding: 2rem; }
.about-logo-wrap img { max-height: 140px; width: auto; height: auto; object-fit: contain; filter: brightness(0.9); }
.about-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(13,18,38,0.1);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.about-float-1 { bottom: -20px; left: -20px; }
.about-float-2 { top: -16px; right: -16px; }
.afloat-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--blue); line-height: 1; }
.afloat-label { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }
.about-content p { font-size: 0.95rem; line-height: 1.8; color: var(--muted); margin: 0 0 1rem; }
.about-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.about-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--bg); font-size: 0.875rem; color: var(--ink2); border: 1px solid var(--border); }
.check { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 900px) { .about-inner { grid-template-columns: 1fr; } }

/* Process — diseño dinámico y visual */
.front-process {
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.front-process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.6;
}
.process-inner { max-width: 1000px; margin: 0 auto; }

#proceso .section-eyebrow { justify-content: center; }
#proceso .section-eyebrow::before { display: none; }
#proceso .section-sub { margin: 0 auto 2.5rem; max-width: 42ch; }

/* Timeline horizontal */
.process-timeline { margin-bottom: 2.5rem; }
.process-timeline-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.process-timeline-node {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.process-timeline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  z-index: 2;
}
.process-timeline-node:hover .process-timeline-dot {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}
.process-timeline-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  border-radius: 2px;
  opacity: 0.6;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .process-timeline-line { width: 20px; }
  .process-timeline-dot { width: 40px; height: 40px; font-size: 0.65rem; }
}

/* Grid de pasos */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  text-align: left;
}
.pstep {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pstep::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #818cf8);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pstep:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(13, 18, 38, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}
.pstep:hover::before { opacity: 1; }
.pstep:hover .pstep-icon-wrap { transform: scale(1.08); background: linear-gradient(135deg, var(--blue-light), var(--blue-mid)); }
.pstep:hover .pstep-arrow { opacity: 1; transform: translateX(4px); }

.pstep-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pstep-num-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}
.pstep-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-light), #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, background 0.35s ease;
}
.pstep-icon { font-size: 1.6rem; line-height: 1; }
.pstep-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pstep-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.pstep-arrow {
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 700;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .pstep { padding: 1.5rem 1.25rem; }
}
@media (max-width: 500px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-timeline-track { justify-content: space-between; padding: 0 0.5rem; }
  .process-timeline-line { width: 12px; }
}

/* Technologies marquee */
.front-technologies { padding: 3.5rem 0; background: var(--white); overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-label { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.marquee-wrap { overflow: hidden; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: huam-marquee 35s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.tech-pill { display: flex; align-items: center; gap: 0.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 0.5rem 1.1rem; font-size: 0.82rem; font-weight: 600; color: var(--ink2); white-space: nowrap; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.tech-pill:hover { background: var(--blue-light); border-color: var(--blue-mid); color: var(--blue); }
.tech-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
@keyframes huam-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* CTA + Form */
.front-cta-form { background: var(--ink); padding: 5rem 0; position: relative; overflow: hidden; }
.front-cta-form::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: rgba(37,99,235,0.12); top: -200px; right: -100px; filter: blur(60px); pointer-events: none; }
.cta-form-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; position: relative; z-index: 1; }
.cta-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; }
.cta-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--blue); border-radius: 1px; }
.cta-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--white); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 1rem; }
.cta-content p { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin: 0 0 2rem; }
.cta-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.cta-perks li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: rgba(255,255,255,0.75); }
.cta-perks li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 0.72rem; background: rgba(16,185,129,0.15); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-card { background: var(--white); border-radius: 16px; padding: 2.2rem; box-shadow: 0 24px 80px rgba(0,0,0,0.2); }
.form-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 0 0 0.4rem; }
.form-subtitle { font-size: 0.82rem; color: var(--muted); margin: 0 0 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--ink2); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0.65rem 0.9rem; font-family: inherit; font-size: 0.875rem; color: var(--ink); background: var(--bg); outline: none; transition: border-color 0.2s, background 0.2s; resize: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); background: var(--white); }
.form-submit { width: 100%; background: var(--blue); color: var(--white); padding: 0.9rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(37,99,235,0.3); transition: background 0.2s, transform 0.15s; }
.form-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }
.form-note { text-align: center; font-size: 0.72rem; color: var(--muted); margin-top: 0.75rem; }
.form-message { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }
.form-message--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-message--error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
@media (max-width: 900px) { .cta-form-inner { grid-template-columns: 1fr; } }

/* Contact info */
.front-contact-info { background: var(--bg); padding: 3.5rem 0; border-top: 1px solid var(--border); }
.contact-info-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cinfo-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.4rem 1.6rem; display: flex; align-items: center; gap: 1rem; transition: box-shadow 0.2s; text-decoration: none; color: inherit; }
.cinfo-card:hover { box-shadow: 0 6px 24px rgba(13,18,38,0.07); }
.cinfo-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.cinfo-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.2rem; }
.cinfo-value { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
@media (max-width: 768px) { .contact-info-inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   Página de contacto (template Contacto)
   ========================================================================== */
.contact-page .contact-hero {
  padding: 4rem 0 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact-page .hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.contact-page .blob-1 { width: 560px; height: 560px; background: rgba(37,99,235,0.07); top: -160px; right: -120px; }
.contact-page .blob-2 { width: 380px; height: 380px; background: rgba(245,158,11,0.06); bottom: -80px; left: 5%; }
.contact-page .blob-3 { width: 280px; height: 280px; background: rgba(16,185,129,0.05); top: 40%; left: 50%; }
.contact-page .hero-inner { position: relative; z-index: 2; padding-bottom: 3rem; max-width: 760px; }
.contact-page .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  color: var(--blue); border-radius: 100px;
  padding: 5px 14px 5px 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 1.4rem;
}
.contact-page .eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); animation: contact-blink 2s infinite;
}
@keyframes contact-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.contact-page .contact-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.035em; color: var(--ink);
  margin: 0 0 1rem;
}
.contact-page .contact-hero-title .blue { color: var(--blue); }
.contact-page .contact-hero-title .underline {
  position: relative; display: inline-block;
}
.contact-page .contact-hero-title .underline::after {
  content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 7px;
  background: rgba(37,99,235,0.13); border-radius: 3px; z-index: -1;
}
.contact-page .contact-hero-desc {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--muted); max-width: 54ch;
  margin: 0 0 2rem;
}
.contact-page .hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.contact-page .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 600; color: var(--ink2);
}
.contact-page .badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.contact-page .bd-green { background: var(--green); }
.contact-page .bd-blue { background: var(--blue); }
.contact-page .bd-gold { background: var(--gold); }

.contact-page .contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  padding: 3rem 0 4rem;
}
.contact-page .form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 8px 48px rgba(13,18,38,0.07);
  position: relative;
  overflow: hidden;
}
.contact-page .form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), #4f46e5, var(--blue-dark));
  border-radius: 20px 20px 0 0;
}
.contact-page .form-progress-wrap { margin-bottom: 0.5rem; }
.contact-page .form-progress-track { height: 4px; background: var(--bg2); border-radius: 2px; overflow: hidden; }
.contact-page .form-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue), #4f46e5);
  border-radius: 2px; transition: width 0.45s ease;
  width: 33%;
}
.contact-page .form-progress-text { font-size: 0.72rem; color: var(--muted); margin-top: 4px; text-align: right; }
.contact-page .step-indicator {
  display: flex; align-items: center; gap: 0; margin-bottom: 0.5rem;
}
.contact-page .step-dot {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 0.72rem; font-weight: 800; flex-shrink: 0;
  transition: all 0.3s;
  background: var(--bg2); color: var(--muted); border: 2px solid var(--border);
}
.contact-page .step-dot.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.contact-page .step-dot.done { background: var(--green); color: #fff; border-color: var(--green); }
.contact-page .step-line {
  flex: 1; height: 2px; background: var(--border);
  margin: 0 6px; transition: background 0.4s;
}
.contact-page .step-line.done { background: var(--green); }
.contact-page .step-labels {
  display: flex; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.contact-page .step-label {
  font-size: 0.7rem; font-weight: 600; color: var(--muted);
  text-align: center; flex: 1;
  transition: color 0.3s;
}
.contact-page .step-label.active { color: var(--blue); }
.contact-page .step-label.done { color: var(--green); }
.contact-page .form-steps { position: relative; }
.contact-page .form-step { display: none; }
.contact-page .form-step.active { display: block; animation: contact-stepIn 0.35s ease; }
@keyframes contact-stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
.contact-page .form-group label .req { color: var(--red, #ef4444); margin-left: 2px; }
.contact-page .form-control {
  width: 100%; padding: 0.72rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.contact-page .form-control:focus {
  border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.contact-page .form-control.error { border-color: var(--red, #ef4444); }
.contact-page textarea.form-control { resize: vertical; min-height: 100px; }
.contact-page .field-error {
  font-size: 0.73rem; color: var(--red, #ef4444);
  margin-top: 0.3rem; display: none;
}
.contact-page .field-error.show { display: block; }
.contact-page .service-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem; margin-bottom: 1rem;
}
.contact-page .service-option { display: none; }
.contact-page .service-label {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg);
  cursor: pointer; transition: all 0.2s;
}
.contact-page .service-label:hover { border-color: var(--blue-mid); background: var(--blue-light); }
.contact-page .service-option:checked + .service-label {
  border-color: var(--blue); background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.contact-page .service-label-full { grid-column: 1 / -1; }
.contact-page .service-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.contact-page .service-text strong { display: block; font-size: 0.83rem; font-weight: 700; color: var(--ink); }
.contact-page .service-text span { font-size: 0.73rem; color: var(--muted); }
.contact-page .budget-options,
.contact-page .timeline-options {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.contact-page .budget-chip,
.contact-page .timeline-chip { display: none; }
.contact-page .budget-chip-label,
.contact-page .timeline-chip-label {
  padding: 0.45rem 1rem; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all 0.18s;
}
.contact-page .budget-chip-label:hover,
.contact-page .timeline-chip-label:hover { border-color: var(--blue); color: var(--blue); }
.contact-page .budget-chip:checked + .budget-chip-label,
.contact-page .timeline-chip:checked + .timeline-chip-label {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.contact-page .form-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.contact-page .form-nav-bottom { border: none; padding-top: 0.8rem; margin-top: 0; }
.contact-page .btn-back {
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.72rem 1.4rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
  font-family: inherit;
}
.contact-page .btn-back:hover { border-color: var(--ink); color: var(--ink); }
.contact-page .btn-next {
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 0.72rem 1.8rem; font-size: 0.875rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(37,99,235,0.28);
}
.contact-page .btn-next:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,0.38); }
.contact-page .btn-submit {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 0.85rem 2rem; font-size: 0.925rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  width: 100%; margin-top: 0.5rem;
  box-shadow: 0 6px 20px rgba(37,99,235,0.32);
}
.contact-page .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,99,235,0.42); }
.contact-page .form-privacy { font-size: 0.75rem; color: var(--muted); }
.contact-page .contact-form-success-state {
  text-align: center; padding: 2rem 0;
}
.contact-page .success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #ecfdf5; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; font-size: 2rem;
  border: 2px solid #a7f3d0;
  animation: contact-popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes contact-popIn {
  from { transform: scale(0); } to { transform: scale(1); }
}
.contact-page .success-title {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 800; color: var(--ink); margin: 0 0 0.6rem;
}
.contact-page .success-msg { font-size: 0.925rem; color: var(--muted); line-height: 1.65; max-width: 38ch; margin: 0 auto 1.5rem; }
.contact-page .success-detail {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.55rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--ink2);
}

.contact-page .contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-page .info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
}
.contact-page .info-title {
  font-family: var(--font-heading);
  font-size: 0.95rem; font-weight: 800;
  color: var(--ink); margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.contact-page .contact-methods { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-page .contact-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--white);
  text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.contact-page .contact-method:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(37,99,235,0.1); transform: translateY(-1px); }
.contact-page .cm-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-page .cm-blue { background: var(--blue-light); }
.contact-page .cm-green { background: #ecfdf5; }
.contact-page .cm-purple { background: #f5f3ff; }
.contact-page .cm-info strong { display: block; font-size: 0.845rem; font-weight: 700; color: var(--ink); }
.contact-page .cm-info span { font-size: 0.775rem; color: var(--muted); }
.contact-page .hours-list { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-page .hours-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.83rem; }
.contact-page .hours-day { color: var(--muted); font-weight: 500; }
.contact-page .hours-time { font-weight: 700; color: var(--ink2); }
.contact-page .hours-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #ecfdf5; color: var(--green);
  border-radius: 100px; padding: 2px 8px;
  font-size: 0.7rem; font-weight: 700;
}
.contact-page .hours-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: contact-blink 2s infinite; }
.contact-page .hours-row-tz { margin-top: 0.5rem; justify-content: flex-start; }
.contact-page .response-card {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #4f46e5 100%);
  border: none;
  position: relative; overflow: hidden;
}
.contact-page .response-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.contact-page .response-card .info-title { color: #fff; position: relative; z-index: 1; }
.contact-page .response-items { display: flex; flex-direction: column; gap: 0.75rem; position: relative; z-index: 1; }
.contact-page .response-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px; padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
}
.contact-page .ri-icon { font-size: 1.1rem; flex-shrink: 0; }
.contact-page .ri-text strong { display: block; font-size: 0.83rem; font-weight: 700; color: #fff; }
.contact-page .ri-text span { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.contact-page .location-map {
  width: 100%; height: 140px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; position: relative; overflow: hidden;
}
.contact-page .map-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--blue-mid) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
}
.contact-page .map-pin { position: relative; z-index: 2; text-align: center; }
.contact-page .map-pin-icon { font-size: 2rem; display: block; filter: drop-shadow(0 4px 12px rgba(37,99,235,0.4)); }
.contact-page .map-label { font-size: 0.75rem; font-weight: 700; color: var(--blue); margin-top: 4px; }
.contact-page .location-info { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-page .location-row { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--ink2); }
.contact-page .location-row span { font-size: 1rem; }

.contact-page .contact-faq-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}
.contact-page .faq-header { max-width: 560px; margin-bottom: 2rem; }
.contact-page .section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  color: var(--blue); border-radius: 100px;
  padding: 4px 12px 4px 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.contact-page .faq-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800; letter-spacing: -0.025em; color: var(--ink);
  margin: 0 0 0.6rem;
}
.contact-page .faq-sub { font-size: 0.95rem; color: var(--muted); line-height: 1.65; margin: 0; }
.contact-page .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-page .faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: box-shadow 0.2s;
}
.contact-page .faq-item:hover { box-shadow: 0 4px 20px rgba(13,18,38,0.07); }
.contact-page .faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.1rem 1.3rem;
  cursor: pointer; user-select: none; width: 100%;
  background: none; border: none;
  font-family: inherit; font-size: inherit; text-align: left;
}
.contact-page .faq-q-text { font-size: 0.88rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.contact-page .faq-icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg2); display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0; transition: transform 0.25s, background 0.2s;
}
.contact-page .faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.contact-page .faq-a {
  font-size: 0.855rem; line-height: 1.7; color: var(--muted);
  padding: 0 1.3rem;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}
.contact-page .faq-item.open .faq-a { max-height: 300px; padding: 0 1.3rem 1.2rem; }
@media (max-width: 1024px) {
  .contact-page .contact-grid { grid-template-columns: 1fr; }
  .contact-page .contact-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .contact-page .response-card { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .contact-page .contact-sidebar { grid-template-columns: 1fr; }
  .contact-page .form-card { padding: 1.6rem 1.4rem; }
  .contact-page .form-row { grid-template-columns: 1fr; }
  .contact-page .service-grid { grid-template-columns: 1fr; }
  .contact-page .faq-grid { grid-template-columns: 1fr; }
  .contact-page .hero-badges { gap: 0.4rem; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

/* 404 y sin resultados */
.error-404 .page-content { padding: 2rem 0; }
.no-results .page-content { padding: 2rem 0; }

/* ==========================================================================
   REDESIGN PREMIUM — Hero oscuro, Testimonios Slider, mejoras globales
   ========================================================================== */

/* ─── Variables premium ─── */
:root {
  --indigo: #6366f1;
  --blue-glow: rgba(37,99,235,0.30);
  --shadow-card: 0 8px 40px rgba(8,14,36,0.09);
  --shadow-float: 0 20px 60px rgba(8,14,36,0.15);
  --transition-spring: 0.35s cubic-bezier(0.34, 1.02, 0.64, 1);
}

/* ─── Scrollbar premium ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 10px; }

/* ─── HERO OSCURO con canvas ─── */
.front-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Fondo oscuro profundo */
.front-hero-slider {
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37,99,235,0.18) 0%, transparent 55%),
              radial-gradient(ellipse 60% 60% at 10% 80%, rgba(99,102,241,0.13) 0%, transparent 55%),
              linear-gradient(165deg, #060b1e 0%, #0b1436 40%, #0e1a4a 70%, #070d22 100%);
}

/* Canvas de estrellas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Grid de líneas */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-slider-inner.alignwide { position: relative; z-index: 2; }

/* Hero slide intro - adaptado para fondo oscuro */
.front-hero-slider .hero-slide--intro .hero-intro-content { color: #fff; }
.front-hero-slider .hero-slide--intro .hero-intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.4);
  color: #93b4ff;
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(8px);
}
.front-hero-slider .hero-intro-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: #fff !important;
  letter-spacing: -0.04em;
  line-height: 1.07;
}
.front-hero-slider .hero-intro-desc { color: rgba(255,255,255,0.6) !important; }

/* Gradient text animado en el título del hero */
.hero-gradient-text {
  background: linear-gradient(90deg, #60a5fa, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: huam-shimmer 4s ease-in-out infinite;
}
@keyframes huam-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Botones sobre fondo oscuro */
.front-hero-slider .btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 6px 24px var(--blue-glow);
  transition: transform var(--transition-spring), box-shadow 0.25s;
}
.front-hero-slider .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--blue-glow);
}
.front-hero-slider .btn-ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
}
.front-hero-slider .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* Slide hero-slider: otros slides sobre fondo oscuro */
.front-hero-slider .hero-slide-title { color: #fff; }
.front-hero-slider .hero-slide-desc { color: rgba(255,255,255,0.65); }
.front-hero-slider .hero-slide-num { color: rgba(255,255,255,0.12); }

/* Dots y nav del slider hero oscuro */
.front-hero-slider .hero-slider-nav { position: relative; z-index: 2; }
.front-hero-slider .hero-slider-dot {
  background: rgba(255,255,255,0.25);
  border: none;
}
.front-hero-slider .hero-slider-dot.is-active { background: var(--blue); }
.front-hero-slider .hero-slider-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background 0.25s, transform var(--transition-spring);
}
.front-hero-slider .hero-slider-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.08);
}

/* Indicador de scroll */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: huam-bounce-hint 2.5s ease-in-out infinite;
}
.hero-scroll-wheel {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 5px;
}
.hero-scroll-wheel::after {
  content: '';
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  animation: huam-scroll-dot 2s ease infinite;
}
@keyframes huam-scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes huam-bounce-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* ─── STATS — versión oscura ─── */
.front-stats {
  background: linear-gradient(90deg, #0b1436, #0d1845, #0b1436);
  border-top: 1px solid rgba(37,99,235,0.2);
  border-bottom: 1px solid rgba(37,99,235,0.2);
  position: relative;
}
.front-stats::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--indigo), var(--blue), transparent);
}
.front-stats .stats-inner.alignwide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.front-stats .stat-item {
  text-align: center;
  padding: 1.6rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.front-stats .stat-item:last-child { border-right: none; }
.front-stats .stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff, #93b4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.front-stats .stat-num .accent {
  -webkit-text-fill-color: transparent;
}
.front-stats .stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.4rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ─── SERVICE CARDS — mejora hover 3D ─── */
.scard {
  perspective: 800px;
  transition: transform var(--transition-spring), box-shadow 0.3s, border-color 0.3s;
}
.scard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
  border-color: rgba(37,99,235,0.25);
}
.scard::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--indigo), #a78bfa);
  opacity: 0; transition: opacity 0.3s;
}
.scard:hover::before { opacity: 1; }

/* Tilt JS-less: se gestiona con JS, aquí el reset */
.scard { transform-style: preserve-3d; }

/* ─── SECCIÓN NOSOTROS — orbit ─── */
.about-orbit {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,0.1);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.orbit-ring:nth-child(1) { width: 60%; height: 60%; animation: orbit-spin 20s linear infinite; }
.orbit-ring:nth-child(2) { width: 80%; height: 80%; animation: orbit-spin 32s linear infinite reverse; border-color: rgba(99,102,241,0.08); }
.orbit-ring:nth-child(3) { width: 100%; height: 100%; animation: orbit-spin 45s linear infinite; border-color: rgba(167,139,250,0.05); }
@keyframes orbit-spin {
  0% { transform: translate(-50%,-50%) rotate(0deg); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}
.orbit-dot {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 0 10px rgba(37,99,235,0.6);
}

/* ─── TESTIMONIOS SLIDER ─── */
.front-testimonios {
  padding: 110px 0;
  background: linear-gradient(160deg, #060b1e 0%, #0d1540 50%, #0b1436 100%);
  position: relative;
  overflow: hidden;
}
.testimonios-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 50%, rgba(37,99,235,0.12), transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 30%, rgba(99,102,241,0.1), transparent 60%);
}
.testimonios-inner.alignwide { position: relative; z-index: 2; }

.testimonios-header { text-align: center; }
.section-eyebrow.testimonios-eyebrow {
  color: #93b4ff;
  justify-content: center;
}
.section-eyebrow.testimonios-eyebrow::before { background: #93b4ff; }
.section-title.testimonios-title { color: #fff; }
.section-sub.testimonios-sub { color: rgba(255,255,255,0.5); margin: 0 auto; }

/* Slider track */
.tslider-wrapper { overflow: hidden; border-radius: 20px; }
.tslider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.tslider-slide {
  min-width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
}
.tcard-inner {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.tcard-left { text-align: center; }
.tcard-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: #fff;
  margin: 0 auto 1rem;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
  border: 3px solid rgba(255,255,255,0.1);
}
.tcard-name { font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 0.2rem; }
.tcard-role { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 0.7rem; }
.tcard-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 2px; }
.tcard-company {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(37,99,235,0.15); color: #93b4ff;
  border-radius: 100px; padding: 3px 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  margin-top: 0.6rem;
  border: 1px solid rgba(37,99,235,0.25);
}
.tcard-quote {
  font-size: 2.8rem; color: rgba(96,165,250,0.25);
  line-height: 1; font-family: Georgia, serif; margin-bottom: 0.3rem;
}
.tcard-text {
  font-size: 1rem; line-height: 1.85;
  color: rgba(255,255,255,0.72);
  font-style: italic; margin-bottom: 1.5rem;
}
.tcard-results { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.tresult {
  background: rgba(255,255,255,0.05);
  border-radius: 10px; padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.tresult-val {
  font-weight: 800; font-size: 1.4rem;
  color: #34d399; letter-spacing: -0.02em;
}
.tresult-label {
  font-size: 0.66rem; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px;
}

/* Progreso */
.tslider-progress {
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 1px; margin-top: 2rem;
  position: relative; overflow: hidden;
}
.tslider-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
  border-radius: 1px;
  transition: width 0.08s linear;
}

/* Controles */
.tslider-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 2rem;
}
.tslider-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform var(--transition-spring);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tslider-btn:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.1);
}
.tslider-dots { display: flex; gap: 8px; align-items: center; }
.tslider-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  border: none; padding: 0;
}
.tslider-dot.is-active { background: var(--blue); width: 24px; }

/* ─── MEJORAS GLOBALES — about-list hover ─── */
.about-list li {
  transition: border-color 0.25s, background 0.25s, transform var(--transition-spring);
}
.about-list li:hover {
  border-color: rgba(37,99,235,0.25);
  background: var(--blue-light);
  transform: translateX(4px);
}

/* ─── PROCESS STEPS — tilt feedback ─── */
.pstep {
  transition: transform var(--transition-spring), box-shadow 0.3s, border-color 0.3s;
}
.pstep:hover {
  box-shadow: var(--shadow-float);
  border-color: rgba(37,99,235,0.2);
}

/* ─── CTA BANNER — mejoras ─── */
.front-cta .cta-perks li {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s, border-color 0.25s;
}
.front-cta .cta-perks li:hover {
  background: rgba(37,99,235,0.1);
  border-color: rgba(37,99,235,0.25);
}

/* ─── RESPONSIVE TESTIMONIOS ─── */
@media (max-width: 900px) {
  .front-testimonios { padding: 70px 1.4rem; }
  .tcard-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .tcard-results { justify-content: center; }
  .tcard-left { border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 1.5rem; }
}
@media (max-width: 600px) {
  .front-stats .stats-inner.alignwide { grid-template-columns: repeat(2, 1fr); }
  .front-testimonios .tslider-slide { padding: 0; }
  .tcard-inner { padding: 1.4rem 1rem; border-radius: 14px; }
  .tresult-val { font-size: 1.1rem; }
}

