/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f8f9fa;
  color: #333;
}

header {
  background-color: #312d2a;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.menu {
  display: flex;
  align-items: center; /* Align items vertically */
}

.menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px; /* Add padding for better touch interaction */
  display: block; /* Make the entire area clickable */
}

.menu a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none; /* Hidden by default */
  flex-direction: column;
  cursor: pointer;
  padding: 10px; /* Add padding for easier tapping */
}

.menu-toggle span {
  background: white;
  height: 3px;
  width: 25px;
  margin: 4px 0; /* Adjusted margin for better spacing */
  border-radius: 1px; /* Slightly rounded corners */
  display: block;
}

/* Language Selector Styles */
.language-selector a {
  padding: 5px 8px; /* Slightly less padding than main items if needed */
  /* color: #ccc; */ /* Optional: slightly different color for non-active */
}

.language-selector a:hover {
  /* color: white; */
  text-decoration: underline; /* Consistent hover with other links */
}

.language-selector .active-lang {
  font-weight: bold;
  text-decoration: underline;
  color: #fff; /* Ensure active language is prominent */
}

.language-selector-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  background: #222;
  border-radius: 20px;
  padding: 3px 8px;
  width: 80px;
  height: 36px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lang-option {
  flex: 1;
  text-align: center;
  z-index: 2;
  font-weight: 600;
  color: #bbb;
  font-size: 1em;
  transition: color 0.2s;
  cursor: pointer;
  padding: 0 4px;
  line-height: 30px;
}

.lang-option.active {
  color: #fff;
}

