/* =================================================================== */
/* ===    FASTALK - HOJA DE ESTILOS "ULTRA PREMIUM" (CORREGIDA)    === */
/* === Contiene: Base, Utilitarios, Header, Hero, Clientes, Footer === */
/* =================================================================== */


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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}

body.mobile-nav-active {
  overflow: hidden;
}

/* ------------------------- */
/* ----- CSS VARIABLES ----- */
/* ------------------------- */
:root {
  /* --- Paleta Principal (Light First) --- */
  --color-bg-light: #f7f8fc;
  --color-bg-secondary-light: #ffffff;
  --color-border-light: #eef0f4;

  /* --- Paleta de Texto para Light Mode --- */
  --color-text-primary: #1d2b48;
  --color-text-secondary: #5a647b;
  --color-text-tertiary: #9a9faf;

  /* --- Paleta de Acento (Azul Eléctrico) --- */
  --color-accent-primary: #4a3aff;
  --color-accent-secondary: #7a70ff;
  --color-accent-dark: #2c238c;
  --color-accent-subtle-bg: rgba(74, 58, 255, 0.07);

  /* --- Gradientes Premium --- */
  --gradient-accent: linear-gradient(95deg, var(--color-accent-secondary), var(--color-accent-primary));
  --gradient-accent-hover: linear-gradient(95deg, #8a80ff, #5a50ff);
  --gradient-text: linear-gradient(95deg, var(--color-accent-secondary), var(--color-accent-primary));

  /* --- Sombras Premium para Light Mode --- */
  --shadow-light-sm: 0 2px 8px rgba(74, 58, 255, 0.06);
  --shadow-light-md: 0 4px 16px rgba(74, 58, 255, 0.08);
  --shadow-light-lg: 0 10px 30px rgba(74, 58, 255, 0.12);
  --shadow-button-glow: 0 6px 20px rgba(74, 58, 255, 0.25);

  /* --- Radios y Transiciones --- */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-pill: 50px;
  --transition-smooth: 0.2s cubic-bezier(0.2, 0, 0.1, 0.5);
  --transition-bouncy: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ------------------------- */
/* ------ UTILITIES -------- */
/* ------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.button {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  text-decoration: none;
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-align: center;
  border-radius: var(--border-radius-pill);
}

.button--primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-light-md);
}

.button--primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-button-glow);
  background: var(--gradient-accent-hover);
}

.button--secondary {
  background-color: transparent;
  color: var(--color-accent-primary);
  border: 1.5px solid var(--color-border-light);
  font-weight: 600;
}

.button--secondary:hover {
  background-color: var(--color-accent-subtle-bg);
  border-color: var(--color-accent-primary);
  transform: translateY(-2px);
}

/* =================================================================== */
/* ===       ESTILOS "ULTRA PREMIUM" PARA HEADER Y SIDEBAR         === */
/* =================================================================== */

.navbar-premium {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-premium.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

.navbar-premium__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  max-width: 1600px;
  margin: 0 auto;
}

.navbar-premium__logo-img {
  height: 48px;
  object-fit: contain;
}

.navbar-premium__desktop-nav,
.navbar-premium__actions {
  display: none;
}

@media (min-width: 1024px) {
  .navbar-premium__desktop-nav {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-premium__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .navbar-premium__actions .button {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

.navbar-premium__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.navbar-premium__links>li>a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-primary);
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-md);
  transition: color var(--transition-smooth), background-color var(--transition-smooth);
}

.navbar-premium__links>li>a:hover {
  background-color: var(--color-accent-subtle-bg);
  color: var(--color-accent-primary);
}

.navbar-premium__links>li>a .material-icons {
  font-size: 20px;
  transition: transform var(--transition-smooth);
}

.nav-item--has-megamenu:hover>a .material-icons {
  transform: rotate(180deg);
}

.nav-item--has-megamenu {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  pointer-events: none;
  z-index: 1100;
}

.nav-item--has-megamenu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu__content {
  width: auto;
  max-width: calc(100vw - 4rem);
  background-color: var(--color-bg-secondary-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-light-lg);
  padding: 2rem;
  overflow: hidden;
}

.mega-menu__product,
.mega-menu__use-cases {
  display: flex;
  flex-direction: column;
}

.mega-menu__grid--product {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mega-menu__grid--use-cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.mega-menu__grid--resources {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

.mega-menu__title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  transition: background-color var(--transition-smooth), transform var(--transition-smooth);
}

.mega-menu-item:hover {
  background-color: var(--color-accent-subtle-bg);
  transform: translateY(-3px);
}

.mega-menu-item .material-icons {
  font-size: 24px;
  color: var(--color-accent-primary);
  background-color: var(--color-accent-subtle-bg);
  padding: 10px;
  border-radius: var(--border-radius-md);
  flex-shrink: 0;
  transition: transform var(--transition-bouncy);
}

.mega-menu-item:hover .material-icons {
  transform: scale(1.15) rotate(-8deg);
}

.mega-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-item__title {
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.mega-item__description {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.featured-item {
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-smooth);
  min-width: 300px;
}

.featured-item:hover {
  box-shadow: var(--shadow-light-md);
}

.featured-item__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.featured-item__content {
  padding: 1.25rem;
  flex-grow: 1;
}

.featured-item__tag {
  background: var(--gradient-text);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.featured-item__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0.75rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.featured-item__link {
  font-weight: 500;
  color: var(--color-accent-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.featured-item__link:hover {
  text-decoration: underline;
}

.navbar-premium__toggle {
  display: block;
  width: 35px;
  height: 30px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

@media (min-width: 1024px) {
  .navbar-premium__toggle {
    display: none;
  }
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-text-primary);
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition: all 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger-line:nth-child(1) {
  top: 6px;
}

.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
  bottom: 6px;
}

body.mobile-nav-active .navbar-premium__toggle {
  position: fixed;
  right: 5%;
  top: 1.25rem;
}

body.mobile-nav-active .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

body.mobile-nav-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-active .hamburger-line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-nav-premium {
  position: fixed;
  top: 0;
  left: 0;
  width: 90%;
  max-width: 320px;
  height: 100vh;
  z-index: 1001;
  background-color: #f8f9fc;
  background-image: radial-gradient(circle at top right, rgba(74, 58, 255, 0.05), transparent 40%);
  box-shadow: 10px 0 50px -20px rgba(29, 43, 72, 0.15);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s;
  display: flex;
  flex-direction: column;
}

body.mobile-nav-active .mobile-nav-premium {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav__scrollable-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  padding-top: 6rem;
}

.mobile-nav__profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.mobile-nav__profile-icon {
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  background: var(--gradient-text);
  color: #fff;
}

.mobile-nav__profile-text {
  line-height: 1.3;
}

.mobile-nav__greeting {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 1.1rem;
}

.mobile-nav__sub-greeting {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.mobile-nav__main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav__main-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-smooth);
  transform: translateX(0);
}

.mobile-nav__main-nav a:hover {
  background-color: var(--color-accent-subtle-bg);
  color: var(--color-accent-primary);
  transform: translateX(5px);
}

.mobile-nav__main-nav a .material-icons {
  color: var(--color-text-tertiary);
  transition: color var(--transition-smooth);
}

.mobile-nav__main-nav a:hover .material-icons {
  color: var(--color-accent-primary);
}

.mobile-nav__separator {
  border: none;
  height: 1px;
  background-color: var(--color-border-light);
  margin: 1.5rem 0;
}

.mobile-nav__secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav__sticky-footer {
  flex-shrink: 0;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  background-color: #f8f9fc;
}

.mobile-nav__socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.mobile-nav__socials a {
  color: var(--color-text-tertiary);
  transition: color var(--transition-smooth);
}

.mobile-nav__socials a:hover {
  color: var(--color-accent-primary);
}

.mobile-nav__socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.mobile-nav__copyright {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  text-align: center;
}


/* =================================================================== */
/* ===         HERO 2.0: ESTILOS PARA LA VERSIÓN INTERACTIVA       === */
/* =================================================================== */

.hero.section {
  padding-top: 180px;
  /* Menos padding superior para dar espacio al demo */
  padding-bottom: 120px;
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
  display: flex;
  /* Centrado vertical */
  align-items: center;
  min-height: 100vh;
}

/* =================================================================== */
/* ===         ESTILOS PARA LA CUADRÍCULA DEL HERO (MEJORADA)      === */
/* =================================================================== */

.hero.section::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    /* LÍNEAS MÁS VISIBLES: Aumentamos la opacidad del color de 0.1 a 0.2 */
    linear-gradient(rgba(74, 58, 255, 0.2) 1px, transparent 1px),
    linear-gradient(to right, rgba(74, 58, 255, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  /* Puedes cambiar este valor para hacer los cuadros más grandes o pequeños */
  /* EFECTO MÁS PRONUNCIADO: Aumentamos la opacidad general de 0.6 a 0.8 */
  opacity: 0.3;
  /* EFECTO MÁS EXTENDIDO: Hacemos que el fundido empiece más tarde y sea más suave */
  mask-image: radial-gradient(circle at center, white 20%, transparent 80%);
  z-index: 0;
}

.hero.section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  max-width: 1200px;
  background: radial-gradient(circle, rgba(74, 58, 255, 0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* =================================================================== */
/* ===         ESTILOS PARA EL TÍTULO DEL HERO (MEJORADO)          === */
/* =================================================================== */

.hero__text-content {
  text-align: center;
  /* MÁS EXTENDIDO (Paso 1): Aumentamos el ancho máximo para que el título tenga más espacio */
  max-width: 950px;
}

.hero__title {
  color: var(--color-text-primary);
  font-family: 'Poppins', sans-serif;
  /* MÁS GRANDE: Aumentamos significativamente los valores del clamp() */
  font-size: clamp(3rem, 8.5vw, 5.5rem);
  font-weight: 700;
  /* Ajustamos la altura de línea para un texto tan grande */
  line-height: 1.1;
  margin-bottom: 1.5rem;
  /* Un poco más de espacio debajo */
  /* MÁS EXTENDIDO (Paso 2): Un ligero espaciado negativo hace que las letras grandes se vean más cohesivas e imponentes */
  letter-spacing: -1.5px;
}

.hero__subtitle {
  color: var(--color-text-secondary);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

.hero__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__demo-widget-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  /* SOMBREADO MÚLTIPLE Y PREMIUM */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    /* Borde interior sutil */
    0 15px 35px rgba(29, 43, 72, 0.12),
    /* Sombra principal de profundidad */
    0 0 80px -20px var(--color-accent-primary);
  /* Resplandor de aura */
  width: 320px;
  height: 180px;
  transition: width 0.3s ease, height 0.3s ease;
}

.hero__demo-widget-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  border: 0;
  transform-origin: top left;
  transform: scale(0.25);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .hero__demo-widget-wrapper {
    width: 640px;
    height: 360px;
  }

  .hero__demo-widget-wrapper iframe {
    transform: scale(0.5);
  }
}

@media (min-width: 992px) {
  .hero__demo-widget-wrapper {
    width: 896px;
    /* 1280 * 0.7 */
    height: 504px;
    /* 720 * 0.7 */
  }

  .hero__demo-widget-wrapper iframe {
    transform: scale(0.7);
  }
}

/* =================================================================== */
/* ===         SECCIÓN DE CONFIANZA (CLIENTES)                     === */
/* =================================================================== */

.client-logos {
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border-light);
}

.client-logos__title {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2.5rem;
  margin-top: 50px;
}

.client-logos__container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4rem);
}

.client-logos__container img {
  max-height: 32px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all var(--transition-smooth);
}

.client-logos__container img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}


/* =================================================================== */
/* ===         ESTILOS PARA FOOTER ROBUSTO Y PROFESIONAL           === */
/* =================================================================== */

.main-footer {
  background-color: #111522;
  color: #a0a8b7;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter {
  max-width: 600px;
  margin: 0 auto 4rem;
  text-align: center;
}

.footer-newsletter h3 {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-newsletter p {
  color: #a0a8b7;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.newsletter-form-group {
  position: relative;
}

.newsletter-form input[type="email"] {
  width: 100%;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-pill);
  padding: 1rem 4.5rem 1rem 1.5rem;
  color: #fff;
  font-size: 1rem;
  transition: border-color var(--transition-smooth), background-color var(--transition-smooth);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--color-text-tertiary);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 58, 255, 0.3);
}

.newsletter-form button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.newsletter-form button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(74, 58, 255, 0.4);
}

.newsletter-form button svg {
  width: 22px;
  height: 22px;
}

.footer-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  margin-bottom: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

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

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

.footer-col--brand {
  grid-column: span 1;
}

@media (min-width: 576px) and (max-width: 991px) {
  .footer-col--brand {
    grid-column: 1 / -1;
    text-align: center;
  }
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #a0a8b7;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.footer-col ul li a:hover {
  padding-left: 5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-col--brand p {
  line-height: 1.7;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  max-width: 350px;
}

@media (min-width: 576px) and (max-width: 991px) {
  .footer-col--brand p {
    margin-left: auto;
    margin-right: auto;
  }
}

.social-icons {
  display: flex;
  gap: 1rem;
}

@media (min-width: 576px) and (max-width: 991px) {
  .social-icons {
    justify-content: center;
  }
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color var(--transition-smooth), transform var(--transition-smooth);
}

.social-icons a:hover {
  background-color: var(--color-accent-primary);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: #81899c;
}

/* ======================================================================= */
/* ===    CSS "OBRA MAESTRA" PARA SECCIÓN CÓMO FUNCIONA (LIGHT PREMIUM) === */
/* ======================================================================= */

/* 1. Contenedor Principal de la Sección */
.how-it-works-masterpiece {
  background-color: var(--color-bg-light);
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* Títulos de la sección */
.masterpiece-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem auto;
}

.masterpiece-intro .section-title {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

/* =================================================================== */
/* ===         CLASE .SECTION-TITLE (VERSIÓN REFINADA Y AJUSTADA)    === */
/* =================================================================== */

.section-title {
  font-family: 'Poppins', sans-serif;
  /* TAMAÑO AJUSTADO: Un poco más pequeño para un look más refinado y balanceado. */
  font-size: clamp(2.8rem, 6.5vw, 4.2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-align: center;
  /* ESPACIADO AJUSTADO: Ligeramente menos negativo para acompañar el nuevo tamaño. */
  letter-spacing: -1.5px;
}

.masterpiece-intro .section-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* 2. La Línea de Tiempo Vertical */
.masterpiece-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.masterpiece-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 49px;
  width: 4px;
  background-color: var(--color-border-light);
  border-radius: 2px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
  z-index: 0;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 49px;
  width: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  z-index: 1;
  height: 0;
  transition: height 0.5s ease-out;
}

/* 3. Cada Paso de la Línea de Tiempo */
.masterpiece-step {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.masterpiece-step:not(:last-child) {
  margin-bottom: 4rem;
}

@media (max-width: 600px) {
  .masterpiece-step {
    grid-template-columns: 70px 1fr;
    gap: 1.25rem;
    /* Menos espacio en móvil */
  }

  .masterpiece-timeline::after,
  .timeline-progress {
    left: 34px;
  }
}

/* 4. El Elemento Visual (Icono) */
.step-visual {
  position: relative;
  width: 102px;
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .step-visual {
    width: 70px;
    height: 70px;
  }
}

.visual-icon-wrapper {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-secondary), var(--color-accent-primary));
  box-shadow: 0 5px 15px rgba(74, 58, 255, 0.25);
  transform: scale(0.8);
  opacity: 0.5;
  transition: all 0.6s var(--transition-bouncy);
}

.visual-icon-wrapper.active {
  transform: scale(1);
  opacity: 1;
}

.visual-icon-wrapper .material-icons {
  font-size: 36px;
  color: #fff;
}

@media (max-width: 600px) {
  .visual-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .visual-icon-wrapper .material-icons {
    font-size: 24px;
  }

  .hero.section {
    padding-top: 120px;
    /* Menos padding superior para dar espacio al demo */
    padding-bottom: 120px;
    background-color: var(--color-bg-light);
    position: relative;
    overflow: hidden;
    display: flex;
    /* Centrado vertical */
    align-items: center;
    min-height: 100vh;
  }

}

/* 5. El Contenido en Tarjeta (Derecha) */
.step-content-card {
  background-color: var(--color-bg-secondary-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-light-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transition: all var(--transition-smooth);
}

/* 6. ¡TIPOGRAFÍA PREMIUM MEJORADA! */
.step-number {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 0.5rem;
  /* Más pegado al título */
  display: block;
}

.step-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  /* Título más grande e impactante */
  font-weight: 700;
  /* Bold */
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -1px;
  /* Espaciado premium */
  transition: color var(--transition-smooth);
}

.step-description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  /* Ligeramente más grande */
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* 7. Micro-Interacciones Premium */
.masterpiece-step:hover .step-content-card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-light-lg);
  border-color: rgba(74, 58, 255, 0.3);
}

