/* Colores principales */
:root {
  --color-negro: #061400;
  --color-amarillo: #D8D900;
  --color-verde: #1DB954; /* Verde sugerido, puedes ajustar */
}

.bg-negro { background-color: var(--color-negro); }
.text-negro { color: var(--color-negro); }
.bg-amarillo { background-color: var(--color-amarillo); }
.text-amarillo { color: var(--color-amarillo); }
.bg-verde { background-color: var(--color-verde); }
.text-verde { color: var(--color-verde); }

/* Icono amarillo específico */
.icono-amarillo {
  background: linear-gradient(135deg, #D8D900 0%, #E6E400 100%) !important;
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Botones corporativos */
.btn-amarillo {
  background-color: #D8D900 !important;
  color: #061400 !important;
  display: inline-block !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.btn-amarillo:hover {
  background-color: #D8D900 !important;
  opacity: 0.9 !important;
  transform: scale(1.05) !important;
}

.amarillo-corp {
  background-color: #D8D900 !important;
  color: #061400 !important;
}

.text-amarillo-corp {
  color: #D8D900 !important;
}

.border-amarillo-corp {
  border-color: #D8D900 !important;
}

/* ELIMINACIÓN COMPLETA DE EFECTOS BLANCOS TOSCOS EN SERVICIOS */
.servicio-card * {
  background-image: none !important;
}

.servicio-card .absolute.inset-0:not(.servicio-overlay) {
  display: none !important;
}

/* Específico para el grupo de Tailwind que puede estar causando el problema */
.servicio-card .group .absolute.inset-0.bg-gradient-to-r {
  display: none !important;
}

.servicio-card .group:hover .absolute.inset-0.bg-gradient-to-r {
  display: none !important;
}

/* Eliminar cualquier efecto de brillo blanco */
.servicio-card .absolute.inset-0.bg-gradient-to-r.from-transparent.via-white {
  display: none !important;
}

.servicio-card .group:hover .absolute.inset-0 {
  background: none !important;
  background-image: none !important;
}

/* SISTEMA DE SERVICIOS HOVER LIMPIO Y DEFINITIVO */
.servicio-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  animation: none !important;
}

/* Eliminar cualquier efecto de destello */
.servicio-card::before,
.servicio-card::after {
  content: none !important;
  display: none !important;
}

/* Hover principal - minimalista y elegante */
.servicio-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(216, 217, 0, 0.2) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* FONDO OSCURO PARA CONTRASTE PERFECTO */
.servicio-overlay {
  background: rgba(0, 0, 0, 0.6) !important;
  transition: background 0.15s ease !important;
}

.servicio-card:hover .servicio-overlay {
  background: rgba(0, 0, 0, 0.6) !important;
}

/* TEXTO LIMPIO SIN EFECTOS ANTIGUOS */
.servicio-title {
  color: white !important;
  position: relative;
  transition: none !important;
}

.servicio-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #D8D900;
  transition: width 0.2s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.servicio-card:hover .servicio-title::after {
  width: 50px;
}

.servicio-card .text-lg,
.servicio-card .text-base,
.servicio-list li {
  color: #ffffff !important;
  transition: none !important;
}

.servicio-list li {
  position: relative;
  padding-left: 20px;
}

.servicio-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0;
  color: #D8D900;
  font-size: 1.1em;
  transition: none !important;
}

/* ICONO SIMPLE */
.servicio-icon {
  transition: transform 0.15s ease !important;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.03) translateY(-2px) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fffbcc 100%) !important;
  box-shadow: 0 6px 12px rgba(216, 217, 0, 0.15) !important;
}

.servicio-card:hover .servicio-icon svg {
  color: #D8D900 !important;
  filter: drop-shadow(0 1px 2px rgba(216, 217, 0, 0.3)) !important;
}

/* IMÁGENES SIMPLES */
.servicio-card img {
  display: block !important;
  opacity: 1 !important;
  transition: none !important;
}

/* CONTENIDO SIN EFECTOS INNECESARIOS */
.servicio-content {
  position: relative;
  z-index: 20;
  transition: none !important;
}

/* ELIMINAR EFECTOS CONFLICTIVOS DEFINITAMENTE */
.servicio-card .bg-gradient-to-r,
.servicio-card .bg-gradient-to-br,
.servicio-card .group:hover .absolute.inset-0:not(.servicio-overlay) {
  display: none !important;
}

/* Asegurar que las imágenes sean visibles */
.servicio-card .absolute.inset-0:not(.servicio-overlay) {
  display: block !important;
}

.servicio-card img.absolute.inset-0 {
  display: block !important;
  opacity: 1 !important;
}

/* Iconos circulares en segunda fila */
.servicio-card-wide .servicio-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: white !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.servicio-card-wide .servicio-icon svg {
  width: 32px !important;
  height: 32px !important;
  margin: 0 auto !important;
}

/* Responsive - efectos más sutiles en móviles */
@media (max-width: 768px) {
  .servicio-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1) !important;
  }
  
  .servicio-title::after {
    display: none;
  }
}

/* Efectos para la segunda fila - MÁS SIMPLES */
.servicio-card-wide {
  position: relative;
  min-height: 350px !important;
  max-height: 350px !important;
}

.servicio-card-wide::after {
  display: none !important;
}

/* Animación de entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.servicio-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.servicio-card:nth-child(1) { animation-delay: 0.1s; }
.servicio-card:nth-child(2) { animation-delay: 0.2s; }
.servicio-card:nth-child(3) { animation-delay: 0.3s; }
.servicio-card:nth-child(4) { animation-delay: 0.4s; }

/* Efecto de pulso en los iconos más sutil */
@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Animaciones de entrada */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Aplicar animaciones con observer */
.about-content {
  animation: slideInLeft 0.8s ease-out;
}