.switch-slider {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 32px;
  height: 30px;
  background: linear-gradient(90deg, #57068c 0%, #00c2ff 100%);
  border-radius: 16px;
  transition: left 0.25s cubic-bezier(.4,2,.6,1), background 0.3s;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Adjustments for mobile menu if needed */
@media (max-width: 768px) {
  .language-selector {
    display: flex; /* Asegura que los elementos estén alineados horizontalmente */
    justify-content: center; /* Centra el selector en el menú */
    align-items: center; /* Alinea verticalmente */
    margin: 10px 0; /* Espaciado consistente con otros elementos del menú */
    text-align: center; /* Asegura que el texto esté centrado */
  }
  .language-selector a {
    padding: 10px 15px; /* Ajusta el padding para que sea más fácil de tocar */
    font-size: 16px; /* Tamaño de fuente consistente con otros enlaces del menú */
    color: #fff; /* Color del texto para que sea visible en el fondo del menú */
    text-decoration: none; /* Elimina subrayados */
    border-radius: 5px; /* Bordes redondeados para un diseño moderno */
    transition: background-color 0.3s ease; /* Animación suave al pasar el mouse */
  }
  .language-selector a:hover {
    background-color: #444; /* Cambia el fondo al pasar el mouse */
  }
  .language-selector .active-lang {
    font-weight: bold; /* Resalta el idioma activo */
    background-color: #4a4a4a; /* Fondo diferente para el idioma activo */
    color: #fff; /* Asegura que el texto sea visible */
    border-radius: 5px; /* Bordes redondeados */
  }
}

/* Profile Section */
.profile-section {
  text-align: center;
  padding: 120px 20px 80px 20px; /* Increased top padding for better visibility */
  background-color: #fff;
  background: linear-gradient(to bottom, rgba(0, 25, 48, 0.8), rgba(0, 25, 48, 0.6)),url('../img/Neon\ Tropical\ Blue\ Banner_70-1.webp');
  /* background-image: url('../img/Neon\ Tropical\ Blue\ Banner_70-1.webp'); */
  background-size: cover;
  background-position: center; /* Ensure background image is centered */
  position: relative; /* For absolute positioning of monstera */

}

.profile-card {
  display: inline-block;
  padding: 20px;
  /*background: #312d2a;*/
  color: white;
  border-radius: 10px;
  text-shadow: 4px 8px 4px #000000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s;
}

.profile-logo img {
  width: 160px;
  height: auto;
  border-radius: 30%;
  margin-bottom: 15px;
}

.profile-name {
  font-size: 24px;
  margin: 10px 0;
}

.profile-description {
  font-size: 16px;
}

/* Services Section */
.services-section {
  padding: 90px 20px;
  background-color: #001930;
  color: white;
}
.boton-esencia{
  background-color: #FFFFFF;
  background-image: unset;
  border-radius: 30px;
  padding-block-start: 10px;
  padding-block-end: 10px;
  margin-block-start: -69px;
  color: #000000;
  box-shadow: 5px 5px 10px 0px #000000;
}
@media (max-width: 600px) {
  .boton-esencia {
    font-size: 1.2rem;
    padding: 1px 1px;
  }
}
.content_esencia{
  align-items: center;
  margin-left: 30%;
  margin-right: 30%;
}
.boton-esencia {
  background-color: white;
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1px 1px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 90px;
    text-align: center;
   
}
.services-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-item {
  text-align: center;
  background: #f1f1f1;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #001930;
  padding: 20px;
  width: 300px;
  animation: slideUp 1s;
}

.service-item img {
  width: 130px;
  height: auto;
  margin-bottom: 15px;
}

/* Projects Section */






.progress-container {
  width: 100%;
  background: #e0e0e0;
  border-radius: 5px;
  margin-top: 10px;
  position: relative;
  height: 20px;
}

.progress-bar {
  height: 100%;
  background: #4caf50;
  color: white;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
  border-radius: 5px;
}
.projects-section {
  padding: 50px 20px;
  background-color: #33333314;
}

.projects-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-item {
  text-align: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  animation: zoomIn 1s;
  color: #001930;
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Games Section */
.games-section {
  padding: 50px 20px;
  background-color: #f1f1f1;
  background: linear-gradient(to bottom, rgba(0, 25, 48, 0.8), rgba(0, 25, 48, 0.6)),url(../img/—Pngtree—tropical\ leaves\ holographic\ hexagon\ frame_13454207.jpg);
  position: relative;
  /* background-image: url(../img/—Pngtree—tropical\ leaves\ holographic\ hexagon\ frame_13454207.jpg); */
  background-size: cover;
  color: white;
}

/* Contact Section */
.contact-section {
  padding: 50px 20px;
  text-align: center;
  background-color: #fff;
  color: #000000 !important;
}

form {
  display: inline-block;
  width: 100%;
  max-width: 500px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  padding: 20px;
  background-color: #333;
  color: white;
  text-align: center;
}

footer a {
  color: #007bff;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
/* Order: 992px, 768px, 600px, 480px */

/* Styles for screens up to 992px (large tablets, small desktops) */
@media (max-width: 992px) {
  nav .container {
    padding: 0 30px; /* Slightly increase padding for larger small screens */
  }

  .profile-section {
    padding: 80px 20px;
  }
  .profile-card {
    padding: 20px; 
  }
   .profile-logo img {
    width: 120px; 
  }
  .profile-name {
    font-size: 22px;
  }
  .profile-description {
    font-size: 15px;
  }
  .monstera {
    width: 180px; 
    top: 5px;
    left: 5px;
    opacity: 0.9;
  }

  .services-section {
    padding: 40px 20px;
  }
  .content_esencia {
    margin-left: 20%; 
    margin-right: 20%;
  }
  .boton-esencia { /* Specific style for 992px, overrides base, overridden by 768, 600, 480 */
    font-size: 1.4rem;
    padding: 10px 18px;
    margin-block-start: -60px;
    margin-bottom: 150px;
  }

  .service-item, .project-item {
    width: calc((100% - 40px) / 3); /* 3 items per row, assuming 20px gap */
    padding: 18px;
  }
  .service-item h3, .project-item h3 {
    font-size: 1.25rem;
  }
  .service-item p, .project-item p {
    font-size: 0.95rem;
  }
  
  .games-section {
    padding: 40px 15px;
  }
}

/* Styles for screens up to 768px (tablets) */
@media (max-width: 768px) {
  nav .container {
    padding: 0 15px; 
  }

  .menu { /* Hamburger menu appears */
    display: none; 
    flex-direction: column;
    width: 100%; 
    background-color: #312d2a; 
    position: absolute;
    top: 70px; 
    left: 0;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
  }
  .menu.active {
    display: flex; 
  }
  .menu ul {
    flex-direction: column;
    width: 100%;
  }
  .menu li {
    margin: 0; 
    text-align: center; 
    border-bottom: 1px solid #444; 
  }
  .menu li:last-child {
    border-bottom: none; 
  }
  .menu a {
    padding: 15px; 
    font-size: 16px; 
    width: 100%; 
  }
  .menu-toggle { /* Hamburger icon shown */
    display: flex; 
    order: 1; 
  }

  .profile-section {
    padding: 60px 15px; 
  }
  .profile-card {
    padding: 15px; 
    width: 90%; 
    max-width: 400px; 
  }
  .profile-logo img {
    width: 100px; 
  }
  .profile-name {
    font-size: 20px; 
  }
  .profile-description {
    font-size: 14px; 
  }
  .monstera {
    width: 150px; 
    top: 10px; 
    left: 10px; 
    opacity: 0.8; 
  }

  .services-section {
    padding: 30px 15px;
  }
  .content_esencia {
    margin-left: 15%; 
    margin-right: 15%;
  }
  .boton-esencia { /* Overrides 992px, overridden by 600 & 480 */
    font-size: 1.3rem; 
    padding: 8px 15px; 
    margin-block-start: -50px; 
    margin-bottom: 100px;
  }
  .service-item, .project-item {
    width: calc((100% - 20px) / 2); /* 2 items per row, assuming 20px gap */
    padding: 15px;
  }
  .service-item h3, .project-item h3 {
    font-size: 1.2rem;
  }
  .service-item p, .project-item p {
    font-size: 0.9rem;
  }

  .games-section {
    padding: 30px 15px;
    background-position: center; /* Ensure background scales okay */
  }

  footer {
    padding: 15px; 
    font-size: 0.9rem; 
  }
  footer a {
    margin: 5px; 
    padding: 5px; 
    font-size: 0.9rem; 
  }
}

/* Styles for screens up to 600px (large phones) */
@media (max-width: 600px) {
  .boton-esencia { /* Overrides 992 & 768, overridden by 480 */
    font-size: 1.2rem;
    padding: 5px 10px; /* Adjusted from 1px 1px */
    /* margin-block-start and margin-bottom will be inherited from 768px or adjusted in 480px */
  }
  .content_esencia { /* Adjusting for slightly larger phones if needed */
    margin-left: 10%;
    margin-right: 10%;
  }
}

/* Styles for screens up to 480px (small phones) */
@media (max-width: 480px) {
  .profile-section {
    padding: 40px 10px; 
  }
  .profile-card {
    padding: 10px;
  }
  .profile-logo img {
    width: 80px; 
  }
  .profile-name {
    font-size: 18px; 
  }
  .profile-description {
    font-size: 13px; 
  }
  .monstera {
    width: 100px; 
    opacity: 0.7;
    /* display: none; */ /* Option to hide if too cluttered */
  }

  .services-section {
    padding: 25px 10px; /* Further reduce padding */
  }
  .content_esencia { /* Overrides 600px */
    margin-left: 5%; 
    margin-right: 5%;
  }
  .boton-esencia { /* Overrides 992, 768 & 600 */
    font-size: 1.1rem; 
    padding: 6px 12px; 
    margin-block-start: -40px; 
    margin-bottom: 80px; 
  }
  .service-item, .project-item {
    width: 90%; /* 1 item per row */
    margin-left: auto;
    margin-right: auto;
    padding: 15px; 
  }
   .service-item h3, .project-item h3 {
    font-size: 1.1rem;
  }
  .service-item p, .project-item p {
    font-size: 0.85rem;
  }

  .games-section {
    padding: 25px 10px;
    font-size: 0.9rem; /* Adjust text size if needed */
  }
  
  .contact-section {
    padding: 40px 10px;
  }
  form input, form textarea, form button {
    font-size: 15px; /* Ensure form elements are usable */
  }


  footer {
    padding: 10px; 
    font-size: 0.85rem; 
  }
  footer a {
    display: block; /* Stack links */
    margin: 8px auto; 
    padding: 8px; 
    font-size: 0.85rem; 
  }
}

.monstera{
  z-index: 21;
  display: inline-block;
  vertical-align: top;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 200px; /* Default size for larger screens */
  transition: width 0.3s ease, opacity 0.3s ease, top 0.3s ease, left 0.3s ease; /* Smooth transitions */
}

.highlight-banner {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #1e0066, #57068c, #c81d8e, #00c2ff);
  background-size: 400% 400%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gradientShift 10s ease infinite;
  box-shadow: inset 0 -2px 20px rgba(0, 0, 0, 0.3);
}
.highlight-content{
  /* text-align: center; */
  color: white;
  padding: 20px;
}

.logo-wrapper img {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

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

/* Animación de fondo */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.clients-section {
  margin: 40px 0 60px 0;
}

.client-logo-cintillo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  position: relative;
  overflow: hidden;
}

#client-logo {
  max-width: 220px;
  max-height: 100px;
  object-fit: contain;
  transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
  opacity: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(49,45,42,0.08);
  padding: 12px 24px;
}
#client-logo.fade-out {
  opacity: 0;
  transform: translate(-50%,-50%) scale(0.95);
}
#client-logo.fade-in {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1.05);
}
.modern-accessibility {
  background: linear-gradient(90deg, #f7f8fa 60%, #e0e7ef 100%);
  border-radius: 24px;
  margin: 48px auto 48px auto;
  max-width: 900px;
  box-shadow: 0 4px 32px rgba(49,45,42,0.10);
  padding: 36px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.accessibility-content {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
}

.accessibility-icon {
  font-size: 3.5em;
  color: #6c63ff;
  background: #fff;
  border-radius: 50%;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(49,45,42,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-text {
  flex: 2;
  min-width: 220px;
}

.accessibility-text h2 {
  margin-top: 0;
  color: #23272f;
  font-size: 2em;
  margin-bottom: 12px;
}

.accessibility-text p {
  color: #4b5563;
  margin-bottom: 10px;
  font-size: 1.08em;
}

.accessibility-text a {
  color: #00c2ff;
  text-decoration: underline;
  font-weight: 500;
}

.accessibility-image img {
  max-width: 120px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(49,45,42,0.10);
  background: #fff;
  padding: 8px;
}

@media (max-width: 700px) {
  .modern-accessibility, .accessibility-content {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 8px;
  }
  .accessibility-image img {
    max-width: 80px;
  }
}