.masterpiece-step:hover .step-title {
  color: var(--color-accent-primary);
}

.masterpiece-step:hover .visual-icon-wrapper {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(74, 58, 255, 0.35);
}

/* Separador */
.section-separator--light {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-light), transparent);
  margin: 0 auto;
  width: 80%;
  max-width: 800px;
}

/* ======================================================================= */
/* ===    CSS "OBRA MAESTRA" PARA SECCIÓN CÓMO FUNCIONA (VERSIÓN FINAL) === */
/* ======================================================================= */

/* 1. Contenedor Principal */
.how-it-works-elegant {
  background-color: var(--color-bg-light);
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}

.elegant-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem auto;
}

/* 2. La Línea de Tiempo (Aplica a ambas vistas) */
.elegant-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* El "track" de fondo */
.elegant-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: var(--color-border-light);
  border-radius: 2px;
  z-index: 1;
}

/* La barra de progreso animada */
.timeline-progress-elegant {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  z-index: 2;
  height: 0;
  transition: height 0.1s ease-out;
}

/* 3. Cada Paso de la Línea de Tiempo (Layout Desktop) */
.elegant-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 200px;
}

/* 4. El Punto Numérico en la Línea de Tiempo */
.step-number-dot {
  grid-column: 2;
  grid-row: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-bg-secondary-light);
  border: 2px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all var(--transition-smooth);
}