.about-features {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

/* ANIMACIONES PARA TÍTULOS Y ELEMENTOS DE "SOBRE NOSOTROS" */
@keyframes gradient-text {
  0%, 100% { 
    background-position: 0% 50%;
  }
  50% { 
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-text 4s ease-in-out infinite;
}

/* Animación de pulso personalizada */
@keyframes pulse-custom {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.animate-pulse {
  animation: pulse-custom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Efecto de partículas sutiles con movimiento */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(216, 217, 0, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(6, 20, 0, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

/* Animación para elementos con movimiento vertical */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) translateX(0px);
  }
  25% { 
    transform: translateY(-10px) translateX(5px);
  }
  50% { 
    transform: translateY(-20px) translateX(0px);
  }
  75% { 
    transform: translateY(-10px) translateX(-5px);
  }
}

/* Animación para líneas decorativas */
@keyframes expand-line {
  0% { 
    width: 0%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% { 
    width: 100%;
    opacity: 1;
  }
}

.animate-expand {
  animation: expand-line 3s ease-in-out infinite;
}

/* Animaciones para la sección CTA */
@keyframes bounce-slow {
  0%, 100% { 
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% { 
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes expand {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-bounce-slow {
  animation: bounce-slow 3s infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 3s ease infinite;
}

.animate-expand {
  animation: expand 2s ease-in-out infinite alternate;
}

.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}

/* Efectos de los botones CTA */
.border-3 {
  border-width: 3px;
}

/* Hover effects para los botones */
@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(100%) skewX(-15deg); }
}

/* Animación para la palabra "transformar" */
@keyframes transform-pulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  }
  25% { 
    transform: scale(1.05) rotate(0.5deg);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
  }
  50% { 
    transform: scale(1.08) rotate(-0.5deg);
    text-shadow: 4px 4px 8px rgba(0,0,0,0.5);
  }
  75% { 
    transform: scale(1.05) rotate(0.3deg);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
  }
}

/* Slider de logos con movimiento continuo */
.logos-carousel {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: white;
  padding: 20px 0;
}

.logos-track {
  display: inline-flex;
  animation: scroll-left 40s linear infinite;
  align-items: center;
  gap: 2rem;
  width: max-content;
}

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

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 90px;
  padding: 10px;
}

.logo-item img {
  max-height: 70px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}

.logo-item:hover img {
  transform: scale(1.05);
}

/* Gradientes de fade mejorados */
.logos-carousel::before,
.logos-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
  pointer-events: none;
}

.logos-carousel::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.logos-carousel::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

/* Slider de proyectos - CORREGIDO COMPLETAMENTE SIN BUGS */
.proyectos-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
  min-height: 70vh;
  margin: 0;
}

.proyectos-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 70vh;
  width: 800%; /* 8 slides x 100% cada uno */
}

.proyecto-slide {
  width: 12.5%; /* 100% / 8 slides = 12.5% */
  min-width: 12.5%;
  max-width: 12.5%;
  display: flex;
  align-items: stretch;
  position: relative;
  flex-shrink: 0;
  height: 100%;
}

.proyecto-image {
  width: 60%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  display: block;
}

.proyecto-slide.active .proyecto-image {
  transform: scale(1.02);
}

.proyecto-content {
  width: 40%;
  padding: 3rem;
  color: white;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(6, 20, 0, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
}

.proyecto-category {
  font-size: 0.875rem;
  color: #D8D900;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.proyecto-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
}

.proyecto-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #e5e5e5;
  margin-bottom: 2rem;
}

.proyecto-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.proyecto-meta-item {
  display: flex;
  flex-direction: column;
}

.proyecto-meta-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.proyecto-meta-value {
  font-size: 0.875rem;
  color: white;
  font-weight: 600;
}

/* Controles de navegación */
.proyectos-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: flex-start;
  opacity: 1;
  visibility: visible;
}

.nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(216, 217, 0, 0.1);
  border: 2px solid rgba(216, 217, 0, 0.3);
  border-radius: 8px;
  color: #D8D900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(216, 217, 0, 0.2);
  border-color: #D8D900;
  transform: scale(1.1);
}

.nav-btn:active {
  transform: scale(0.95);
}

