/* Variables CSS */
:root {
  --veredicta-navy: #1C365C;
  --veredicta-teal: #2BB69D;
  --veredicta-silver: #B0B0B0;
  --veredicta-white: #FFFFFF;
  
  --veredicta-navy-light: #2A4A6E;
  --veredicta-navy-dark: #15283D;
  --veredicta-teal-light: #3DD4B8;
  --veredicta-teal-dark: #229882;
  
  /* Grises */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Tipografías */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Fuentes */
body {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* Colores personalizados para Tailwind */
.text-navy-900 {
  color: var(--veredicta-navy);
}

.bg-navy-900 {
  background-color: var(--veredicta-navy);
}

.bg-navy-800 {
  background-color: var(--veredicta-navy-light);
}

.text-teal-600 {
  color: var(--veredicta-teal);
}

.bg-teal-600 {
  background-color: var(--veredicta-teal);
}

.hover\:bg-teal-700:hover {
  background-color: var(--veredicta-teal-dark);
}

.border-navy-900 {
  border-color: var(--veredicta-navy);
}

.text-teal-400 {
  color: var(--veredicta-teal-light);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Header Sticky */
#header {
  transition: all 0.3s ease;
}

#header nav {
  height: 80px;
}

@media (max-width: 767px) {
  #header nav {
    height: 60px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease;
}

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

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Form Styles */
input:focus,
textarea:focus {
  outline: none;
}

/* Mobile Menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.show {
  max-height: 500px;
}

/* Ajustes adicionales para mejor visualización */
.container {
  max-width: 1280px;
}

/* Mejoras de accesibilidad */
a:focus,
button:focus {
  outline: 2px solid var(--veredicta-teal);
  outline-offset: 2px;
}

/* Transiciones suaves */
.transition {
  transition: var(--transition-normal);
}

/* Estilos para FAQ */
.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer:not(.hidden) {
  max-height: 2000px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Estilos para menús desplegables */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
  visibility: visible;
}

.group:hover .group-hover\:visible {
  visibility: visible;
}

/* Menú desplegable */
.relative.group button {
  outline: none;
}

.relative.group:hover button {
  color: var(--veredicta-teal);
}

/* Efectos de Parallax y Scroll */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.03;
  z-index: 0;
}

.parallax-section > * {
  position: relative;
  z-index: 1;
}

/* Scroll Fade In Animation */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Fade In con delay escalonado */
.scroll-fade-in-delay-1 {
  transition-delay: 0.1s;
}

.scroll-fade-in-delay-2 {
  transition-delay: 0.2s;
}

.scroll-fade-in-delay-3 {
  transition-delay: 0.3s;
}

/* Efecto de parallax para elementos internos */
.parallax-element {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* Separación visual entre secciones */
section {
  position: relative;
}

section + section {
  margin-top: 0;
}

/* Efecto de profundidad con sombras sutiles */
.bg-white {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.bg-gray-50 {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.01);
}

/* Animación de entrada para elementos */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.8s ease-out forwards;
}

/* Efecto de hover mejorado para tarjetas */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Efecto de parallax suave para imágenes */
.parallax-image {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Gradientes sutiles para transiciones entre secciones */
.section-transition {
  position: relative;
}

.section-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(43, 182, 157, 0.1), transparent);
}