.step-number-dot::before {
  content: attr(data-step);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-text-tertiary);
  transition: color var(--transition-smooth);
}

.elegant-step.is-visible .step-number-dot {
  border-color: var(--color-accent-primary);
  transform: scale(1.1);
}

.elegant-step.is-visible .step-number-dot::before {
  color: var(--color-accent-primary);
}

/* 5. El Contenido de Texto (Desktop) */
.step-content-elegant {
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  transition: all 0.4s ease-out;
  opacity: 0;
  transform: translateY(20px);
}

.elegant-step.is-visible .step-content-elegant {
  opacity: 1;
  transform: translateY(0);
}

.elegant-step--right .step-content-elegant {
  grid-column: 3;
  text-align: left;
}

.elegant-step--left .step-content-elegant {
  grid-column: 1;
  text-align: right;
}

.step-content-elegant:hover {
  background-color: var(--color-bg-secondary-light);
  box-shadow: var(--shadow-light-lg);
  transform: translateY(-5px);
}

/* 6. Tipografía Elegante */
.step-category {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.step-title-elegant {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.step-description-elegant {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

.elegant-step--right .step-description-elegant {
  margin-right: auto;
}

.elegant-step--left .step-description-elegant {
  margin-left: auto;
}

/* ======================================================================= */
/* ===         REGLAS RESPONSIVAS PARA VISTA MÓVIL (CORREGIDO)       === */
/* ======================================================================= */
@media (max-width: 768px) {

  /* 1. Ajustamos la línea de tiempo para que esté a la izquierda */
  .elegant-timeline::after,
  .timeline-progress-elegant {
    left: 25px;
    /* Posición fija a la izquierda */
    transform: translateX(0);
  }

  /* 2. Cambiamos el layout de los pasos a 2 columnas: [punto] [contenido] */
  .elegant-step {
    grid-template-columns: 50px 1fr;
    /* Columna estrecha para el punto, el resto para el contenido */
    gap: 1.5rem;
    min-height: auto;
    margin-bottom: 3rem;
  }

  /* 3. El punto numérico ahora se alinea a la primera columna */
  .step-number-dot {
    grid-column: 1;
    width: 50px;
    height: 50px;
  }

  /* 4. El contenido ahora siempre está en la segunda columna y alineado a la izquierda */
  .elegant-step--right .step-content-elegant,
  .elegant-step--left .step-content-elegant {
    grid-column: 2;
    text-align: left;
    padding: 0;
  }

  /* 5. La descripción ocupa todo el ancho disponible */
  .step-description-elegant {
    margin-left: 0;
    max-width: 100%;
  }

  /* 6. Desactivamos el efecto hover de sombra en móvil */
  .step-content-elegant:hover {
    background: none;
    box-shadow: none;
    transform: none;
  }
}

/* Separador */
.section-separator--light {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-light), transparent);
  margin: 0 auto;
  width: 80%;
  max-width: 800px;
}

/* ======================================================================= */
/* ===         CSS PARA SECCIÓN DE BENEFICIOS (VERSIÓN ELEGANTE)       === */
/* ======================================================================= */

/* 1. Contenedor Principal y Fondo de Cuadrícula */
.benefits-elegant {
  background-color: var(--color-bg-light);
  position: relative;
}

.benefits-elegant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(74, 58, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to right, rgba(74, 58, 255, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.8;
  mask-image: radial-gradient(circle at top center, white 0%, transparent 70%);
  z-index: 0;
}

.benefits-elegant .container {
  position: relative;
  z-index: 1;
}

/* 2. Grid y Títulos */
.benefits-elegant__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* 3. Nueva Tarjeta de Beneficio "Elegante" */
.elegant-benefit-card {
  position: relative;
  background-color: var(--color-bg-secondary-light);
  /* Fondo blanco sólido */
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  text-align: center;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  overflow: hidden;
  /* Importante para el borde que aparece */
}

/* El pseudo-elemento que crea el borde con gradiente al hacer hover */
.elegant-benefit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Cubre todo el área */
  border-radius: inherit;
  /* Mismo borde redondeado */
  padding: 2px;
  /* Grosor del borde */
  background: var(--gradient-accent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  /* Oculto por defecto */
  transition: opacity var(--transition-smooth);
  pointer-events: none;
  /* No interfiere con el cursor */
}

/* 4. Interacción Sutil y Elegante (NO cambia el color de fondo) */
.elegant-benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-light-lg);
}

.elegant-benefit-card:hover::after {
  opacity: 1;
  /* El borde con gradiente aparece suavemente */
}

/* 5. Icono Refinado (con gradiente en el propio icono) */
.card__icon-elegant {
  font-size: 40px;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform var(--transition-smooth);
}

.elegant-benefit-card:hover .card__icon-elegant {
  transform: scale(1.1);
}

/* 6. Tipografía de la Tarjeta */
.card__title-elegant {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.card__text-elegant {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

/* Separador (aseguramos que sea la versión light) */
.section-separator--light {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-light), transparent);
  margin: 0 auto;
  width: 80%;
  max-width: 800px;
}

/* ======================================================================= */
/* ===    CSS PARA SECCIÓN DE CAPACIDADES (ESTILO PREMIUM DARK "PERRO") === */
/* ======================================================================= */

/* 1. Contenedor Principal de la Sección */
.services.section--dark {
  background-color: #111522;
  /* Mismo color de fondo que el footer */
  position: relative;
  overflow: hidden;
  /* Asegura que los efectos de hover no se salgan */
}

/* Capa de cuadrícula con degradado premium */
.services.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at center, white 10%, transparent 80%);
  z-index: 0;
}

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

/* 2. Grid de 3 Columnas */
.grid.grid--3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* 3. La Tarjeta de Servicio ("service-card") */
.service-card {
  position: relative;
  /* Para los efectos de hover */
  background: linear-gradient(145deg, #1f2331, #111522);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  text-align: left;
  overflow: hidden;
  /* Importante para el efecto de resplandor */
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

/* Efecto de resplandor radial que sigue al cursor */
.service-card::before {
  content: "";
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle closest-side, rgba(74, 58, 255, 0.2), transparent);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s;
}

/* Borde brillante al hacer hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-accent);
  filter: blur(8px);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

/* 4. Interacción Hover Premium */
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.25);
}