/* Vista previa de thumbnails - POSICIONADO CORRECTAMENTE */
.proyectos-thumbnails {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 30;
  max-width: calc(100% - 4rem);
  overflow-x: auto;
  padding: 0 1rem;
  /* Ocultar scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.proyectos-thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  min-width: 120px;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  opacity: 0.6;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  background: #000;
}

.thumbnail:hover {
  transform: translateY(-5px);
  opacity: 0.8;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.thumbnail.active {
  border-color: #D8D900;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(216, 217, 0, 0.5);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail:hover img {
  transform: scale(1.1);
}

.thumbnail-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: white;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Responsive para el slider de proyectos - COMPLETAMENTE CORREGIDO */
@media (max-width: 768px) {
  .proyectos-slider-container {
    min-height: 100vh;
    max-height: none;
  }
  
  .proyectos-container {
    height: 100vh;
    width: 800%; /* Mantener el mismo cálculo para móviles */
  }
  
  .proyecto-slide {
    width: 12.5%; /* Mantener el mismo porcentaje */
    min-width: 12.5%;
    max-width: 12.5%;
    flex-direction: column;
    height: 100vh;
  }
  
  .proyecto-image {
    width: 100%;
    height: 50%;
    object-fit: cover;
  }
  
  .proyecto-content {
    width: 100%;
    height: 50%;
    padding: 1.5rem;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.97) 0%, rgba(6, 20, 0, 0.95) 100%);
  }
  
  .proyecto-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .proyecto-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .proyecto-category {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .proyecto-meta {
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-direction: column;
  }
  
  .proyecto-meta-item {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .proyecto-meta-label {
    font-size: 0.7rem;
    margin-bottom: 0;
    min-width: 60px;
  }
  
  .proyecto-meta-value {
    font-size: 0.8rem;
  }
  
  /* Navegación en móvil */
  .proyectos-nav {
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 25;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(216, 217, 0, 0.5);
    backdrop-filter: blur(10px);
  }
  
  /* Thumbnails más accesibles en móvil */
  .proyectos-thumbnails {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 0.5rem;
    padding: 0.5rem;
    max-width: calc(100% - 2rem);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
  
  .thumbnail {
    min-width: 60px;
    width: 60px;
    height: 45px;
    border-radius: 6px;
  }
  
  .thumbnail-info {
    font-size: 0.6rem;
    padding: 0.25rem;
  }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 480px) {
  .proyectos-slider-container {
    min-height: 90vh;
  }
  
  .proyectos-container {
    height: 90vh;
  }
  
  .proyecto-slide {
    height: 90vh;
  }
  
  .proyecto-image {
    height: 45%;
  }
  
  .proyecto-content {
    height: 55%;
    padding: 1rem;
  }
  
  .proyecto-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .proyecto-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .proyecto-meta {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .proyecto-meta-item {
    gap: 0.25rem;
  }
  
  .proyecto-meta-label {
    min-width: 50px;
    font-size: 0.65rem;
  }
  
  .proyecto-meta-value {
    font-size: 0.75rem;
  }
  
  /* Navegación más pequeña */
  .proyectos-nav {
    top: 0.5rem;
    right: 0.5rem;
    gap: 0.5rem;
  }
  
  .nav-btn {
    width: 35px;
    height: 35px;
  }
  
  /* Thumbnails más pequeñas */
  .proyectos-thumbnails {
    bottom: 0.5rem;
    gap: 0.25rem;
    padding: 0.25rem;
    max-width: calc(100% - 1rem);
  }
  
  .thumbnail {
    min-width: 50px;
    width: 50px;
    height: 35px;
    border-radius: 4px;
  }
  
  .thumbnail-info {
    font-size: 0.55rem;
    padding: 0.125rem;
  }
}

/* Mejoras adicionales para touch en móvil */
@media (max-width: 768px) {
  .proyecto-slide {
    touch-action: pan-y;
  }
  
  .proyectos-container {
    touch-action: pan-x;
  }
  
  .nav-btn {
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  .thumbnail {
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Mejorar la legibilidad del texto en móvil */
  .proyecto-content {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  }
  
  .proyecto-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  }
  
  /* Scroll suave en el contenido del proyecto */
  .proyecto-content {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
}

/* Orientación landscape en móvil */
@media (max-width: 768px) and (orientation: landscape) {
  .proyectos-slider-container {
    min-height: 100vh;
  }
  
  .proyectos-container {
    height: 100vh;
  }
  
  .proyecto-slide {
    flex-direction: row;
    height: 100vh;
  }
  
  .proyecto-image {
    width: 60%;
    height: 100%;
  }
  
  .proyecto-content {
    width: 40%;
    height: 100%;
    padding: 1rem;
  }
  
  .proyecto-title {
    font-size: 1.25rem;
  }
  
  .proyecto-description {
    font-size: 0.85rem;
  }
}

/* Efectos de transición suaves CORREGIDOS */
.proyecto-slide {
  opacity: 0.7;
  transition: opacity 0.6s ease;
}

.proyecto-slide.active {
  opacity: 1;
}

.proyecto-content > * {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease;
}

.proyecto-slide.active .proyecto-content > * {
  transform: translateY(0);
  opacity: 1;
}

.proyecto-slide.active .proyecto-content .proyecto-category {
  transition-delay: 0.1s;
}

.proyecto-slide.active .proyecto-content .proyecto-title {
  transition-delay: 0.2s;
}

.proyecto-slide.active .proyecto-content .proyecto-description {
  transition-delay: 0.3s;
}

.proyecto-slide.active .proyecto-content .proyecto-meta {
  transition-delay: 0.4s;
}

/* Asegurar que no haya interferencias con otros elementos */
.proyectos-slider-container * {
  box-sizing: border-box;
}

.proyectos-container {
  will-change: transform;
}

/* Hero mejorado - TAMAÑO DINÁMICO Y VIDEO OPTIMIZADO */
#hero {
  position: relative;
  overflow: hidden;
  /* Removido height y min-height fijos */
  /* Removido display flex y align-items que conflictúan */
}

/* Video de fondo optimizado - CUBRE COMPLETAMENTE */
#hero .absolute.inset-0 iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140vw;
  height: 140vh;
  min-width: 140%;
  min-height: 140%;
  object-fit: cover;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: brightness(0.7) contrast(1.1);
}

/* Overlay oscuro */
#hero .absolute.inset-0 .absolute.inset-0 {
  background: rgba(0, 0, 0, 0.7);
  z-index: 10;
}

/* Contenido del hero - DINÁMICO */
#hero .relative.z-20 {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 4rem 0; /* Base padding que escala */
}

/* Asegurar que el contenido sea visible sobre el video */
#hero .max-w-7xl {
  position: relative;
  z-index: 20;
  width: 100%;
}

/* Grid responsive mejorado */
#hero .grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  #hero .grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Responsive escalado para diferentes dispositivos */
@media (min-width: 640px) {
  #hero .relative.z-20 {
    padding: 5rem 0;
  }
}

@media (min-width: 768px) {
  #hero .relative.z-20 {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  #hero .relative.z-20 {
    padding: 8rem 0;
  }
}

@media (min-width: 1280px) {
  #hero .relative.z-20 {
    padding: 10rem 0;
  }
}

