/* ==========================================================================
   Variables Globales (Raíz del Diseño)
   - ESTRUCTURA MODERNA con la PALETA DE COLORES ORIGINAL -
   ========================================================================== */
:root {
  /* Paleta de colores basada en el diseño original */
  --color-primary: #0f3460; /* Azul principal para botones y títulos */
  --color-secondary: #0f0f29; /* Azul oscuro del header/footer original */
  --color-accent: #671244; /* Rojo/púrpura de la barra de navegación original */
  --color-accent-hover: #a62b3f; /* Rojo más brillante para hover de la nav original */
  --color-footer-brand: #ba2e2e; /* Rojo para el texto destacado del footer */
  --color-text: #333333; /* Color de texto principal original */
  --color-body-bg: #f0f0f0; /* Fondo gris claro del body original */
  --color-hero-bg: #e6e6e6; /* Fondo gris del hero original */
  --color-white: #ffffff;
  --color-border: #eeeeee; /* Borde sutil original */
  --color-dropdown-bg: #f9f9f9; /* Fondo del menú desplegable original */
  --color-dropdown-text: #000000;
  --color-dropdown-hover: #f1f1f1;

  /* Variables estructurales y de tipografía (del nuevo diseño) */
  --font-family-base: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.7;
  --container-width: 1200px;
  --spacing-unit: 1rem;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition-speed: 0.3s ease;
}

/* ==========================================================================
   Estilos Base y Reseteo
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Ajustado para el nuevo header */
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Tipografía
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-unit);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

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

/* ==========================================================================
   Clases de Utilidad
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.section-title {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-white);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: #0c2a4d;
  border-color: #0c2a4d;
  color: var(--color-white);
}

.btn-secondary {
  color: var(--color-primary);
  background-color: transparent;
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

:is(.btn, .nav-links a, .dropdown-content a):focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Mejorar estados de focus para botones */
.btn:focus {
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.25);
  outline: none;
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.4);
}

.btn-secondary:focus {
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.25);
}

/* Mejorar visibilidad de botones en cards */
.card .btn {
  min-width: 140px;
  text-align: center;
}

/* Skip to main content link para accesibilidad */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius);
}

.skip-to-main:focus {
  left: 50%;
  transform: translateX(-50%);
  top: 1rem;
}

/* ==========================================================================
   Header y Navegación
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-accent);
  z-index: 1000;
  padding: 0.75rem 0; /* Un poco de padding vertical */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  /* Contenedor del logo */
  background-color: var(--color-white); /* Caja blanca de fondo */
  padding: 0.5rem; /* Espacio dentro de la caja */
  border-radius: 4px; /* Esquinas redondeadas sutiles */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  /* La imagen del logo (el GIF) */
  max-height: 80px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a,
.nav-links .dropbtn {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-white);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border-radius: 5px;
}

.nav-links a:hover,
.nav-links .dropbtn:hover {
  color: var(--color-secondary);
  background-color: var(--color-accent-hover);
  text-decoration: none;
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-dropdown-bg);
  min-width: 250px;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-speed), transform var(--transition-speed),
    visibility var(--transition-speed);
  z-index: 1001; /* Asegura que esté sobre otros elementos */
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  padding: 0.75rem 1.5rem;
  display: block;
  width: 100%;
  white-space: nowrap;
  color: var(--color-dropdown-text);
}

.dropdown-content a:hover {
  background-color: var(--color-dropdown-hover);
}

/* Menú hamburguesa */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--color-white);
}

/* ==========================================================================
   Secciones Específicas
   ========================================================================== */
.hero {
  text-align: center;
  padding: calc(var(--spacing-unit) * 5) 0;
  background: var(--color-hero-bg);
  color: var(--color-text);
}

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

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: var(--spacing-unit) auto calc(var(--spacing-unit) * 2);
}

/* Mini Testimonials Section */
.mini-testimonials-section {
  background: var(--color-white);
  padding: calc(var(--spacing-unit) * 2.5) 0;
  border-bottom: 1px solid var(--color-border);
}

.mini-testimonial-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 2);
  max-width: 1000px;
  margin: 0 auto;
}

.mini-testimonial-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1);
}

.mini-testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  font-style: italic;
  margin: 0;
  quotes: """ """ "'" "'";
}

.mini-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.mini-testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mini-testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.mini-testimonial-company {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
}

.mini-testimonial-cta {
  flex-shrink: 0;
}

.mini-testimonial-cta .btn {
  white-space: nowrap;
}

/* Responsive: Mini Testimonials */
@media (max-width: 768px) {
  .mini-testimonials-section {
    padding: calc(var(--spacing-unit) * 2) 0;
  }

  .mini-testimonial-content {
    flex-direction: column;
    text-align: center;
    gap: calc(var(--spacing-unit) * 1.5);
  }

  .mini-testimonial-text {
    align-items: center;
  }

  .mini-testimonial-author {
    justify-content: center;
  }

  .mini-testimonial-quote {
    font-size: 0.95rem;
  }

  .mini-testimonial-photo {
    width: 42px;
    height: 42px;
  }

  .mini-testimonial-cta .btn {
    width: 100%;
  }
}