.service-card:hover::before {
  opacity: 1;
  /* Muestra el resplandor interior */
}

.service-card:hover::after {
  opacity: 1;
  /* Muestra el borde brillante */
}

/* ======================================================================= */
/* ===    CSS PARA SECCIÓN DE CAPACIDADES (MINIMALISTA Y ELEGANTE)     === */
/* ======================================================================= */

/* 1. Contenedor Principal y Cuadrícula Consistente */
.section--dark-gradient {
  background-color: #111522;
  /* Color base del footer */
  position: relative;
}

/* Capa de cuadrícula con degradado premium */
.section--dark-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.6;
  mask-image: radial-gradient(circle at top center, white 10%, transparent 80%);
  z-index: 0;
}

.capabilities-premium .container {
  position: relative;
  z-index: 1;
}

/* 2. Títulos y Grid */
.capabilities-premium__intro {
  text-align: center;
  margin-bottom: 4rem;
}

.capabilities-premium__intro .section-subtitle {
  color: var(--color-text-tertiary);
  max-width: 700px;
  margin: 0 auto;
}

.capabilities-premium__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* 3. Nueva Tarjeta Minimalista */
.premium-capability-card {
  background-color: transparent;
  /* Fondo transparente por defecto */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  transition: all var(--transition-smooth);
  text-align: left;
}

/* 4. Interacción Hover Sutil y Elegante */
.premium-capability-card:hover {
  transform: translateY(-8px);
  background-color: #1c202d;
  /* Fondo oscuro sutil aparece al hacer hover */
  border-color: var(--color-accent-primary);
  /* El borde se ilumina */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.premium-capability-card .material-icons {
  font-size: 40px;
  /* Icono más grande y protagonista */
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 15px rgba(74, 58, 255, 0.2);
  /* Sombra para efecto flotante */
}

/* 6. Tipografía Refinada */
.card__title-dark {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-bg-secondary-light);
  margin-bottom: 0.75rem;
}

.card__description-dark {
  color: var(--color-text-tertiary);
  line-height: 1.7;
  font-size: 1rem;
}

/* ======================================================================= */
/* ===         CSS PARA SECCIÓN DE CASOS DE USO (ELEGANTE Y REFINADA)  === */
/* ======================================================================= */

/* 1. Contenedor Principal y Fondo de Cuadrícula */
.case-studies.section--light {
  background-color: var(--color-bg-light);
  position: relative;
}

.case-studies.section--light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(74, 58, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to right, rgba(74, 58, 255, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.8;
  mask-image: radial-gradient(circle at top center, white 0%, transparent 70%);
  z-index: 0;
}

.case-studies .container {
  position: relative;
  z-index: 1;
}

/* 2. Grid y Subtítulos */
.grid--4-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Subtítulo de la sección principal (el que está sobre las tarjetas) */
.section-subtitle {
  color: var(--color-text-secondary);
  /* Asegura el color correcto */
  text-align: center;
  /* Asegura que esté centrado */
  margin: 0 auto 3rem auto;
  /* Asegura espaciado inferior adecuado */
  max-width: 700px;
  /* Limita ancho para legibilidad */
}

/* No necesitas section-subtitle--light-bg si el section-subtitle ya está bien */
/* .section-subtitle--light-bg {
    color: var(--color-text-secondary);
} */


/* 3. Tarjeta de Caso de Uso "Elegante" */
.case-study-item {
  position: relative;
  background-color: var(--color-bg-secondary-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  /* ALINEACIÓN DE CONTENIDO EN LA TARJETA (Icono y Título a la izquierda) */
  text-align: left;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  overflow: hidden;
  height: 100%;
}

/* El pseudo-elemento que crea el borde con gradiente al hacer hover */
.case-study-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-accent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

/* 4. Interacción Sutil y Elegante */
.case-study-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-light-lg);
}

.case-study-item:hover::after {
  opacity: 1;
}

/* 5. Icono con Gradiente */
.case-study-item__icon {
  font-size: 36px;
  margin-bottom: 1.25rem;
  display: inline-block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform var(--transition-bouncy);
}

.case-study-item:hover .case-study-item__icon {
  transform: scale(1.15) rotate(-8deg);
}

/* 6. Tipografía Refinada de la Tarjeta */
.case-study-item__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  text-decoration: none;
  /* ¡CORRECCIÓN! Para eliminar posibles subrayados */
}

/* ¡CORRECCIÓN! Estilos para la descripción */
.case-study-item__description {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
  /* Equivalente a ~14.4px */
  text-align: left;
  /* ¡CENTRADO! */
  margin-bottom: 0;
  /* ¡NO MAS ESPACIO INFERIOR AQUÍ SI YA NO SE NECESITA! */
  padding-bottom: 1rem;
  /* Opcional: para asegurar espacio antes del final de la tarjeta */
  text-decoration: none;
  /* ¡CORRECCIÓN! Para eliminar posibles subrayados */
}


/* =================================================================== */
/* === ESTILOS PREMIUM DARK PARA PLANES (VERSIÓN FINAL CORREGIDA) ==== */
/* =================================================================== */

/* ------------------------------------ */
/* --- 1. Contenedor Principal --- */
/* ------------------------------------ */
#planes.pricing-section {
  background: linear-gradient(180deg, #111522 0%, #0a0a0a 100%);
  color: #ffffff;
  position: relative;
}

#planes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at top center, white 0%, transparent 80%);
  z-index: 0;
}

#planes .container {
  position: relative;
  z-index: 1;
}

#planes .section-title,
#planes .section-subtitle {
  color: #ffffff;
}

#planes .section-subtitle {
  color: #a0a8b7;
}

/* ------------------------------------ */
/* --- 2. Selector y Aviso de Prueba Gratis --- */
/* ------------------------------------ */
#planes .pricing-toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

#planes .pricing-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-pill);
  padding: 6px;
  display: flex;
  /* Añadido para mejor alineación */
}

#planes .toggle-button {
  color: var(--color-text-medium);
  font-weight: 500;
  border-radius: var(--border-radius-pill);
  background: none;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  /* ¡CORRECCIÓN! */
  transition: all var(--transition-smooth);
}

#planes .toggle-button.active {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(74, 58, 255, 0.2);
}

#planes .pricing-trial-notice {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
}

#planes .pricing-trial-notice .material-icons {
  font-size: 18px;
  color: #50e3c2;
}

.pricing-trial-notice {
  font-size: 0.9rem;
  color: var(--color-text-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-pill);
}

.pricing-trial-notice .material-icons {
  font-size: 18px;
  color: #50e3c2;
}

/* ------------------------------------ */
/* --- 3. Tarjetas de Precios --- */
/* ------------------------------------ */
#planes .pricing-card {
  background: linear-gradient(145deg, #1e2230, #111522);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  padding: 2.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-smooth);
  overflow: visible;
  /* Asegura que el badge se vea completo */
}

#planes .pricing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-xl);
  border: 2px solid transparent;
  background: linear-gradient(var(--gradient-accent)) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
  /* Evita que interfiera con el click */
}

#planes .pricing-card:hover {
  transform: translateY(-10px) scale(1.02);
}

#planes .pricing-card:hover::after {
  opacity: 1;
}

#planes .pricing-card__title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
}

#planes .pricing-card__price .price {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
}

#planes .pricing-card__price .period {
  color: #a0a8b7;
}

#planes .pricing-card__description {
  color: var(--color-text-medium);
  min-height: 3.2em;
  margin-bottom: 1.5rem;
}

#planes .pricing-card__features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

#planes .pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 0.8rem;
}

#planes .pricing-card__features .material-icons {
  font-size: 20px;
  color: var(--color-accent-secondary);
  margin-top: 2px;
}

#planes .pricing-card__features strong {
  color: #ffffff;
}

/* Botones con border-radius pill y hover corregido */
#planes .button {
  width: 100%;
  border-radius: var(--border-radius-pill);
  padding: 16px;
  font-size: 1rem;
  cursor: pointer;
  /* ¡CORRECCIÓN! */
  transition: all var(--transition-smooth);
}

#planes .button--secondary-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid transparent;
}