/* Responsive para tablets */
@media (max-width: 768px) {
  #hero .relative.z-20 {
    padding: 3rem 0;
    text-align: center;
  }
  
  #hero .grid {
    text-align: center;
    justify-items: center;
    gap: 1.5rem;
  }
  
  #hero h1 {
    font-size: 2.25rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }
  
  #hero p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  
  #hero .inline-block {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 1.5rem !important;
    display: inline-block !important;
    text-align: center !important;
  }
  
  #hero .flex.flex-col {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: center;
  }
  
  #hero .flex.flex-col a {
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    text-align: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
  
  /* Estadísticas en móvil - más compactas y centradas */
  #hero .grid.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  #hero .grid.grid-cols-2 > div {
    padding: 0.75rem !important;
    min-height: auto !important;
    text-align: center !important;
  }
  
  #hero .grid.grid-cols-2 .text-4xl {
    font-size: 1.875rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  #hero .grid.grid-cols-2 .text-lg {
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
  }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  #hero .relative.z-20 {
    padding: 2rem 0;
    text-align: center;
  }
  
  #hero h1 {
    font-size: 1.875rem !important;
    margin-bottom: 0.75rem !important;
    text-align: center !important;
  }
  
  #hero p {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }
  
  #hero .inline-block {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
    margin-bottom: 1rem !important;
  }
  
  #hero .flex.flex-col {
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
  }
  
  #hero .flex.flex-col a {
    font-size: 0.9rem !important;
    padding: 0.625rem 1.25rem !important;
  }
  
  /* Estadísticas en móvil pequeño */
  #hero .grid.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  #hero .grid.grid-cols-2 > div {
    padding: 0.5rem !important;
    text-align: center !important;
  }
  
  #hero .grid.grid-cols-2 .text-4xl {
    font-size: 1.5rem !important;
  }
  
  #hero .grid.grid-cols-2 .text-lg {
    font-size: 0.75rem !important;
  }
}

/* Testimonios rediseñados - Estilo moderno */
.testimonios-section {
  position: relative;
  background: #f9fafb !important;
}

/* Forzar fondo claro en testimonios */
section.testimonios-section {
  background-color: #f9fafb !important;
  background-image: none !important;
}

/* Asegurar que todos los textos sean oscuros en fondo claro */
.testimonios-section h2,
.testimonios-section p,
.testimonios-section span {
  color: #111827 !important;
}

.testimonios-section .text-gray-600 {
  color: #4b5563 !important;
}

.testimonios-section .text-yellow-600 {
  color: #D8D900 !important;
}

/* Grid de testimonios - Asegurar que funcione */
.testimonios-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  min-height: 400px;
}

