/* Sistema de Diseño USSA & Asociados */

:root {
  --primary-color: #0a2143;
  --secondary-color: #d7903b;
  --background-light: #f6f7f8;
  --background-dark: #111821;
  --success-color: #10b981;
  --whatsapp-color: #25d366;
}

/* Microinteracciones Sutiles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Clases de animación */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.7s ease-out forwards;
}

/* Delays para animaciones escalonadas */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Hero Section Background */
.hero-section {
  background-image: linear-gradient(to right, rgba(10, 33, 67, 0.9) 0%, rgba(10, 33, 67, 0.7) 50%, rgba(10, 33, 67, 0.3) 100%), url("../images/bg_hero.jpg");
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin-top: -90px;
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Responsive Hero Background */
@media (max-width: 1024px) {
  .hero-section {
    background-size: cover;
    background-attachment: scroll;
    margin-top: -90px;
    padding-top: 90px;
    min-height: 100vh;
    background-image: linear-gradient(to bottom, rgba(10, 33, 67, 0.85) 0%, rgba(10, 33, 67, 0.7) 100%), url("../images/bg_hero.jpg");
  }
}

@media (max-width: 768px) {
  /* Unificar márgenes laterales a 20px (1.5rem) */
  header {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .hero-section {
    background-size: cover, cover;
    background-position: 0% 0%, calc(100% + 100px) center;
    min-height: 100vh;
    margin-top: -90px;
    padding-top: 90px;
    padding-bottom: 40px;
    background-image: linear-gradient(to bottom, rgba(10, 33, 67, 0.9) 0%, rgba(10, 33, 67, 0.8) 100%), url("../images/bg_hero.jpg");
    align-items: center !important;
    justify-content: center !important;
  }
  
  .hero-section .container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 32px !important;
    text-align: center !important;
    align-items: center !important;
  }
  
  .hero-section .container-fluid > div {
    width: 100% !important;
    text-align: center !important;
  }
  
  .hero-section h1 {
    font-size: 2.75rem !important; /* 44px - Más grande */
    line-height: 1.2 !important; /* Mejor espaciado */
    margin-bottom: 24px !important;
    text-align: center !important;
  }
  
  .hero-section p {
    font-size: 1.25rem !important; /* 20px - Más grande */
    line-height: 1.6 !important; /* Más espaciado */
    margin-top: 24px !important;
    margin-bottom: 32px !important;
    text-align: center !important;
  }
  
  .hero-section .flex {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .hero-section .btn-secondary,
  .hero-section .btn-outline {
    width: 100% !important;
    min-height: 60px !important;
    padding: 18px 24px !important;
    font-size: 18px !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  /* Unificar márgenes laterales a 20px (1.5rem) */
  header {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .hero-section {
    background-size: cover, cover;
    background-position: 0% 0%, calc(100% + 120px) center;
    min-height: 100vh;
    margin-top: -90px;
    padding-top: 50px; /* Reducido aún más para pantallas pequeñas */
    background-image: linear-gradient(to bottom, rgba(10, 33, 67, 0.95) 0%, rgba(10, 33, 67, 0.85) 100%), url("../images/bg_hero.jpg");
  }
  
  .hero-section .container-fluid {
    padding-left: 1.5rem !important; /* Unificado a 20px */
    padding-right: 1.5rem !important; /* Unificado a 20px */
  }
  
  .hero-section h1 {
    font-size: 2rem !important; /* 32px - Grande y valiente */
    line-height: 1.1 !important; /* Líneas apretadas para bloque sólido */
  }
  
  .hero-section p {
    font-size: 1rem !important; /* 16px - Más grande */
    line-height: 1.5 !important; /* Fácil de leer */
  }
}

/* Logo Container que se sobresale del header */
.logo-container {
  position: absolute;
  top: -8px;
  left: 48px;
  z-index: 70;
  background: white;
  border-radius: 0 0 25px 25px;
  padding: 25px 29px 17px 29px;
  box-shadow: none;
  transition: all 0.3s ease;
  min-width: 200px;
}

/* Ajustar el header para dar espacio al logo */
header {
  padding-left: 320px !important;
  min-height: 80px;
  display: flex;
  align-items: center;
}

/* Estilo para el teléfono en el header */
.header-phone {
  font-weight: 600;
  margin-left: auto;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-phone:hover {
  opacity: 0.8;
  text-decoration: none;
}

.logo-container:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo-image {
  height: 70px;
  width: auto;
  filter: brightness(1.0) contrast(1.1);
  transition: all 0.3s ease;
}

.logo-container:hover .logo-image {
  transform: scale(1.05);
  filter: brightness(1.2) contrast(1.2);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-color);
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: pulse 2s infinite;
}

/* Tooltip del botón de WhatsApp */
.whatsapp-float::before {
  content: "Escribenos tu caso por whatsapp";
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(10, 33, 67, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 1001;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  color: white;
  text-decoration: none;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  opacity: 1;
  visibility: visible;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Animación de pulso sutil */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

/* Estilos unificados para botones - Consistente con el home */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(10, 33, 67, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary-color) 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 33, 67, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(215, 144, 59, 0.3);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215, 144, 59, 0.4);
}

/* Botón CTA Premium con efecto de urgencia */
.btn-secondary-premium {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #c97d2a 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(215, 144, 59, 0.4);
  animation: pulse-premium 2s infinite;
}

.btn-secondary-premium:hover {
  background: linear-gradient(135deg, #c97d2a 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(215, 144, 59, 0.6);
}

@keyframes pulse-premium {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(215, 144, 59, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 30px rgba(215, 144, 59, 0.6);
    transform: scale(1.02);
  }
}

/* Botón WhatsApp Enhanced con hover verde oscuro y animación de icono */
.btn-whatsapp-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #3AD65C !important;
  border-color: #3AD65C !important;
  color: #052233 !important;
  font-weight: 700 !important;
}

.btn-whatsapp-enhanced .whatsapp-icon {
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  fill: #052233 !important;
}

.btn-whatsapp-enhanced:hover {
  background: linear-gradient(135deg, #2FC04F 0%, #25A842 100%) !important;
  border-color: #2FC04F !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(58, 214, 92, 0.5);
}

.btn-whatsapp-enhanced:hover .whatsapp-icon {
  transform: scale(1.15) rotate(5deg);
  animation: whatsapp-bounce 0.6s ease;
}

@keyframes whatsapp-bounce {
  0%, 100% {
    transform: scale(1.15) rotate(5deg);
  }
  50% {
    transform: scale(1.25) rotate(-5deg);
  }
}

.btn-whatsapp-enhanced:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 5px 20px rgba(58, 214, 92, 0.4);
}

/* Espaciado extra para botones en Hero (Mobile) */
@media (max-width: 640px) {
  /* Aprovechar mejor el espacio vertical en mobile */
  .hero-section {
    min-height: 100vh !important;
    margin-top: -90px !important;
    padding-top: 90px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .hero-section .container-fluid {
    gap: 32px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .hero-section h1 {
    font-size: 2.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 24px !important;
  }
  
  .hero-section p {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-top: 24px !important;
    margin-bottom: 32px !important;
  }
  
  .hero-whatsapp-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 60px;
    padding: 18px 24px !important;
    font-size: 18px !important;
    margin-top: 8px !important;
  }
  
  .hero-whatsapp-btn .whatsapp-icon {
    margin-right: 12px;
    width: 24px !important;
    height: 24px !important;
  }
  
  /* Asegurar que ambos botones tengan el mismo tamaño en mobile */
  .hero-section .btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 60px;
    padding: 18px 24px !important;
    font-size: 18px !important;
  }
  
  /* Forzar width 100% en todos los botones del hero en mobile */
  .hero-section button,
  .hero-section .btn-outline {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Scroll suave al botón principal */
  .hero-section {
    scroll-margin-top: 0;
  }
}

/* Ajustar botón en desktop para que sea premium */
@media (min-width: 768px) {
  .hero-whatsapp-btn {
    width: auto !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    min-height: auto !important;
  }
  
  /* Enlace secundario como botón secundario en desktop */
  .hero-section a[href="pages/servicios.html"] {
    display: inline-block !important;
    width: auto !important;
    padding: 16px 24px !important;
    text-align: left !important;
    align-self: center !important;
    line-height: 1.5 !important;
  }
  
  /* Escudo alineado a la izquierda en desktop */
  .hero-section .flex.items-start.justify-start {
    justify-content: flex-start !important;
    margin-top: 16px !important;
  }
  
  .hero-section .flex.items-start.justify-start p {
    text-align: left !important;
  }
}

.btn-outline {
  background-color: transparent;
  color: #0a2143;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #0a2143;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* Botón outline para fondos oscuros - mejor contraste */
.btn-outline-dark {
  background-color: transparent;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline-dark:hover {
  background-color: white;
  color: var(--primary-color);
  text-decoration: none;
}

/* Card oscura reutilizable */
.card-dark {
  background: var(--primary-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Icono con círculo para cards oscuras */
.icon-circle-dark {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), #f4a261);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(215, 144, 59, 0.3);
}

.icon-circle-dark .material-symbols-outlined {
  color: white;
  font-size: 2.5rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  header {
    padding-left: 1.5rem !important; /* Unificado a 20px */
    padding-right: 1.5rem !important; /* Unificado a 20px */
    min-height: 90px !important;
  }
  
  .logo-container {
    top: -6px;
    left: 1.5rem; /* Alineado con el margen unificado */
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: auto !important;
    background: transparent !important;
    z-index: 70 !important;
  }

  /* Home: logo sin caja blanca, fondo transparente y texto blanco */
  header.bg-transparent .logo-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-width: auto !important;
  }

  .logo-image {
    height: 55px;
  }

  /* Logo en mobile: sin fondo blanco, sin sombra — mix-blend-mode lo controla JS */
  .logo-image {
    background: transparent !important;
  }

  .logo-container {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: auto !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
  }

  header.bg-transparent .logo-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-width: auto !important;
  }

  /* Centrar contenido en mobile */
  .hero-mobile-center {
    text-align: center !important;
    align-items: center !important;
  }
  
  .hero-mobile-center > div {
    text-align: center !important;
    align-items: center !important;
  }
  
  /* Reducir espacio entre texto y botón en mobile */
  .hero-section .container-fluid > div:first-child p {
    margin-bottom: 32px !important;
  }
  
  /* Aumentar margin abajo del botón Consultar ahora en mobile */
  .hero-whatsapp-btn {
    margin-bottom: 0 !important;
    min-height: 55px !important;
  }
  
  /* Elemento de confianza - icono dentro del párrafo */
  .hero-section .flex.items-start.justify-center {
    margin-top: 32px !important;
  }
  
  /* Asegurar que el texto del bloque de confianza se ajuste */
  .hero-section .flex.items-start.justify-center p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  
  /* Asegurar que el icono no se deforme y esté integrado con el texto */
  .hero-section .flex.items-start.justify-center p svg {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  
  /* Asegurar que el botón no tenga margin-bottom */
  .hero-whatsapp-btn {
    margin-bottom: 0 !important;
  }
  
  /* Menú móvil flotante a la derecha */
  header button[onclick="toggleMobileMenu()"] {
    position: absolute !important;
    right: 30px !important;
    top: 15px !important;
    z-index: 60 !important;
    background: transparent !important;
    border-radius: 12px !important;
    padding: 12px !important;
  }
  
  /* Adelgazar líneas del menú hamburguesa en mobile */
  header button[onclick="toggleMobileMenu()"] .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24 !important;
  }
  
  /* Cuando el menú está abierto */
  #mobile-menu:not(.hidden) ~ header,
  body.menu-open header {
    background: white !important;
  }
  
  #mobile-menu:not(.hidden) ~ header button[onclick="toggleMobileMenu()"],
  body.menu-open header button[onclick="toggleMobileMenu()"] {
    color: black !important;
  }
  
  /* Asegurar que todo el header sea blanco cuando el menú está abierto */
  body.menu-open header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Logo también debe estar dentro del header blanco */
  body.menu-open .logo-container {
    background: white !important;
    box-shadow: none !important;
  }
  
  /* Fondo del área del toggle también blanco */
  body.menu-open header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: white;
    z-index: 1;
  }
  
  body.menu-open header button[onclick="toggleMobileMenu()"] {
    position: relative;
    z-index: 2;
  }
  
  /* Menú móvil sin espacio en blanco */
  #mobile-menu {
    position: absolute !important;
    top: 90px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 30 !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
  }
  
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    font-size: 26px;
  }
  
  .whatsapp-float::before {
    content: "Escribenos tu caso por whatsapp";
    right: 65px;
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
  }
  
  .whatsapp-float::after {
    right: 55px;
    border-width: 6px;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  header {
    padding-left: 1.5rem !important; /* Unificado a 20px */
    padding-right: 1.5rem !important; /* Unificado a 20px */
    min-height: 90px !important;
  }

  .logo-container {
    top: -4px;
    left: 1.5rem; /* Alineado con el margen unificado */
    padding: 19px 21px 13px 21px;
    border-radius: 0;
    min-width: 140px;
    z-index: 70 !important;
  }

  /* Home: sin caja blanca, logo con fondo transparente y texto blanco */
  header.bg-transparent .logo-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-width: auto !important;
  }

  .logo-image {
    height: 50px;
  }
  
  /* Menú móvil flotante a la derecha */
  header button[onclick="toggleMobileMenu()"] {
    position: absolute !important;
    right: 30px !important;
    top: 15px !important;
    z-index: 60 !important;
    background: transparent !important;
    border-radius: 12px !important;
    padding: 12px !important;
  }
  
  /* Adelgazar líneas del menú hamburguesa en mobile */
  header button[onclick="toggleMobileMenu()"] .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24 !important;
  }
  
  /* Cuando el menú está abierto */
  #mobile-menu:not(.hidden) ~ header,
  body.menu-open header {
    background: white !important;
  }
  
  #mobile-menu:not(.hidden) ~ header button[onclick="toggleMobileMenu()"],
  body.menu-open header button[onclick="toggleMobileMenu()"] {
    color: black !important;
  }
  
  /* Asegurar que todo el header sea blanco cuando el menú está abierto */
  body.menu-open header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Logo también debe estar dentro del header blanco */
  body.menu-open .logo-container {
    background: white !important;
    box-shadow: none !important;
  }
  
  /* Fondo del área del toggle también blanco */
  body.menu-open header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: white;
    z-index: 1;
  }
  
  body.menu-open header button[onclick="toggleMobileMenu()"] {
    position: relative;
    z-index: 2;
  }
  
  /* Menú móvil sin espacio en blanco */
  #mobile-menu {
    position: absolute !important;
    top: 90px !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 30 !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
  }
}

