/* Estilos generales */
@font-face {
  font-family: "Ralsteda Med";
  src: url("Ralsteda-Medium.woff2") format("woff2"),
    url("Ralsteda-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background-color: #e8f9b0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Slogan bar */
.slogan-bar {
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg, #ecffac 0%, #c5ff00 100%);
  color: #333; /* Cambié el color de texto a oscuro para mejor contraste */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1001; /* Asegura que esté sobre el navbar */
  position: relative; /* referencia para la ola */
}

/* Opcional: Efecto de brillo sutil */
.slogan-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}
/* Navbar */
.navbar {
  position: fixed;
  top: 30px;
  width: 100%;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: 100px;
  margin-left: 150px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  translate: -50%; /* Ajuste fino para centrar los links */
}

.nav-link {
  text-decoration: none;
  color: #333;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ace2a 0%, #364405c1 100%);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language dropdown - Versión mejorada */
/* Selector de idiomas mejorado */
/* Estilos generales */
.language-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 15px;
  font-family: "Arial", sans-serif;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.language-btn:hover {
  background: rgba(248, 248, 248, 0.9);
  border-color: #d0d0d0;
}

.language-btn::after {
  content: "▼";
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.language-dropdown:hover .language-btn::after {
  transform: rotate(180deg);
}

.language-flag {
  width: 25px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
  background: #f5f5f5;
  padding: 2px;
}

.language-content {
  display: none;
  position: absolute;
  right: 0;
  background: white;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1001;
  margin-top: 5px;
  border: 1px solid #f0f0f0;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
}

.language-content a:last-child {
  border-bottom: none;
}

.language-content a:hover {
  background: #f5f5f5;
  padding-left: 15px;
}

.language-content a span {
  font-weight: 500;
}

.language-dropdown:hover .language-content {
  display: block;
}

/* Estilos Responsive Ajustados */
@media (max-width: 992px) {
  .language-dropdown {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .language-dropdown {
    position: relative;
    top: -10px; /* Ajuste clave para subir el botón */
    margin-left: auto;
    margin-right: 15px;
  }

  .language-btn {
    padding: 5px 10px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .language-dropdown {
    top: -35px;
    margin-right: 10px;
  }

  .language-btn span {
    display: inline; /* Mantenemos visible el texto */
  }
}

/* Slider */
/* Slider Centrado con Bordes Redondeados */
.slider-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin-top: 80px;
}

.slider {
  position: relative;
  width: 80%;
  max-width: 1200px;
  height: 60vh;
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-content {
  position: absolute;
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 90%;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider-arrow-left {
  left: 20px;
}

.slider-arrow-right {
  right: 20px;
}
/* Estilos del Slider - Versión Mejorada */
.slide-content {
  position: absolute;
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 90%;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.slide-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  animation: fadeInDown 0.6s ease-out both;
  transform-origin: center top;
}

.slide-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 1.8rem;
  max-width: 700px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease-out 0.2s both;
  line-height: 1.4;
  padding: 0 15px;
}

.slide-btn-container {
  margin-top: 1.5rem; /* Reducido para que no quede muy abajo */
  animation: fadeInScale 0.5s ease-out 0.4s both;
  transform-origin: center;
}

.slide-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #4caf50 0%, #3a9b4d 100%);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.35);
  text-decoration: none;
  z-index: 1;
}

.slide-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(46, 139, 87, 0.45);
  background: linear-gradient(135deg, #3a9b4d 0%, #4caf50 100%);
}

.slide-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(46, 139, 87, 0.4);
}

/* Efecto de pulso suave al aparecer */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animaciones mejoradas */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Ajustes responsive */
@media (max-width: 1200px) {
  .slide-title {
    font-size: 2.8rem;
  }
  .slide-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 992px) {
  .slide-title {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
  }
  .slide-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  .slide-btn {
    padding: 12px 28px;
  }
}

@media (max-width: 768px) {
  .slide-content {
    top: 45%; /* Ajuste para móviles */
  }
  .slide-title {
    font-size: 2rem;
  }
  .slide-subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .slide-btn-container {
    margin-top: 1.2rem;
  }
}

@media (max-width: 576px) {
  .slide-title {
    font-size: 1.7rem;
  }
  .slide-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .slide-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }
}

/* Estilos Responsivos */
@media (max-width: 1200px) {
  .slider {
    width: 90%;
  }
}

@media (max-width: 992px) {
  .slider {
    height: 50vh;
    border-radius: 30px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .slider {
    width: 95%;
    height: 40vh;
    border-radius: 25px;
  }

  .slider-container {
    margin-top: 70px;
  }

  .slide-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .slider {
    height: 35vh;
    border-radius: 20px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .slider-arrow-left {
    left: 10px;
  }

  .slider-arrow-right {
    right: 10px;
  }
}

/* Features */
/* Features - Cambiado para usar el mismo fondo verde */
.features {
  display: flex;
  justify-content: space-around;
  padding: 50px 5%;
  background-color: #bed66e; /* Mismo color que el body */
  flex-wrap: wrap;
}

.feature {
  text-align: center;
  width: 29%;
  min-width: 250px;
  padding: 30px 20px;
  margin: 15px 0;
  background-color: rgba(230, 250, 234, 0.521);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.501);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 40px;
  color: rgb(76, 175, 79);
  margin-bottom: 15px;
}

.feature h3 {
  margin: 10px 0;
  color: #333;
}

.feature p {
  color: #666;
}

/* Mobile Menu */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.mobile-menu-button:hover {
  color: #4caf50;
}

@media (max-width: 1350px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    translate: -30%; /* Ajuste fino para centrar los links */
  }
}
@media (max-width: 1250px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    translate: -20%; /* Ajuste fino para centrar los links */
  }
}
@media (max-width: 1200px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    translate: -20%; /* Ajuste fino para centrar los links */
  }
}
@media (max-width: 1140px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    translate: -10%; /* Ajuste fino para centrar los links */
  }
  /* Ajustes para pantallas un poquito menores que la de escritorio normal */
  .feature {
    width: 50%;
  }
}

@media (max-width: 1100px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    translate: 0%; /* Ajuste fino para centrar los links */
  }
  /* Ajustes para pantallas un poquito menores que la de escritorio normal */
  .feature {
    width: 40%;
  }

  .logo {
    translate: -10%;
  }
}
@media (max-width: 992px) {
  .mobile-menu-button {
    display: block;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    translate: 10%; /* Ajuste fino para centrar los links */
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    justify-content: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    margin: 15px 0;
    padding: 10px 15px;
    width: 100%;
    font-size: 1.2rem;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background-color: rgba(76, 175, 80, 0.1);
  }

  .nav-link::after {
    display: none;
  }

  .language-dropdown {
    margin: 15px 0 0;
    width: 100%;
  }

  .language-btn {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background-color: transparent;
  }

  .language-content {
    position: relative;
    box-shadow: none;
    width: 100%;
    background-color: transparent;
    display: none;
  }

  .language-dropdown:hover .language-content {
    display: block;
    padding-left: 15px;
  }

  .nav-container {
    position: relative;
  }

  .logo {
    height: 100px;
    translate: 165%;
  }
}

@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    width: 50%;
  }

  .slider {
    height: 40vh;
    border-radius: 20px;
  }
  .logo {
    height: 100px;
    translate: 70%;
  }
}

@media (max-width: 576px) {
  .feature {
    width: 60%;
    min-width: auto;
  }

  .nav-links {
    width: 85%;
  }

  .logo {
    height: 90px;
    translate: -25%;
  }
}