/* Responsive del grid */
@media (max-width: 1024px) {
  .testimonios-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Cards del testimonio */
.testimonio-card-principal {
  grid-column: span 8;
  transform-style: preserve-3d;
}

.testimonio-card-secundario {
  grid-column: span 4;
  transform-style: preserve-3d;
}

.stats-card {
  grid-column: span 6;
  transform-style: preserve-3d;
}

.cta-card {
  grid-column: span 6;
  transform-style: preserve-3d;
}

/* En móvil todas ocupan full width */
@media (max-width: 1024px) {
  .testimonio-card-principal,
  .testimonio-card-secundario,
  .stats-card,
  .cta-card {
    grid-column: span 1;
  }
}

/* NAVEGACIÓN MEJORADA PARA MÓVIL */
.testimonios-prev-new, .testimonios-next-new {
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(216,217,0,0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonios-prev-new:active, .testimonios-next-new:active {
  transform: scale(0.95);
}

/* Navegación específica para móvil */
@media (max-width: 768px) {
  .testimonios-prev-new, .testimonios-next-new {
    width: 50px !important;
    height: 50px !important;
    background: #D8D900 !important;
    color: #061400 !important;
    border: 2px solid #D8D900 !important;
    border-radius: 50% !important;
    font-size: 1.25rem !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(216, 217, 0, 0.4) !important;
  }
  
  .testimonios-prev-new:hover, .testimonios-next-new:hover {
    background: #E6E400 !important;
    border-color: #E6E400 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(216, 217, 0, 0.6) !important;
  }
  
  /* Contenedor de navegación más espacioso */
  .flex.justify-center.items-center.space-x-6 {
    gap: 2rem !important;
    margin-top: 2rem !important;
    padding: 1rem !important;
  }
}

/* Dots más grandes y visibles en móvil */
.testimonios-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.testimonios-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(216, 217, 0, 0.3);
  border: 2px solid rgba(216, 217, 0, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.testimonios-dots .dot.activo {
  background: #D8D900;
  border-color: #D8D900;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(216, 217, 0, 0.5);
}

.testimonios-dots .dot:hover:not(.activo) {
  background: rgba(216, 217, 0, 0.6);
  transform: scale(1.1);
}

/* Dots más grandes en móvil */
@media (max-width: 768px) {
  .testimonios-dots {
    gap: 1rem;
    margin: 0 1rem;
  }
  
  .testimonios-dots .dot {
    width: 16px !important;
    height: 16px !important;
    border-width: 3px !important;
  }
  
  .testimonios-dots .dot.activo {
    transform: scale(1.4) !important;
    box-shadow: 0 0 20px rgba(216, 217, 0, 0.7) !important;
  }
}

/* Indicador visual de deslizamiento en móvil */
@media (max-width: 768px) {
  .testimonios-section::before {
    content: '👆 Desliza o usa las flechas para ver más testimonios';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(216, 217, 0, 0.9);
    color: #061400;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    z-index: 100;
    animation: fadeInOut 4s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  50% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Swipe gesture visual en móvil */
@media (max-width: 768px) {
  .testimonios-grid {
    position: relative;
    touch-action: pan-x;
  }
  
  .testimonios-grid::after {
    content: '⬅️ ➡️';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.3;
    animation: bounce 2s ease-in-out infinite;
    pointer-events: none;
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(5px); }
}

/* Animación de entrada */
.testimonios-grid > div {
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.testimonios-grid > div:nth-child(1) { animation-delay: 0.1s; }
.testimonios-grid > div:nth-child(2) { animation-delay: 0.2s; }
.testimonios-grid > div:nth-child(3) { animation-delay: 0.3s; }
.testimonios-grid > div:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

/* Efecto de typing para el texto del header */
.animate-expand {
  animation: expand 3s ease-in-out infinite;
}

@keyframes expand {
  0%, 100% { width: 0%; }
  50% { width: 100%; }
}

/* Fallbacks para asegurar compatibilidad */
.bg-gradient-to-br {
  background: linear-gradient(135deg, var(--tw-gradient-stops, #D8D900, #B8B900));
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Asegurar que el texto sea visible */
.testimonio-card-principal .text-gray-800 {
  color: #1f2937 !important;
}

.testimonio-card-secundario .texto-negro {
  color: #061400 !important;
}

.stats-card .text-white {
  color: white !important;
}

.cta-card .texto-negro {
  color: #061400 !important;
}

/* Forzar visibility de las cards */
.testimonio-card-principal,
.testimonio-card-secundario,
.stats-card,
.cta-card {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Grid con flexbox como fallback */
@supports not (display: grid) {
  .testimonios-grid {
    display: flex;
    flex-wrap: wrap;
  }
  
  .testimonio-card-principal {
    flex: 0 0 66.66%;
  }
  
  .testimonio-card-secundario {
    flex: 0 0 33.33%;
  }
  
  .stats-card,
  .cta-card {
    flex: 0 0 50%;
  }
}

/* Debug temporal - remover después */
.testimonios-grid > div {
  border: 1px solid rgba(216, 217, 0, 0.2);
  min-height: 280px;
}

/* Asegurar spacing correcto */
.testimonios-grid {
  width: 100%;
  max-width: none;
}

/* Override de Tailwind - corregido */
.testimonios-grid .col-span-8 {
  grid-column: span 8 / span 8;
}

.testimonios-grid .col-span-4 {
  grid-column: span 4 / span 4;
}

.testimonios-grid .col-span-6 {
  grid-column: span 6 / span 6;
}

/* Asegurar que el grid de testimonios funcione */
.testimonios-grid.loaded {
  opacity: 1;
}

.testimonios-grid > div {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Estilos específicos para el sistema rediseñado */
.testimonio-preview {
  cursor: pointer;
}

.testimonio-preview:hover {
  transform: translateY(-2px);
}

/* Asegurar que las transiciones de contenido dinámico funcionen */
#testimonioTexto,
#testimonioNombre,
#testimonioCargo,
#testimonioEmpresa,
#previewTexto,
#previewNombre,
#previewEmpresa {
  transition: opacity 0.3s ease;
}

#testimonioAvatar,
#previewAvatar {
  transition: transform 0.3s ease;
}

/* Override de estilos conflictivos */
.testimonios-section .texto-negro {
  color: #061400 !important;
}

/* Asegurar que los dots sean visibles */
.testimonios-dots .dot {
  display: block !important;
  min-width: 8px !important;
  min-height: 8px !important;
}

/* Cambio específico solicitado */
.absolute.inset-0.bg-gradient-to-br.from-white\/10.to-transparent {
    background: #D8D900 !important;
}

/* ANIMACIONES ADICIONALES PARA LA SECCIÓN ABOUT */

/* Elementos decorativos de fondo con movimiento */
.about-section .absolute.top-0.left-0 {
  animation: float-left 12s ease-in-out infinite;
}

.about-section .absolute.bottom-0.right-0 {
  animation: float-right 15s ease-in-out infinite 2s;
}

@keyframes float-left {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  25% { 
    transform: translateY(-15px) translateX(10px) scale(1.02);
  }
  50% { 
    transform: translateY(-25px) translateX(0px) scale(1.05);
  }
  75% { 
    transform: translateY(-15px) translateX(-10px) scale(1.02);
  }
}

@keyframes float-right {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% { 
    transform: translateY(20px) translateX(-15px) scale(0.98);
  }
  66% { 
    transform: translateY(-10px) translateX(15px) scale(1.03);
  }
}

/* Animaciones para las tarjetas de características */
.about-features .group:nth-child(1) {
  animation: slideInRight 0.8s ease-out 0.3s both;
}

.about-features .group:nth-child(2) {
  animation: slideInRight 0.8s ease-out 0.4s both;
}

.about-features .group:nth-child(3) {
  animation: slideInRight 0.8s ease-out 0.5s both;
}

/* Animación mejorada para el icono amarillo */
.icono-amarillo {
  background: linear-gradient(135deg, #D8D900 0%, #E6E400 100%) !important;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 4px 8px rgba(216, 217, 0, 0.2);
  }
  50% { 
    box-shadow: 0 4px 16px rgba(216, 217, 0, 0.4);
  }
}

/* Efecto hover mejorado para las tarjetas */
.about-features .group:hover {
  transform: translateY(-8px) scale(1.02);
}

.about-features .group:hover .w-14.h-14 {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 8px 16px rgba(216, 217, 0, 0.3);
}

/* MENÚ MÓVIL LATERAL - 90% ANCHO */
#menu-overlay {
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

#menu-overlay.opacity-100 {
  opacity: 1;
}

#mobile-menu {
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  max-width: 400px; /* Máximo en pantallas grandes */
}

/* Animaciones para el contenido del menú */
#mobile-menu .space-y-4 > a {
  opacity: 0;
  transform: translateX(20px);
  animation: slideInMenuItem 0.3s ease-out forwards;
}

#mobile-menu .space-y-4 > a:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu .space-y-4 > a:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu .space-y-4 > a:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu .space-y-4 > a:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu .space-y-4 > a:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInMenuItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estilos para los elementos del menú */
#mobile-menu a {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

#mobile-menu a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(216, 217, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

#mobile-menu a:hover::before {
  left: 100%;
}

/* Botón CTA especial */
#mobile-menu .mt-auto a {
  position: relative;
  overflow: hidden;
}

#mobile-menu .mt-auto a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transition: all 0.6s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#mobile-menu .mt-auto a:hover::after {
  width: 300px;
  height: 300px;
}

/* Responsive para diferentes tamaños */
@media (max-width: 480px) {
  #mobile-menu {
    width: 95% !important;
    max-width: none;
  }
  
  #mobile-menu .p-6 {
    padding: 1rem !important;
  }
  
  #mobile-menu .space-y-6 {
    gap: 1rem !important;
  }
}

@media (max-width: 320px) {
  #mobile-menu {
    width: 100% !important;
  }
}

/* Mejoras para accesibilidad */
#menu-toggle:focus,
#menu-close:focus {
  outline: 2px solid #D8D900;
  outline-offset: 2px;
}

/* Transiciones suaves para el toggle del botón */
#menu-toggle svg,
#menu-close svg {
  transition: transform 0.2s ease;
}

#menu-toggle:hover svg,
#menu-close:hover svg {
  transform: scale(1.1);
}