#planes .button--secondary-dark:hover {
  background-color: #ffffff;
  color: var(--color-accent-dark);
  transform: translateY(-2px);
}

#planes .button--primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(74, 58, 255, 0.3);
}

#planes .button--primary:hover {
  background: var(--gradient-accent-hover);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 25px rgba(74, 58, 255, 0.4);
}

/* ------------------------------------ */
/* --- 4. Tarjeta Destacada --- */
/* ------------------------------------ */
#planes .pricing-card--highlighted {
  transform: scale(1.05);
  z-index: 2;
}

#planes .pricing-card--highlighted:hover {
  transform: scale(1.1) translateY(-10px);
}

#planes .pricing-card--highlighted::after {
  opacity: 1;
  animation: rotateGradient 4s linear infinite;
}

@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#planes .pricing-card__badge {
  background: var(--gradient-accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  /* ¡CORRECCIÓN! Padding simétrico para centrar el texto */
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* ------------------------------------ */
/* --- 5. Botón Ver Más Detalles --- */
/* ------------------------------------ */
#planes .pricing-details-link {
  margin-top: 4rem;
  /* ¡CORRECCIÓN! Centrado con flexbox */
  display: flex;
  justify-content: center;
}

#planes .button--text-dark {
  color: var(--color-text-medium);
  font-weight: 500;
  padding: 10px 15px;
  transition: color var(--transition-smooth), gap var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  /* ¡CORRECCIÓN! */
}

#planes .button--text-dark:hover {
  color: #ffffff;
  gap: 1rem;
}

#planes .button--text-dark .material-icons {
  transition: transform var(--transition-smooth);
}

#planes .button--text-dark:hover .material-icons {
  transform: translateX(5px);
}

/* ======================================================================= */
/* ===         CSS PARA SECCIÓN DE FAQ (VERSIÓN LIGHT PREMIUM)         === */
/* ======================================================================= */

/* 1. Contenedor Principal de la Sección */
.faq-section.section {
  background-color: var(--color-bg-light);
  /* Fondo claro para coherencia */
}

/* Aseguramos que los títulos y subtítulos principales sigan el estilo light */
.faq-section .section-title {
  color: var(--color-text-primary);
}

.faq-section .section-subtitle {
  color: var(--color-text-secondary);
}

/* 2. El Contenedor de las Preguntas Frecuentes (como una tarjeta elevada) */
.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--color-bg-secondary-light);
  /* Fondo blanco puro */
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  /* Bordes redondeados modernos */
  box-shadow: var(--shadow-light-lg);
  /* Sombra premium y profunda */
  padding: clamp(1rem, 4vw, 2rem);
  /* Padding interno */
}

/* 3. Cada Item de Pregunta y Respuesta */
.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  /* Borde sutil */
}

.faq-item:last-child {
  border-bottom: none;
  /* Sin borde en el último elemento */
}

/* 4. El Botón de la Pregunta (Interactivo) */
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1.5rem;
  /* Padding generoso para un área de click grande */
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  /* Alineación del texto de la pregunta */
  border-radius: var(--border-radius-md);
  /* Ligero redondeo para el hover */
  transition: background-color var(--transition-smooth);
}

/* El texto de la pregunta */
.faq-question span:first-child {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--color-text-primary);
  /* Color por defecto */
  transition: all var(--transition-smooth);
  /* Transición para el cambio a gradiente */
}

/* El icono de la flecha */
.faq-toggle-icon {
  font-size: 24px;
  color: var(--color-text-tertiary);
  /* Color sutil por defecto */
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}

/* 5. Efectos Hover (Sutil y Premium) */
.faq-question:hover {
  background-color: var(--color-accent-subtle-bg);
  /* Resaltado sutil en toda el área */
}

.faq-question:hover span:first-child {
  background: var(--gradient-text);
  /* El texto se convierte en un gradiente */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Fallback */
}

.faq-question:hover .faq-toggle-icon {
  color: var(--color-accent-primary);
  /* El icono se ilumina */
}


/* 6. Estado Activo (Pregunta Abierta) */
.faq-item.active .faq-question {
  background-color: var(--color-accent-subtle-bg);
  /* Mantenemos el fondo resaltado */
}

.faq-item.active .faq-question span:first-child {
  background: var(--gradient-text);
  /* Mantenemos el texto en gradiente */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Fallback */
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  /* La flecha gira */
  color: var(--color-accent-primary);
  /* El icono permanece iluminado */
}

/* 7. Contenido de la Respuesta */
.faq-answer {
  /* La lógica JS controlará el maxHeight y opacity. */
  /* Aquí definimos el estilo y la transición. */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, opacity 0.2s ease-out, padding-top 0.2s ease-out;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  /* Espacio al final de la respuesta */
  padding-left: 1.5rem;
  /* Padding a la izquierda para alinear con el texto de la pregunta */
  padding-right: 1.5rem;
  /* Padding a la derecha */
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  /* Color del cuerpo de texto */
}

/* Media Query para móvil: ajustar padding si es necesario */
@media (max-width: 600px) {
  .faq-question {
    padding: 1rem;
    /* Menos padding en pantallas muy pequeñas */
  }

  .faq-answer p {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ================================================================= */
/* ===         ANIMACIONES DE ALTO RENDIMIENTO (OPTIMIZADO)      === */
/* ================================================================= */

/*
  Estado inicial:
  - 'will-change' le dice al navegador que se prepare para animar estas propiedades,
    optimizando el proceso (a menudo usando aceleración por hardware/GPU).
  - La distancia 'translateY(20px)' es más sutil y elegante.
  - La opacidad sigue en 0 para que esté oculto.
*/
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  /* <-- La clave para el rendimiento */
  transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/*
  Estado final cuando es visible:
  - Exactamente igual, solo que ahora se muestra.
*/
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*
  Retrasos escalonados más sutiles y rápidos para las cuadrículas.
  Esto crea un efecto cascada muy fluido y rápido.
*/
.grid .animate-on-scroll:nth-child(1) {
  transition-delay: 0.1s;
}

.grid .animate-on-scroll:nth-child(2) {
  transition-delay: 0.15s;
}

.grid .animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.grid .animate-on-scroll:nth-child(4) {
  transition-delay: 0.15s;
}

/* Siguiente fila */
.grid .animate-on-scroll:nth-child(5) {
  transition-delay: 0.2s;
}

.grid .animate-on-scroll:nth-child(6) {
  transition-delay: 0.25s;
}

.grid .animate-on-scroll:nth-child(7) {
  transition-delay: 0.2s;
}

/* Siguiente fila */
.grid .animate-on-scroll:nth-child(8) {
  transition-delay: 0.25s;
}

/* =================================================================== */
/* ===   SECCIÓN DE CONFIANZA 2.0 (CARRUSEL INFINITO DE CLIENTES)  === */
/* =================================================================== */

.client-logos {
  padding-top: clamp(2rem, 5vw, 4rem);
  /* Ajustamos padding superior */
  padding-bottom: clamp(4rem, 8vw, 6rem);
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border-light);
}

.client-logos__title {
  text-align: center;
  color: var(--color-text-secondary);
  /* Un color ligeramente más visible */
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  /* Título más grande y legible */
  font-weight: 500;
  /* Menos pesado que el anterior */
  font-family: 'Poppins', sans-serif;
  max-width: 650px;
  /* Limita el ancho para mejor lectura */
  margin: 0 auto 3.5rem auto;
  /* Centrado y con más espacio inferior */
  line-height: 1.5;
  letter-spacing: normal;
  /* Quitamos el letter-spacing para un look más natural */
  text-transform: none;
  /* Quitamos el uppercase */
}

.client-logos__slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* La máscara crea el efecto de desvanecimiento en los bordes */
  -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
  mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.client-logos__track {
  display: flex;
  /* Ancho dinámico basado en el número de logos (6 en este ejemplo) y su ancho estimado */
  width: calc(250px * 12);
  animation: scroll 40s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    /* Mueve el track la mitad de su ancho (la longitud de la lista original de logos) */
    transform: translateX(calc(-250px * 6));
  }
}

/* Detiene la animación al pasar el cursor por encima */
.client-logos__slider:hover .client-logos__track {
  animation-play-state: paused;
}