/* Banner de Descarga */
.download-banner {
  background-color: var(--color-hero-bg);
  color: var(--color-text);
  text-align: center;
  padding: calc(var(--spacing-unit) * 3) 0;
}

.download-banner h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.download-banner p {
  margin-bottom: 1.5rem;
}

/* Layout de Tarjetas (Cards) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-unit) * 2);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: calc(var(--spacing-unit) * 2);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card p {
  text-align: justify;
}

.card-actions {
  margin-top: auto;
  padding-top: var(--spacing-unit);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* About Us & Follow Us Section */
.about-us-content,
.follow-us-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.follow-us-content img {
  max-width: 120px;
  margin: 0 auto var(--spacing-unit);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
  padding: calc(var(--spacing-unit) * 2) 0;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  opacity: 0.9;
}

.site-footer .footer-brand {
  font-weight: bold;
  color: var(--color-footer-brand);
}

/* ==========================================================================
   Media Queries (Diseño Responsive)
   ========================================================================== */
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-mobile {
    display: none !important;
  }
  #articles .card-grid,
  #resources .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Estilos para el menú móvil desplegado */
/* Estilos para el menú móvil desplegado */
.nav-mobile {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-accent);
  flex-direction: column;
  list-style: none;
  padding: var(--spacing-unit);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* ===== CORRECCIÓN PARA EL SCROLL MÓVIL ===== */
  max-height: calc(
    100vh - 100px
  ); /* Limita la altura a la pantalla menos el header */
  overflow-y: auto; /* Añade scroll vertical solo si es necesario */
}

.nav-mobile .dropdown-content {
  position: static;
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  padding-left: 1.5rem;
  background-color: transparent;
}
.nav-mobile .dropdown-content a {
  padding: 0.5rem 1rem;
  color: var(--color-white);
}
.nav-mobile .dropdown-content a:hover {
  background-color: var(--color-accent-hover);
}

/* ==========================================================================
   Nuevo Footer Multifuncional
   ========================================================================== */
.site-footer {
  background-color: var(--color-white); /* Fondo blanco para el nuevo footer */
  color: var(--color-text);
  padding: calc(var(--spacing-unit) * 3) 0;
  border-top: 1px solid var(--color-border);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil/tablet */
  gap: calc(var(--spacing-unit) * 2.5);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-column .column-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-secondary); /* Títulos de columna más oscuros */
}

.footer-brand-info .logo {
  max-height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 280px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition-speed), color var(--transition-speed);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-primary);
  text-decoration: none;
}

.footer-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column; /* Apilado en móvil */
  align-items: center;
  gap: 1rem;
  padding-top: calc(var(--spacing-unit) * 2);
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--color-text);
  opacity: 0.7;
  transition: opacity var(--transition-speed), color var(--transition-speed);
}
.footer-socials a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

/* Y ahora, busca la Media Query @media (min-width: 992px) y añade esto dentro */
@media (min-width: 992px) {
  .footer-main {
    grid-template-columns: 2fr 1fr 1fr 1fr; /* 4 columnas en escritorio */
  }
  .footer-bottom {
    flex-direction: row; /* En línea en escritorio */
    justify-content: space-between;
  }
}

/* ==========================================================================
   Sección de Promoción del Dashboard (Nuevo)
   ========================================================================== */
.dashboard-promo-section {
  background-color: var(
    --color-secondary
  ); /* Usamos el azul oscuro para destacar */
  color: var(--color-white);
  padding: calc(var(--spacing-unit) * 4) 0;
}

.dashboard-promo-section h2 {
  color: var(--color-white);
}

.dashboard-promo-content {
  display: grid;
  grid-template-columns: 1fr; /* Una columna en móvil */
  gap: calc(var(--spacing-unit) * 3);
  align-items: center;
}

.dashboard-promo-text p {
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.dashboard-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}

.dashboard-features .icon {
  flex-shrink: 0;
  width: 22px;
  min-width: 22px; /* <-- Esta es la línea clave de la corrección */
  height: 22px;
  color: var(--color-footer-brand);
  margin-top: 2px;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-secondary);
  font-weight: 600;
  border: 2px solid var(--color-white);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--color-white);
}

.dashboard-visual {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-visual img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Y ahora, busca la Media Query @media (min-width: 992px) y añade esto dentro */
@media (min-width: 992px) {
  .dashboard-promo-content {
    grid-template-columns: 1.2fr 1fr; /* Dos columnas en escritorio, texto un poco más ancho */
  }
}
/* ==========================================================================
   Sección de Promoción de la Herramienta de Evaluación (Nuevo)
   ========================================================================== */
.tool-promo-section {
  background-color: var(--color-white); /* Fondo blanco para destacar */
}

.tool-promo-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-unit) * 3);
  align-items: center;
}