/* Estado activo del overlay */
body.menu-open {
  overflow: hidden;
}

/* Efectos adicionales para el header del menú */
#mobile-menu .border-b {
  position: relative;
}

#mobile-menu .border-b::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D8D900, transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Scroll personalizado para el contenido del menú */
#mobile-menu .overflow-y-auto::-webkit-scrollbar {
  width: 4px;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-track {
  background: transparent;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb {
  background: rgba(216, 217, 0, 0.3);
  border-radius: 2px;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(216, 217, 0, 0.5);
}

/* Efectos hover mejorados */
.testimonio-card-principal:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(2deg);
}

.testimonio-card-secundario:hover {
  transform: translateY(-8px) rotateX(-3deg) rotateY(-2deg);
}

.stats-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.cta-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Contenido interno de las cards */
.testimonio-card-principal > div,
.testimonio-card-secundario > div,
.stats-card > div,
.cta-card > div {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonio-card-secundario > div {
  min-height: 280px;
}

/* Animaciones flotantes */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.1); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-3deg); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 6s ease-in-out infinite; animation-delay: 2s; }
.animate-float-reverse { animation: float-reverse 10s ease-in-out infinite; animation-delay: 4s; }
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }

/* ICONOS SVG SIN ANIMACIONES CONFLICTIVAS */
.servicio-icon svg {
  transition: none !important;
  animation: none !important;
}