/* Consideración de accesibilidad: detiene la animación si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .client-logos__track {
    animation: none;
    justify-content: center;
    /* En modo reducido, simplemente centramos los logos */
    flex-wrap: wrap;
    width: 100%;
  }

  .client-logos__slider {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.client-logo-item {
  flex-shrink: 0;
  width: 250px;
  /* Ancho fijo para cada item, ayuda a calcular la animación */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
}

.client-logo-item img {
  max-height: 38px;
  /* Un poco más grandes para mayor impacto */
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all var(--transition-smooth);
}

/* El hover ahora es sobre el item, no solo la imagen, dando un área mayor */
.client-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* =================================================================== */
/* ===   ESTILOS PARA PÁGINAS DE CONTENIDO LEGAL (Términos, etc.)  === */
/* ===             (VERSIÓN CORREGIDA PARA MÓVIL)                  === */
/* =================================================================== */

/* Contenedor principal de la sección de contenido legal */
.legal-content-section {
  background-color: var(--color-bg-light);
  padding-top: 150px;
  /* Espacio para el navbar fijo en desktop */
  padding-bottom: 100px;
  transition: padding-top 0.3s ease;
  /* Transición suave */
}

/* Wrapper que simula una hoja de papel o documento */
.legal-content-wrapper {
  background-color: var(--color-bg-secondary-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-light-lg);
  padding: clamp(2rem, 5vw, 4rem);
  /* Padding generoso para desktop */
  max-width: 900px;
  /* Ancho ideal para lectura de texto largo en desktop */
  margin: 0 auto;
  transition: padding 0.3s ease;
  /* Transición suave */
}

/* Estilos de la tipografía dentro del contenido legal (Desktop) */
.legal-content-wrapper h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-align: center;
}

.legal-content-wrapper .last-updated {
  display: block;
  text-align: center;
  color: var(--color-text-tertiary);
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-content-wrapper h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.legal-content-wrapper h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content-wrapper p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content-wrapper strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.legal-content-wrapper ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 1rem;
}

.legal-content-wrapper li {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-content-wrapper a {
  color: var(--color-accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration var(--transition-smooth);
}

.legal-content-wrapper a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------- */
/* --- AJUSTES ESPECÍFICOS PARA LA VISTA MÓVIL (LA MAGIA OCURRE AQUÍ) --- */
/* ----------------------------------------------------------------- */
@media (max-width: 768px) {

  /* MÓVIL: Reducimos el padding superior de la sección para no desperdiciar espacio */
  .legal-content-section {
    padding-top: 120px;
  }

  /* MÓVIL: Ajustamos el wrapper para que ocupe más espacio y tenga menos padding horizontal */
  .legal-content-wrapper {
    /* ¡EL CAMBIO CLAVE! Reducimos drásticamente el padding horizontal para dar más espacio al texto */
    padding: 3rem 1.5rem;
  }

  /* MÓVIL: Ajustamos el tamaño de los títulos para que no sean tan grandes */
  .legal-content-wrapper h1 {
    font-size: 2rem;
    /* Tamaño más controlado en móvil */
  }

  .legal-content-wrapper h2 {
    font-size: 1.4rem;
    /* Tamaño más controlado en móvil */
  }

  .page-header-section {
    padding-top: 120px !important;
  }
}

/* =================================================================== */
/* ===       NUEVOS ESTILOS PARA planes.html (PREMIUM v2)          === */
/* =================================================================== */

/* --- Sección del Encabezado de la Página --- */
.page-header-section {
  padding-top: 180px;
  padding-bottom: 4rem;
  background-color: var(--color-bg-light);
}

.text-center {
  text-align: center;
}

/* --- Toggle de Precios Mejorado con fondo deslizante --- */
.pricing-toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: -2rem;
  position: relative;
  z-index: 2;
}

.pricing-toggle-plans {
  position: relative;
  background: var(--color-bg-secondary-light);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-light-md);
  border-radius: var(--border-radius-pill);
  padding: 5px;
  display: inline-flex;
}

/* Fondo deslizante */
.pricing-toggle-plans::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(50% - 5px);
  /* Ancho de un botón */
  background: var(--gradient-accent);
  box-shadow: var(--shadow-button-glow);
  border-radius: var(--border-radius-pill);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  /* Bouncy transition */
}

/* Mueve el fondo cuando el anual está activo */
.pricing-toggle-plans.toggle--annual::before {
  transform: translateX(100%);
}

.toggle-button-plans {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-secondary);
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  background: none;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1;
  /* Para que esté sobre el fondo */
  min-width: 120px;
  /* Ancho fijo para el cálculo */
}

.toggle-button-plans.active {
  color: #ffffff;
}

/* --- Sección de la Tabla de Precios --- */
.pricing-table-section {
  padding-top: 6rem;
}

.section.section--dark-secondary {
  background-color: #f0f2f7;
  /* Un tono ligeramente más oscuro que el fondo principal */
}

/* --- Iconos y Tooltips --- */
.feature-icon--check::before {
  content: 'check_circle';
  font-family: 'Material Icons';
  color: #28a745;
  /* Verde éxito */
  font-size: 22px;
  vertical-align: middle;
}

.feature-icon--cross::before {
  content: 'cancel';
  font-family: 'Material Icons';
  color: #dc3545;
  /* Rojo peligro */
  font-size: 22px;
  vertical-align: middle;
}