.tool-promo-visual img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
}

.tool-promo-text h2 {
  margin-bottom: 1rem;
}

.tool-promo-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 550px; /* Limita el ancho de línea para mejor legibilidad */
  margin-bottom: 2rem;
}

/* Ahora, busca la Media Query @media (min-width: 992px) y añade esto dentro */
@media (min-width: 992px) {
  .tool-promo-content {
    grid-template-columns: 1fr 1.1fr; /* Dos columnas: imagen a la izquierda, texto a la derecha */
  }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 1.5rem 0;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  white-space: nowrap;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-speed),
    box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #c3e6cb;
  margin-bottom: 1rem;
}

.form-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #f5c6cb;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Testimonials Section - Carrusel de Testimonios (Compacto y Sobrio)
   ========================================================================== */
.testimonials-section {
  background: transparent;
  padding: 2rem 0;
  position: relative;
}

.testimonials-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.testimonial-card {
  min-width: 100%;
  background: transparent;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card.active {
  opacity: 1;
}

.testimonial-quote {
  display: none;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  font-style: italic;
  max-width: 600px;
}

.testimonial-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.testimonial-author-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.testimonial-author a .testimonial-author-photo {
  cursor: pointer;
}

.testimonial-author a:hover .testimonial-author-photo {
  transform: scale(1.05);
  opacity: 0.9;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
}

.testimonial-author-role {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.testimonial-company {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.testimonial-company a {
  display: inline-block;
  text-decoration: none;
  transition: transform var(--transition-speed);
}

.testimonial-company a:hover {
  transform: scale(1.05);
}

.testimonial-company-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--transition-speed);
}

.testimonial-company a:hover .testimonial-company-logo {
  opacity: 1;
}

.testimonial-company-name {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Controles del carrusel - Minimalistas */
.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.testimonials-nav-button {
  background: transparent;
  border: 1px solid #ddd;
  color: var(--color-text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-size: 1rem;
  font-weight: 400;
}

.testimonials-nav-button:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.testimonials-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.testimonials-nav-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.testimonials-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.testimonials-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  padding: 0;
}

.testimonials-dot.active {
  background: var(--color-primary);
  width: 8px;
  height: 8px;
}

.testimonials-dot:hover:not(.active) {
  background: #bbb;
}

.testimonials-dot:focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 1.5rem 0;
  }

  .testimonial-card {
    padding: 1rem 0.75rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .testimonial-author-photo {
    width: 45px;
    height: 45px;
  }

  .testimonials-nav-button {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}

/* Accesibilidad: Animación reducida */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    transition: none;
  }

  .testimonial-card {
    transition: opacity 0.2s ease;
  }

  .testimonials-nav-button:hover:not(:disabled) {
    transform: none;
  }
}

/* ==========================================================================
   Team Testimonials Section - Testimonials de Empleados (Compacto)
   ========================================================================== */
.team-testimonials {
  margin-top: calc(var(--spacing-unit) * 3);
  padding-top: calc(var(--spacing-unit) * 2.5);
  border-top: 1px solid var(--color-border);
}

.team-testimonials-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: calc(var(--spacing-unit) * 2);
  text-align: center;
  font-weight: 600;
}

.team-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  max-width: 900px;
  margin: 0 auto;
}

.team-testimonial-card {
  background: transparent;
  padding: calc(var(--spacing-unit) * 1.5);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.team-testimonial-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: calc(var(--spacing-unit) * 1.25);
  font-style: italic;
}

.team-testimonial-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.team-testimonial-photo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.team-testimonial-author a .team-testimonial-photo {
  cursor: pointer;
}

.team-testimonial-author a:hover .team-testimonial-photo {
  transform: scale(1.05);
  opacity: 0.9;
}

.team-testimonial-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.team-testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
}

.team-testimonial-role {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin: 0;
  font-weight: 500;
}

/* Responsive: Team Testimonials */
@media (max-width: 768px) {
  .team-testimonials {
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: calc(var(--spacing-unit) * 2);
  }

  .team-testimonials-title {
    font-size: 1.25rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }

  .team-testimonials-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 1.5);
  }

  .team-testimonial-card {
    padding: calc(var(--spacing-unit) * 1.25);
  }

  .team-testimonial-text {
    font-size: 0.85rem;
  }

  .team-testimonial-photo {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Client Testimonials Wrapper (dentro de Our Team)
   ========================================================================== */
.client-testimonials-wrapper {
  margin-top: calc(var(--spacing-unit) * 3);
  padding-top: calc(var(--spacing-unit) * 2.5);
  border-top: 1px solid var(--color-border);
}

.client-testimonials-wrapper .testimonials-container {
  max-width: 700px;
  margin: 0 auto;
}