/* Avatar 3D */
.avatar-3d {
  background: linear-gradient(145deg, #D8D900, #B8B900);
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-3d:hover {
  transform: scale(1.15) translateZ(10px);
  box-shadow: 
    0 8px 16px rgba(216,217,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.1);
}

/* Estrellas animadas */
.estrellitas {
  animation: starGlow 2s ease-in-out infinite alternate;
}

@keyframes starGlow {
  0% { filter: drop-shadow(0 0 2px #D8D900); }
  100% { filter: drop-shadow(0 0 8px #D8D900); }
}

/* Stats card con barras animadas */
.stats-card .w-2 {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

/* CTA card con pulso */
.cta-card {
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.cta-card:hover::before {
  animation: sweep 1.5s ease-in-out;
  opacity: 1;
}

@keyframes sweep {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Navegación mejorada */
.testimonios-dots .dot {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.testimonios-dots .dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(216,217,0,0.3);
  transition: all 0.3s ease;
}

.testimonios-dots .dot:hover::after {
  width: 200%;
  height: 200%;
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .testimonios-section {
    padding: 3rem 0;
  }
  
  .testimonios-section h2 {
    font-size: 2.5rem;
  }
  
  .testimonio-card-principal > div,
  .testimonio-card-secundario > div,
  .stats-card > div,
  .cta-card > div {
    padding: 1.5rem;
    min-height: 240px;
  }
  
  .floating-element {
    display: none;
  }
  
  .testimonios-grid {
    gap: 1rem;
  }
}

/* Animación de entrada */
.testimonios-grid > div {
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.testimonios-grid > div:nth-child(1) { animation-delay: 0.1s; }
.testimonios-grid > div:nth-child(2) { animation-delay: 0.2s; }
.testimonios-grid > div:nth-child(3) { animation-delay: 0.3s; }
.testimonios-grid > div:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

/* Efecto de typing para el texto del header */
.animate-expand {
  animation: expand 3s ease-in-out infinite;
}

@keyframes expand {
  0%, 100% { width: 0%; }
  50% { width: 100%; }
}

/* Fallbacks para asegurar compatibilidad */
.bg-gradient-to-br {
  background: linear-gradient(135deg, var(--tw-gradient-stops, #D8D900, #B8B900));
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Asegurar que el texto sea visible */
.testimonio-card-principal .text-gray-800 {
  color: #1f2937 !important;
}

.testimonio-card-secundario .texto-negro {
  color: #061400 !important;
}

.stats-card .text-white {
  color: white !important;
}

.cta-card .texto-negro {
  color: #061400 !important;
}

/* Forzar visibility de las cards */
.testimonio-card-principal,
.testimonio-card-secundario,
.stats-card,
.cta-card {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Grid con flexbox como fallback */
@supports not (display: grid) {
  .testimonios-grid {
    display: flex;
    flex-wrap: wrap;
  }
  
  .testimonio-card-principal {
    flex: 0 0 66.66%;
  }
  
  .testimonio-card-secundario {
    flex: 0 0 33.33%;
  }
  
  .stats-card,
  .cta-card {
    flex: 0 0 50%;
  }
}

/* Asegurar spacing correcto */
.testimonios-grid {
  width: 100%;
  max-width: none;
}

/* Override de Tailwind - corregido */
.testimonios-grid .col-span-8 {
  grid-column: span 8 / span 8;
}

.testimonios-grid .col-span-4 {
  grid-column: span 4 / span 4;
}

.testimonios-grid .col-span-6 {
  grid-column: span 6 / span 6;
}

/* Asegurar que el grid de testimonios funcione */
.testimonios-grid.loaded {
  opacity: 1;
}

.testimonios-grid > div {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Estilos específicos para el sistema rediseñado */
.testimonio-preview {
  cursor: pointer;
}

.testimonio-preview:hover {
  transform: translateY(-2px);
}

/* Asegurar que las transiciones de contenido dinámico funcionen */
#testimonioTexto,
#testimonioNombre,
#testimonioCargo,
#testimonioEmpresa,
#previewTexto,
#previewNombre,
#previewEmpresa {
  transition: opacity 0.3s ease;
}

#testimonioAvatar,
#previewAvatar {
  transition: transform 0.3s ease;
}

/* Override de estilos conflictivos */
.testimonios-section .texto-negro {
  color: #061400 !important;
}

/* Asegurar que los dots sean visibles */
.testimonios-dots .dot {
  display: block !important;
  min-width: 8px !important;
  min-height: 8px !important;
}

/* Cambio específico solicitado */
.absolute.inset-0.bg-gradient-to-br.from-white\/10.to-transparent {
    background: #D8D900 !important;
}

/* ANIMACIONES ADICIONALES PARA LA SECCIÓN ABOUT */

/* Elementos decorativos de fondo con movimiento */
.about-section .absolute.top-0.left-0 {
  animation: float-left 12s ease-in-out infinite;
}

.about-section .absolute.bottom-0.right-0 {
  animation: float-right 15s ease-in-out infinite 2s;
}

@keyframes float-left {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  25% { 
    transform: translateY(-15px) translateX(10px) scale(1.02);
  }
  50% { 
    transform: translateY(-25px) translateX(0px) scale(1.05);
  }
  75% { 
    transform: translateY(-15px) translateX(-10px) scale(1.02);
  }
}

@keyframes float-right {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% { 
    transform: translateY(20px) translateX(-15px) scale(0.98);
  }
  66% { 
    transform: translateY(-10px) translateX(15px) scale(1.03);
  }
}

/* Animaciones para las tarjetas de características */
.about-features .group:nth-child(1) {
  animation: slideInRight 0.8s ease-out 0.3s both;
}

.about-features .group:nth-child(2) {
  animation: slideInRight 0.8s ease-out 0.4s both;
}

.about-features .group:nth-child(3) {
  animation: slideInRight 0.8s ease-out 0.5s both;
}

/* Animación mejorada para el icono amarillo */
.icono-amarillo {
  background: linear-gradient(135deg, #D8D900 0%, #E6E400 100%) !important;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 4px 8px rgba(216, 217, 0, 0.2);
  }
  50% { 
    box-shadow: 0 4px 16px rgba(216, 217, 0, 0.4);
  }
}

/* Efecto hover mejorado para las tarjetas */
.about-features .group:hover {
  transform: translateY(-8px) scale(1.02);
}

.about-features .group:hover .w-14.h-14 {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 8px 16px rgba(216, 217, 0, 0.3);
}

/* SECCIÓN DE SUSTENTABILIDAD Y CERTIFICACIONES */
.sustentabilidad-section {
  position: relative;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

/* Animaciones específicas para elementos verdes */
@keyframes float-slow-green {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  25% { 
    transform: translateY(-20px) translateX(8px) scale(1.02);
  }
  50% { 
    transform: translateY(-35px) translateX(0px) scale(1.05);
  }
  75% { 
    transform: translateY(-20px) translateX(-8px) scale(1.02);
  }
}

@keyframes float-delayed-green {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
  }
  33% { 
    transform: translateY(15px) translateX(-12px) scale(0.98);
  }
  66% { 
    transform: translateY(-25px) translateX(12px) scale(1.03);
  }
}

.sustentabilidad-section .animate-float-slow {
  animation: float-slow-green 14s ease-in-out infinite;
}

.sustentabilidad-section .animate-float-delayed {
  animation: float-delayed-green 18s ease-in-out infinite 3s;
}

/* Animación específica para gradiente verde */
.sustentabilidad-section .animate-gradient {
  background-size: 200% 200%;
  animation: gradient-text 5s ease-in-out infinite;
}

/* Animación para línea verde expandible */
.sustentabilidad-section .animate-expand {
  animation: expand-line-green 4s ease-in-out infinite;
}

@keyframes expand-line-green {
  0% { 
    width: 0%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% { 
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0.7;
  }
}

/* Contenido de sustentabilidad con animaciones de entrada */
.sustainability-content {
  animation: slideInLeft 0.8s ease-out;
}

.certifications-grid {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

/* Tarjetas de certificación con efectos hover mejorados */
.certification-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.certification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.certification-card:hover::before {
  left: 100%;
}

.certification-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

/* Logo de certificación con efecto de glow */
.certification-logo {
  transition: all 0.3s ease;
  position: relative;
}

.certification-card:hover .certification-logo {
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.certification-logo img {
  transition: all 0.3s ease;
  filter: grayscale(0.2);
}

.certification-card:hover .certification-logo img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Stat card verde con animaciones */
.sustainability-content .bg-gradient-to-r {
  position: relative;
  overflow: hidden;
}

.sustainability-content .bg-gradient-to-r::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine-green 3s ease-in-out infinite;
}

@keyframes shine-green {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Efecto hover para el CTA sustentable */
.sustentabilidad-section a[href="#contacto"] {
  position: relative;
  overflow: hidden;
}

.sustentabilidad-section a[href="#contacto"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.sustentabilidad-section a[href="#contacto"]:hover::before {
  left: 100%;
}

/* Lista de compromisos verdes con animaciones */
.sustentabilidad-section ul li {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.sustentabilidad-section ul li:nth-child(1) { animation-delay: 0.1s; }
.sustentabilidad-section ul li:nth-child(2) { animation-delay: 0.2s; }
.sustentabilidad-section ul li:nth-child(3) { animation-delay: 0.3s; }

/* Quote inspiracional con efecto sutil */
.sustentabilidad-section blockquote {
  position: relative;
}

.sustentabilidad-section blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: -20px;
  font-size: 4rem;
  color: rgba(34, 197, 94, 0.2);
  font-family: serif;
  line-height: 1;
}

.sustentabilidad-section blockquote::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-size: 4rem;
  color: rgba(34, 197, 94, 0.2);
  font-family: serif;
  line-height: 1;
}

/* Responsive para la sección de sustentabilidad */
@media (max-width: 1024px) {
  .sustentabilidad-section .grid.lg\\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .certifications-grid {
    animation: slideInUp 0.8s ease-out 0.1s both;
  }
}

@media (max-width: 768px) {
  .sustentabilidad-section {
    padding: 3rem 0;
  }
  
  .sustentabilidad-section h2 {
    font-size: 2.5rem;
  }
  
  .certification-card {
    padding: 1.5rem;
  }
  
  .certification-logo {
    width: 60px;
    height: 60px;
  }
  
  .certification-logo img {
    width: 48px;
    height: 48px;
  }
  
  .sustentabilidad-section .animate-float-slow,
  .sustentabilidad-section .animate-float-delayed {
    display: none;
  }
}

/* Patrón de fondo con movimiento sutil */
.sustentabilidad-section .absolute.inset-0 > div {
  animation: pattern-float 20s ease-in-out infinite;
}

@keyframes pattern-float {
  0%, 100% { 
    transform: translateX(0px) translateY(0px);
  }
  25% { 
    transform: translateX(10px) translateY(-5px);
  }
  50% { 
    transform: translateX(0px) translateY(-10px);
  }
  75% { 
    transform: translateX(-5px) translateY(-5px);
  }
}

/* SECCIÓN DE CONTACTO Y FORMULARIO */
.contact-form {
  animation: slideInLeft 0.8s ease-out;
}

.contact-info {
  animation: slideInRight 0.8s ease-out 0.2s both;
}

/* Asegurar visibilidad correcta de la información de contacto */
#contacto .contact-info h3 {
  color: #D8D900 !important;
  font-size: 1.875rem !important;
  font-weight: 700 !important;
  margin-bottom: 2rem !important;
}

#contacto .contact-info h4 {
  color: white !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
}

#contacto .contact-info p {
  color: #d1d5db !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

/* Forzar visibilidad de iconos en contacto */
#contacto .contact-info svg {
  color: #D8D900 !important;
  display: block !important;
  opacity: 1 !important;
}

/* Asegurar que el fondo de información de contacto sea visible */
#contacto .contact-info > div:first-child {
  background-color: #061400 !important;
  border-radius: 1.5rem !important;
  padding: 2rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Subtítulo de contacto - asegurar visibilidad */
#contacto .text-center .mx-4 {
  background-color: #061400 !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Asegurar contraste en el formulario */
#contacto .contact-form label {
  color: #1f2937 !important;
  font-weight: 600 !important;
  display: block !important;
  margin-bottom: 0.5rem !important;
}

#contacto .contact-form input,
#contacto .contact-form select,
#contacto .contact-form textarea {
  background-color: white !important;
  border: 2px solid #e5e7eb !important;
  color: #111827 !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
}

#contacto .contact-form input::placeholder,
#contacto .contact-form textarea::placeholder {
  color: #9ca3af !important;
}

/* Botón del formulario */
#contacto .contact-form button[type="submit"] {
  background-color: #D8D900 !important;
  color: #061400 !important;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  padding: 1rem 2rem !important;
  width: 100% !important;
  transition: all 0.3s ease !important;
}

#contacto .contact-form button[type="submit"]:hover {
  background-color: #E6E400 !important;
  transform: scale(1.02) !important;
}

/* Elementos del mapa */
#contacto .contact-info iframe {
  border-radius: 1.5rem !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive para el formulario */
@media (max-width: 1024px) {
  .contact-form,
  .contact-info {
    animation: slideInUp 0.8s ease-out;
  }
}

@media (max-width: 768px) {
  .contact-form .bg-gray-50,
  .contact-info .bg-gray-900 {
    padding: 1.5rem;
  }
  
  .contact-info iframe {
    height: 300px;
  }
}

/* SUBTÍTULOS CONSISTENTES - CORRECCIÓN DE COLORES */
.section-badge {
  background-color: #061400 !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Específicamente para subtítulos de secciones */
.text-center .mx-4,
section .mx-4 {
  background-color: #061400 !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* Override específico para testimonios que debe ser blanco */
.testimonios-section .mx-4 {
  background-color: white !important;
  color: #061400 !important;
  border: 2px solid #e5e7eb !important;
}

/* Override para sustentabilidad que debe ser blanco con texto verde */
.sustentabilidad-section .mx-4 {
  background-color: white !important;
  color: #065f46 !important;
  border: 2px solid #d1fae5 !important;
}

/* ESTILOS PARA EL FOOTER CENTRADO */

/* Footer principal */
footer {
  background: linear-gradient(135deg, #061400 0%, #0a1e00 50%, #061400 100%);
}

/* Animación para los elementos decorativos del footer */
footer .absolute.top-0.left-0,
footer .absolute.bottom-0.right-0 {
  animation: float-slow 12s ease-in-out infinite;
}

footer .absolute.bottom-0.right-0 {
  animation-delay: 6s;
}

/* Efectos hover para los iconos de redes sociales */
footer .group:hover div {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Animación de entrada para las redes sociales */
footer .flex.justify-center.space-x-6 a {
  animation: slideInUp 0.6s ease-out forwards;
}

footer .flex.justify-center.space-x-6 a:nth-child(1) { animation-delay: 0.1s; }
footer .flex.justify-center.space-x-6 a:nth-child(2) { animation-delay: 0.2s; }
footer .flex.justify-center.space-x-6 a:nth-child(3) { animation-delay: 0.3s; }
footer .flex.justify-center.space-x-6 a:nth-child(4) { animation-delay: 0.4s; }
footer .flex.justify-center.space-x-6 a:nth-child(5) { animation-delay: 0.5s; }

/* Responsive para el footer */
@media (max-width: 768px) {
  footer {
    padding: 3rem 0 2rem;
  }
  
  footer .max-w-4xl {
    max-width: 20rem;
  }
  
  footer .grid.md\\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  footer .flex.justify-center.space-x-6 {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  
  footer .w-12.h-12 {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  footer .text-xl {
    font-size: 1.125rem;
  }
  
  footer .h-16 {
    height: 3rem;
  }
}

@media (max-width: 480px) {
  footer .grid.md\\:grid-cols-3 {
    gap: 1.5rem;
  }
  
  footer .mb-10,
  footer .mb-8 {
    margin-bottom: 1.5rem;
  }
  
  footer .mb-8 {
    margin-bottom: 1rem;
  }
}

/* Efectos adicionales para mejorar la experiencia */
footer .w-16.h-16 {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

footer .text-gray-300:hover {
  color: #D8D900;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(216, 217, 0, 0.3);
}

/* Animación especial para iconos sociales */
@keyframes socialGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 8px 25px rgba(216, 217, 0, 0.2);
  }
}

footer .group:hover div {
  animation: socialGlow 1.5s ease-in-out infinite;
}

footer .group:hover div {
  background: linear-gradient(135deg, #D8D900, #F7D317);
}