[data-tooltip] {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

[data-tooltip] .material-icons {
  font-size: 16px;
  color: var(--color-text-tertiary);
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: var(--color-text-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  width: 250px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 10;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --- Estilos de la Tabla --- */
.pricing-table-desktop {
  background-color: var(--color-bg-secondary-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-light-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.pricing-table__header-row,
.feature-row {
  display: grid;
  grid-template-columns: 2.5fr repeat(4, 1fr);
  /* Más espacio para features */
  align-items: center;
  gap: 1.5rem;
  transition: background-color 0.3s ease;
}

.pricing-table__header-row {
  padding-top: 30px;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--color-border-light);
}

.header-cell {
  text-align: center;
  padding: 1rem 0;
}

.header-cell--features {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-primary);
  text-align: left;
}

.header-cell h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.header-cell .price-container {
  margin-bottom: 1.25rem;
}

.header-cell .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.header-cell .period {
  color: var(--color-text-tertiary);
  font-weight: 500;
}

.header-cell .button {
  width: 100%;
}

.plan-col--highlighted {
  position: relative;
  background: var(--color-accent-subtle-bg);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Aplicar padding a celdas de la columna destacada para mantener el fondo */
.feature-row .plan-col--highlighted {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  margin: -1.25rem 0;
}

.header-cell.plan-col--highlighted {
  padding: 1.5rem;
  border: 2px solid var(--color-accent-primary);
  border-radius: var(--border-radius-lg);
  transform: scale(1.05);
  /* Ligeramente más grande */
}

.plan-col__badge {
  background: var(--gradient-accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.feature-group {
  border-bottom: 1px solid var(--color-border-light);
}

.feature-group:last-child {
  border-bottom: none;
}

.feature-group__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--color-accent-primary);
  padding: 1rem 2rem;
  background-color: #f8f9fc;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  grid-column: 1 / -1;
  /* Ocupa todas las columnas */
}

.feature-row {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--color-border-light);
}

.feature-row:hover {
  background-color: #f8f9fc;
}

.feature-row span {
  text-align: center;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.feature-row .feature-name {
  text-align: left;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* --- Contenedor de Scroll Horizontal para Móvil y su efecto de desvanecimiento --- */
.pricing-table-scroll-wrapper {
  position: relative;
}

/* Efecto de desvanecimiento a la derecha */
.pricing-table-scroll-wrapper.has-scroll::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 80px;
  background: linear-gradient(to right, transparent, #f0f2f7 80%);
  pointer-events: none;
  /* No bloquea el scroll */
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* Oculta el fade cuando el usuario ha llegado al final */
.pricing-table-scroll-wrapper.is-scrolled-to-end::after {
  opacity: 0;
}


/* --- Media Queries para la tabla (el cambio clave) --- */
@media (max-width: 992px) {
  .pricing-table-scroll-wrapper {
    overflow-x: auto;
    /* Activa el scroll horizontal */
    -webkit-overflow-scrolling: touch;
    /* Scroll suave en iOS */
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-primary) var(--color-border-light);
  }

  /* Estilos para el scrollbar en navegadores Webkit (Chrome, Safari) */
  .pricing-table-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .pricing-table-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--color-border-light);
    border-radius: 10px;
  }

  .pricing-table-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--color-accent-primary);
    border-radius: 10px;
    border: 2px solid var(--color-border-light);
  }

  .pricing-table-desktop {
    min-width: 1100px;
    /* Fuerza el desbordamiento y el scroll */
  }
}


/* --- Sección de Testimonios --- */
.testimonials-section {
  background-color: var(--color-bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial-card {
  background-color: var(--color-bg-secondary-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.testimonial-card__text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-secondary);
  flex-grow: 1;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.testimonial-card__text::before {
  content: '“';
  font-family: 'Poppins', serif;
  font-size: 5rem;
  color: var(--color-accent-primary);
  position: absolute;
  left: -1rem;
  top: -2rem;
  opacity: 0.1;
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.testimonial-card__author img {
  height: 40px;
  width: auto;
  max-width: 120px;
  filter: grayscale(100%) opacity(0.7);
  object-fit: contain;
}

.author-info {
  line-height: 1.2;
}

.author-name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.author-company {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* --- Sección de CTA Final --- */
.final-cta-section {
  padding: 6rem 0;
}

/* =================================================================== */
/* ===   EFECTO DE GRID 3D "PRONUNCIADO" (VERSIÓN CORREGIDA)       === */
/* =================================================================== */

/* 1. Contenedor que establece el "espacio 3D" */
.page-header-section--3d-grid {
  position: relative;
  /* ¡ERROR CORREGIDO! Se eliminó 'overflow: hidden' que cortaba el efecto. */
  perspective: 1200px;
  /* Aumentamos la perspectiva para un look más cinematográfico. */
}

/* 2. La cuadrícula con transformaciones mejoradas */
.page-header-section--3d-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  /* Más ancho para cubrir los bordes al rotar */
  width: 200%;
  /* CAMBIO CLAVE: Altura controlada para que se extienda bastante hacia abajo. */
  height: 200%;
  z-index: 0;

  /* Usamos un color ligeramente más visible para que el efecto destaque */
  background-image:
    linear-gradient(rgba(74, 58, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to right, rgba(74, 58, 255, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;

  transform-origin: top center;
  /* CAMBIO CLAVE: Rotación pronunciada pero estable y visible. */
  transform: rotateX(68deg);

  /* La máscara ahora se desvanece más gradualmente y más abajo. */
  mask-image: linear-gradient(to bottom, white 25%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, white 25%, transparent 80%);
}

/* 3. Aseguramos que el contenido principal esté por encima de la cuadrícula */
.page-header-section--3d-grid .container {
  position: relative;
  z-index: 1;
}

/* =================================================================== */
/* ===    EFECTO DE CUADRÍCULA PARA ENCABEZADOS DE PÁGINA          === */
/* =================================================================== */

.page-header-section--grid-bg {
  position: relative;
  /* Necesario para posicionar los pseudo-elementos */
}

/* Capa de resplandor (igual que en el hero) */
.page-header-section--grid-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  max-width: 1200px;
  background: radial-gradient(circle, rgba(74, 58, 255, 0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

/* Capa de la cuadrícula (igual que en el hero) */
.page-header-section--grid-bg::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(74, 58, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to right, rgba(74, 58, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at center, white 20%, transparent 80%);
  z-index: 0;
}

/* Asegura que el contenido del encabezado esté por encima de la cuadrícula */
.page-header-section--grid-bg .container {
  position: relative;
  z-index: 1;
}

/* =================================================================== */
/* ===  ESTILOS UNIFICADOS Y CORREGIDOS PARA LA TABLA Y EL ICONO   === */
/* =================================================================== */

/* Contenedor de la tabla con scroll */
.pricing-table-scroll-wrapper {
  /* ¡¡LA CLAVE!! Da el contexto de posicionamiento al icono */
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-primary) var(--color-border-light);
  padding-bottom: 1rem;
}

/* Efecto de desvanecimiento a la derecha (solo si hay scroll) */
.pricing-table-scroll-wrapper.has-scroll::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 80px;
  background: linear-gradient(to right, transparent, #f0f2f7 80%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* Oculta el desvanecimiento al llegar al final */
.pricing-table-scroll-wrapper.is-scrolled-to-end::after {
  opacity: 0;
}

/* Scrollbar en navegadores Webkit (Chrome, Safari) */
.pricing-table-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.pricing-table-scroll-wrapper::-webkit-scrollbar-track {
  background: var(--color-border-light);
  border-radius: 10px;
}

.pricing-table-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--color-accent-primary);
  border-radius: 10px;
  border: 2px solid var(--color-border-light);
}

/* --- Indicador de scroll animado (EL ICONO) --- */
.scroll-hint {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;

  /* ¡¡LA CORRECCIÓN ESTÁ AQUÍ!! */
  background-color: var(--color-accent-primary);
  /* Se cambió --color-primary por --color-accent-primary */

  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  animation: nudge-right 2s ease-in-out infinite;
}

@keyframes nudge-right {
  0% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(-50%) translateX(8px);
  }

  100% {
    transform: translateY(-50%) translateX(0);
  }
}

/* --- Media Query para mostrar el icono y activar el scroll --- */
@media (max-width: 1024px) {

  /* Muestra el icono si hay scroll y no se ha llegado al final */
  .pricing-table-scroll-wrapper.has-scroll:not(.is-scrolled-to-end) .scroll-hint {
    opacity: 1;
    visibility: visible;
  }

  /* Aplica el min-width solo en móvil para forzar el scroll */
  .pricing-table-desktop {
    min-width: 1100px;
  }
}

/* ========================================================== */
/* ===  INDICADOR DE SCROLL: SOLO LA FLECHA SUTIL  === */
/* ========================================================== */
.scroll-hint {
  position: absolute;
  top: clamp(10px, 4vw, 20px);
  right: 16px;
  transform: translateY(0);
  z-index: 10;

  /* --- Apariencia Sutil: SOLO EL ICONO --- */
  display: flex;
  align-items: center;
  justify-content: center;

  /* ¡¡ELIMINAMOS EL CÍRCULO Y EL FONDO!! */
  width: auto;
  /* El ancho se ajusta al contenido (el icono) */
  height: auto;
  /* La altura se ajusta al contenido (el icono) */
  background-color: transparent;
  /* Fondo transparente */
  backdrop-filter: none;
  /* Quitamos el efecto de desenfoque, ya no hay fondo */
  -webkit-backdrop-filter: none;
  border-radius: 0;
  /* No necesitamos bordes redondeados */
  box-shadow: none;
  /* Sin sombra */

  /* Color del icono (la flecha) */
  color: var(--color-accent-primary);
  /* Un gris muy sutil de tu paleta */
  font-size: 32px;
  /* Un poco más grande para que se vea bien sin círculo */

  /* Lógica de visibilidad */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease, color 0.3s ease;
  animation: nudge-right 2s ease-in-out infinite;
}

/* Pequeño cambio al pasar el cursor por encima para dar feedback (opcional) */
.scroll-hint:hover {
  color: var(--color-text-secondary);
  /* Se ilumina un poco al pasar el mouse */
}

/* La animación no cambia sustancialmente, solo afecta la flecha */
@keyframes nudge-right {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }

  100% {
    transform: translateX(0);
  }
}

/* =================================================================== */
/* ===       ESTILOS PREMIUM PARA PÁGINA DE BLOG (blog.html)       === */
/* ===    🔥 VERSIÓN DEFINITIVA CON ANIMACIONES ORQUESTADAS Y     🔥 === */
/* ===                "FUCKING SMOOTH" HOVER EFFECT                === */
/* =================================================================== */

/* --- 1. Sección Hero del Blog (Artículo Destacado) --- */
.blog-hero-section {
  padding-bottom: 4rem;
  background-color: var(--color-bg-light);
}

.blog-hero__card {
  position: relative;
  /* Contexto para el aura */
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--color-bg-secondary-light);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-light-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  /* 👇 LA MAGIA #1: UNA SOLA TRANSICIÓN MAESTRA Y ELEGANTE PARA TODO. */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 👇 LA MAGIA #2: Creamos el "Aura de Foco" con un pseudo-elemento. */
.blog-hero__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--color-accent-primary), 0 0 25px -5px var(--color-accent-primary);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  /* No interfiere con el hover */
}

.blog-hero__card:hover {
  transform: translateY(-12px);
  /* Un levantamiento más pronunciado */
  box-shadow: var(--shadow-light-lg);
}

.blog-hero__card:hover::before {
  opacity: 1;
  /* El aura aparece suavemente */
}

@media (min-width: 992px) {
  .blog-hero__card {
    grid-template-columns: 1.5fr 1fr;
  }
}

.blog-hero__image-wrapper {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.blog-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 👇 SINCRONIZADO: La imagen se anima al mismo ritmo que la tarjeta. */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-hero__card:hover .blog-hero__image {
  transform: scale(1.05);
  /* Un zoom más sutil y elegante */
}

.blog-hero__content {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-hero__tag {
  display: inline-block;
  background: var(--gradient-text);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
  margin-bottom: 1.5rem;
}

.blog-hero__title,
.blog-hero__excerpt,
.author__name,
.author__date {
  /* Transición para cualquier cambio de texto o color, también sincronizada */
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.blog-hero__excerpt {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.blog-hero__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-bg-secondary-light);
  box-shadow: 0 0 0 2px var(--color-accent-primary);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-hero__card:hover .author__avatar {
  transform: scale(1.1);
}

.author__info {
  line-height: 1.4;
}

.author__name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.author__date {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
}

/* --- 2. Sección de Posts Recientes y Filtros --- */
.latest-posts-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.blog-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.filter-button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1.5px solid var(--color-border-light);
  padding: 10px 24px;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.filter-button:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
  background-color: var(--color-accent-subtle-bg);
}

.filter-button.active {
  background: var(--gradient-accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-button-glow);
}

/* --- 3. Grid de Tarjetas de Posts --- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-post-card {
  position: relative;
  /* Contexto para el aura */
  background-color: var(--color-bg-secondary-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-light-md);
  /* 👇 UNA SOLA TRANSICIÓN MAESTRA PARA TODO. */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 👇 El "Aura de Foco" para las tarjetas pequeñas. */
.blog-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--color-accent-primary);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.blog-post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-light-lg);
}

.blog-post-card:hover::before {
  opacity: 1;
  /* Mostramos el aura */
}

.post-card__image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 👇 SINCRONIZADO. */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-post-card:hover .post-card__image {
  transform: scale(1.05);
}

.post-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card__tag {
  display: inline-block;
  background-color: var(--color-accent-subtle-bg);
  color: var(--color-accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.post-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  text-decoration: none;
  /* 👇 SINCRONIZADO. */
  transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-post-card:hover .post-card__title {
  color: var(--color-accent-primary);
}

.post-card__excerpt {
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.post-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border-light);
  padding-top: 1rem;
  margin-top: auto;
}

.post-card__read-more {
  font-weight: 600;
  color: var(--color-accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  /* 👇 SINCRONIZADO. */
  transition: gap 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card__read-more:hover {
  gap: 0.6rem;
}

.post-card__read-more .material-icons {
  font-size: 20px;
  /* 👇 SINCRONIZADO. */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card__read-more:hover .material-icons {
  transform: translateX(4px);
}

/* --- 4. Paginación --- */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 0.5rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 600;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-smooth);
}

.pagination a:hover {
  border-color: var(--color-accent-primary);
  background-color: var(--color-accent-subtle-bg);
  color: var(--color-accent-primary);
}

.pagination .page-item.active a {
  background-color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-light-md);
}

.pagination .page-item.disabled a {
  color: var(--color-text-tertiary);
  pointer-events: none;
  background-color: transparent;
}


/* =================================================================== */
/* ===   🔥 ESTILOS DEFINITIVOS PARA POST INDIVIDUAL (ARTÍCULO) 🔥   === */
/* =================================================================== */

/* --- 1. Encabezado del Artículo (Hero) --- */
.post-header {
  padding-top: 180px;
  padding-bottom: 4rem;
  background-color: var(--color-bg-light);
  text-align: center;
}

.post-header .container {
  max-width: 900px;
  /* Ancho ideal para cabeceras de artículo */
}

.post-header__tag {
  display: inline-block;
  background: var(--gradient-text);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.post-header__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.post-header__excerpt {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
}

.post-header__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.post-header__author-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: color var(--transition-smooth);
}

.post-header__author-link:hover {
  color: var(--color-accent-primary);
}

.author__avatar--small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.meta-item .material-icons {
  font-size: 20px;
}

.post-header__featured-image {
  margin-top: 4rem;
  aspect-ratio: 21 / 9;
  width: 100%;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-light-lg);
}

.post-header__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 2. Cuerpo del Artículo (Layout de 2 columnas) --- */
.post-body-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .post-body-container {
    /* Columna lateral más estrecha, contenido principal más ancho */
    grid-template-columns: 240px 1fr;
    gap: 5rem;
  }
}

/* --- 3. Barra Lateral Fija (TOC y Share) --- */
.post-sidebar {
  position: static;
}

@media (min-width: 1024px) {
  .post-sidebar {
    position: sticky;
    top: 120px;
    /* Espacio para el navbar fijo */
    align-self: start;
    /* Para que el sticky funcione correctamente */
  }
}

/* --- Tabla de Contenidos (TOC) --- */
.post-toc {
  margin-bottom: 3rem;
}

.post-toc__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-tertiary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.post-toc ul {
  list-style: none;
  padding-left: 0;
}

.post-toc li a {
  display: block;
  padding: 0.6rem 0;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 2px solid var(--color-border-light);
  padding-left: 1rem;
  transition: all 0.2s ease;
}

.post-toc li a:hover {
  color: var(--color-accent-primary);
  background-color: var(--color-accent-subtle-bg);
  padding-left: 1.25rem;
}

.post-toc li a.is-active {
  color: var(--color-accent-primary);
  border-left-color: var(--color-accent-primary);
  transform: scale(1.05);
  font-weight: 600;
}

/* --- Botones de Compartir --- */
.post-share__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-tertiary);
  margin-bottom: 1rem;
}