/* Sistema de Títulos Unificado */
.title-hero {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-section {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.title-card {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Títulos blancos para cards oscuras */
.card-dark .title-card {
  color: white !important;
}

.subtitle-hero {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.subtitle-section {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Secciones con fondo unificado */
.section-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(10, 33, 67, 0.9) 100%);
  color: white;
  padding: 4rem 0;
}

.section-light {
  background-color: var(--background-light);
  padding: 4rem 0;
}

.section-white {
  background-color: white;
  padding: 4rem 0;
}

.section-accent {
  background: linear-gradient(135deg, rgba(215, 144, 59, 0.1) 0%, rgba(215, 144, 59, 0.05) 100%);
  padding: 4rem 0;
}

/* Cards unificadas */
.card-primary {
  background: white !important;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-primary p {
  color: #374151 !important;
}

/* Títulos en single posts del blog */
.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6 {
  color: white !important;
}

/* Texto descriptivo debajo del título en single posts */
.single-post .hero-description {
  color: #d1d5db !important;
}

/* Subtítulos en cards de single posts */
.single-post .card-primary h2,
.single-post .card-primary h3,
.single-post .card-primary h4,
.single-post .card-primary h5,
.single-post .card-primary h6 {
  color: var(--primary-color) !important;
}

/* Todos los títulos en single posts que tengan text-gray-900 dark:text-white */
.single-post h2.text-gray-900.dark\\:text-white,
.single-post h3.text-gray-900.dark\\:text-white,
.single-post h4.text-gray-900.dark\\:text-white,
.single-post h5.text-gray-900.dark\\:text-white,
.single-post h6.text-gray-900.dark\\:text-white {
  color: var(--primary-color) !important;
}

.card-accent {
  background: var(--primary-color);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.card-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(10, 33, 67, 0.3);
}

/* Badges y etiquetas */
.badge-primary {
  background-color: transparent;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid white;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-secondary {
  background-color: transparent;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid white;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-outline {
  background-color: transparent;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid white;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Botones de filtro activos */
.filter-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background-color: var(--secondary-color) !important;
  color: white !important;
  border: 2px solid var(--secondary-color) !important;
  transform: scale(1.05);
}

/* Select mobile para filtros */
.mobile-filter-select {
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 20px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 200px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.mobile-filter-select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(215, 144, 59, 0.1);
}

.mobile-filter-select option {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem;
}

/* Responsive para títulos */
@media (max-width: 768px) {
  .title-hero {
    font-size: 2.5rem;
  }
  
  .title-section {
    font-size: 2rem;
  }
  
  .title-card {
    font-size: 1.25rem;
  }
  
  .subtitle-hero {
    font-size: 1.125rem;
  }
  
  .subtitle-section {
    font-size: 1rem;
  }
  
  .section-hero,
  .section-light,
  .section-white,
  .section-accent {
    padding: 3rem 0;
  }
  
  .card-primary,
  .card-accent {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .title-hero {
    font-size: 2rem;
  }
  
  .title-section {
    font-size: 1.75rem;
  }
  
  .title-card {
    font-size: 1.125rem;
  }
  
  .subtitle-hero {
    font-size: 1rem;
  }
  
  .subtitle-section {
    font-size: 0.875rem;
  }
  
  .section-hero,
  .section-light,
  .section-white,
  .section-accent {
    padding: 2rem 0;
  }
  
  .card-primary,
  .card-accent {
    padding: 1rem;
  }
}

/* Contadores Animados */
.counter-experience,
.counter-success,
.counter-clients {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-section {
  position: relative;
}

.stat-card {
  text-align: center;
  padding: 3rem 1rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: white;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.stat-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-top: 1rem;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Animación de entrada para las tarjetas */
.stat-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para contadores */
@media (max-width: 768px) {
  .counter-experience,
  .counter-success,
  .counter-clients {
    font-size: 2.5rem;
  }
  
  .stat-icon {
    width: 60px;
    height: 60px;
  }
  
  .stat-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .counter-experience,
  .counter-success,
  .counter-clients {
    font-size: 2rem;
  }
  
  .stat-card {
    padding: 1.5rem 0.5rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .logo-container {
    background: white;
    box-shadow: none;
  }
  
  .logo-container:hover {
    box-shadow: none;
  }
  
  .whatsapp-float {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }
  
  .whatsapp-float:hover {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
  }
  
  .title-hero,
  .title-section,
  .title-card {
    color: white;
  }
  
  .subtitle-hero,
  .subtitle-section {
    color: #d1d5db;
  }
  
  .card-primary {
    background: var(--background-dark);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .section-light {
    background-color: var(--background-dark);
  }
  
  .section-white {
    background-color: var(--background-dark);
  }
  
  .counter-experience,
  .counter-success,
  .counter-clients {
    color: white;
  }
  
  .stat-label {
    color: white;
  }
}
