/* Animación de entrada para la página */
body {
  font-family: 'Oswald', sans-serif;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Encabezado */
header {
  background-color: #2e7d32;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Oswald', sans-serif;
  opacity: 0;
  animation: fadeInHeader 1s ease-out forwards;
}

header img {
  height: 40px;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

@keyframes fadeInHeader {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contenedor */
.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sección izquierda */
.left {
  flex: 1;
  min-width: 300px;
  background-color: #e8f5e9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Sección derecha */
.right {
  flex: 2;
  padding: 20px;
}

/* Animación de los estudios de cumplimiento */
.study {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #ffffff;
  border-left: 6px solid #1b5e20;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.study .title {
  font-size: 20px;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 10px;
}

.study .sub {
  font-size: 16px;
  font-weight: 600;
  color: #2e7d32;
  margin-top: 10px;
}

.study .info {
  font-size: 14px;
  color: #555;
  margin-left: 15px;
  margin-top: 4px;
}

/* Iconos de servicio */
.icono-servicio {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icono-servicio:hover {
  transform: scale(1.1);
  filter: sepia(1) hue-rotate(90deg) saturate(3);
}

/* Footer */
footer {
  background-color: #388e3c;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  opacity: 0;
  animation: fadeInFooter 1s ease-out forwards;
  animation-delay: 1.5s;
}

@keyframes fadeInFooter {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Servicios horizontales */
.servicios-horizontal {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.servicios-horizontal::-webkit-scrollbar {
  height: 10px;
}

.servicios-horizontal::-webkit-scrollbar-thumb {
  background: #81c784;
  border-radius: 10px;
}

/* Servicio individual */
.servicio {
  flex: 0 0 auto;
  width: 200px;
  background-color: #f1f8e9;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  font-family: 'Oswald', sans-serif;
}

.servicio:hover {
  transform: scale(1.05);
}

.servicio h5 {
  font-size: 1rem;
  color: #2e7d32;
  margin-top: 10px;
  font-family: 'Oswald', sans-serif;
}

/* Navbar */
.navbar-consultores {
  background-color: #333333;
}

.navbar-consultores .nav-link,
.navbar-consultores .navbar-brand {
  color: #E3FCEF;
}

.navbar-consultores .nav-link:hover {
  color: #A8E6CF;
}

.navbar-toggler {
  border-color: #E3FCEF;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(227,252,239,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