.post-share__buttons {
  display: flex;
  gap: 0.75rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-button svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text-secondary);
  transition: fill 0.2s ease;
}

.share-button:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-primary);
}

.share-button:hover svg {
  fill: var(--color-accent-primary);
}

/* --- 4. Contenido Principal del Artículo --- */
.post-content {
  /* Ancho ideal para la legibilidad del texto */
  max-width: 75ch;
  margin: 0 auto;
}

/* Tipografía del contenido */
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
}

.post-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.6rem);
}

.post-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.post-content a {
  color: var(--color-accent-primary);
  text-decoration: none;
  font-weight: 500;
  background-image: linear-gradient(var(--color-accent-primary), var(--color-accent-primary));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size .3s;
}

.post-content a:hover {
  background-size: 100% 2px;
}

.post-content ul,
.post-content ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.post-content li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

/* Estilos de componentes especiales */
.post-content blockquote {
  border-left: 4px solid var(--color-accent-primary);
  margin: 2.5rem 0;
  padding: 1rem 2rem;
  background-color: var(--color-accent-subtle-bg);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.post-content blockquote p {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0;
}

.post-content figure {
  margin: 2.5rem 0;
}

.post-content figure img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light-md);
}

.post-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
  margin-top: 0.75rem;
}

.post-content pre {
  background-color: #111522;
  /* Mismo fondo que el footer */
  color: #e0e0e0;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 2.5rem 0;
}

.post-content code {
  font-family: inherit;
}

/* --- 5. Caja de Biografía del Autor --- */
.post-author-bio {
  margin-top: 5rem;
  padding: 2.5rem;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .post-author-bio {
    flex-direction: row;
    text-align: left;
  }
}

.author-bio__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--color-accent-primary);
}

.author-bio__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.author-bio__title {
  color: var(--color-accent-primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.author-bio__description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- 6. Sección de Posts Relacionados --- */
.related-posts-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #f8f9fc;
  /* Fondo ligeramente diferente */
}

.related-posts-section .section-title {
  margin-bottom: 4rem;
}