* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', 'Arial', sans-serif;
}

/* HEADINGS */

h1, p {
  color: #f2f2f2;
  text-align: center;
  line-height: 1.4;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  color: #f1f1f1;
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* BASIC SETUP */

.page-wrapper {
  width: 100%;
  height: auto;
}

.nav-wrapper {
  width: 100%;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  background-color: #121212;  /* #357899; */
}

.grad-bar {
  width: 100%;
  height: 5px;
  background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB);
  background-size: 400% 400%;
  	-webkit-animation: gradbar 15s ease infinite;
	-moz-animation: gradbar 15s ease infinite;
	animation: gradbar 15s ease infinite;
}

/* NAVIGATION */

.navbar {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  height: 50px;
  overflow: hidden;
}

.navbar img {
  height: 32px;
  width: auto;
  justify-self: start;
  margin-left: 20px;
}

.navbar ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7,1fr);
  justify-self: end;
  
}

.nav-item a {
  color: #f1f1f1;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease-out;
}

.nav-item a:hover {
  color: #3498db; 
}

/* SECTIONS */

.headline {
  width: 100%;
  height: 50vh;
  min-height: 350px;
  background: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1435224668334-0f82ec57b605?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1yZWxhdGVkfDd8fHxlbnwwfHx8fA%3D%3D&w=1000&q=80');
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features {
  width: 100%;
  height: auto;
  background-color: #111;
  display: flex;
  padding: 10px 20px;
  justify-content: space-around;
}

.feature-container {
  flex-basis: 30%;
  margin-top: 10px;
}

.feature-container p {
  color: #f3f3f3;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 15px;
}

.feature-container img {
  width: 100%;
  margin-bottom: 15px;
}

.feature-container-2 {
  flex-basis: 15%;
  margin-top: 10px;
}

.feature-container-2 p {
  color: #f3f3f3;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 15px;
}

.feature-container-2 img {
  width: 100%;
  margin-bottom: 15px;
}


/* SEARCH FUNCTION */

#search-icon {
  color: yellow;
  font-size: 0.9rem;
  margin-top: 3px;
  margin-left: 15px;
  transition: color 0.3s ease-out;
}

#search-icon:hover {
  color: #3498db;
  cursor: pointer;
}

.search {
  transform: translate(-35%);
  -webkit-transform: translate(-35%);
  transition: transform 0.7s ease-in-out;
  color: #3498db;
}

.no-search {
  transform: translate(0);
  transition: transform 0.7s ease-in-out;
}

.search-input {
  position: absolute;
  top: -4px;
  right: -125px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s ease;
}

.search-active {
  opacity: 1;
  z-index: 0;
}

input {
  border: 0;
  border-left: 1px solid #ccc;
  border-radius: 0; /* FOR SAFARI */
  outline: 0;
  padding: 5px;
}

/* MOBILE MENU & ANIMATION */

.menu-toggle .bar{
  width: 25px;
  height: 3px;
  background-color: #3f3f3f;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.menu-toggle {
  justify-self: end;
  margin-right: 25px;
  display: none;
}

.menu-toggle:hover{
  cursor: pointer;
}

#mobile-menu.is-active .bar:nth-child(2){
  opacity: 0;
}

#mobile-menu.is-active .bar:nth-child(1){
  -webkit-transform: translateY(8px) rotate(45deg);
  -ms-transform: translateY(8px) rotate(45deg);
  -o-transform: translateY(8px) rotate(45deg);
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu.is-active .bar:nth-child(3){
  -webkit-transform: translateY(-8px) rotate(-45deg);
  -ms-transform: translateY(-8px) rotate(-45deg);
  -o-transform: translateY(-8px) rotate(-45deg);
  transform: translateY(-8px) rotate(-45deg);
}

/* KEYFRAME ANIMATIONS */

@-webkit-keyframes gradbar {
	0% {
		background-position: 0% 50%
	}
	50% {
		background-position: 100% 50%
	}
	100% {
		background-position: 0% 50%
	}
}

@-moz-keyframes gradbar {
	0% {
		background-position: 0% 50%
	}
	50% {
		background-position: 100% 50%
	}
	100% {
		background-position: 0% 50%
	}
}

@keyframes gradbar {
	0% {
		background-position: 0% 50%
	}
	50% {
		background-position: 100% 50%
	}
	100% {
		background-position: 0% 50%
	}
}

/* Media Queries */

  /* Mobile Devices - Phones/Tablets */

@media only screen and (max-width: 830px) { 
.button1 {
  min-width: 100px;
  max-width: 150px;
}    
.socialbar {
  Width: 70%;
  }
  li {
    padding: 5px;
  }
  .features {
    flex-direction: column;
    padding: 10px;
  }
  
  /* MOBILE HEADINGS */
  
  h1 {
    font-size: 2.1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1.4rem;
  }
  
  /* MOBILE NAVIGATION */
     
  .navbar ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    justify-content: start;
    top: 55px;
    background-color: #191919;
    width: 100%;
    height: calc(100vh - 55px);
    transform: translate(-101%);
    text-align: center;
    overflow: hidden;
  }
  
  .navbar li {
    padding: 15px;
  }
  
  .navbar li:first-child {
    margin-top: 50px;
  }
  
  .navbar li a {
    font-size: 1rem;
  }
   
  .menu-toggle, .bar {
    display: block;
    cursor: pointer;
  }
  
  .mobile-nav {
  transform: translate(0%)!important;
}
  
  /* SECTIONS */
  
  .headline {
    height: 20vh;
  }
    
  .feature-container {
    width: 30%;
    margin-top: 20px;
  }

  .feature-container p {
    margin-bottom: 25px;
  }
  
  
  .feature-container:nth-child(2) {
    order: -1;
  }

  .feature-container-2 {
    margin-top: 20px;
  }

  .feature-container-2 p {
    margin-bottom: 25px;
  }
  
  .feature-container-2 img {
    width: 100%;
    margin-bottom: 15px;
    padding: 50px;
  }

  /* SEARCH DISABLED ON MOBILE */
  
  #search-icon {
    display: none;
  }
  
  .search-input {
  display: none;
 }
  
}




/* social links */
ul {
    margin: 0;
    padding: 0;
}

.decout {
  text-decoration:none;
}

.soc {
    list-style: none;
    margin: 5px;
    justify-content: center;
    vertical-align: middle;
    display: flex;
}

li {
    margin: auto;
}
img.sociallink {
  width: 40px;
  margin: 5px;
}
.tw {
  width: 55px;
  margin: 5 0px;
}
.fb {
    width: 20px;
    margin: 15px 5px;
}

.contenedor {
  display: flex;
  width: 100%;
  height: 100px;
  background-color: rgb(1,1,1); 
  /* background-color: gray; 
  border: 1px solid rgb(152,153,81);
  align-items: center;
  */
}
.separador {
  display: flex;
  width: 100%;
  height: 20px;
  background-color: rgb(f,f,f); 
  /* background-color: gray; 
  border: 1px solid rgb(152,153,81);
  align-items: center;
  */
}

.socialbar {
  Width: 35%;
  height: 85px;
  border-radius: 8px;
  /* padding: auto;    background-color: #111; border: 1px solid rgb(152,153,81); */
  margin: auto;
}

/* Estilos generales para todos los dispositivos */
video {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Estilos específicos para dispositivos con pantallas pequeñas (smartphones) */
@media (max-width: 600px) {
    video {
        width: 80%;
        height: auto;
    }
}

/* Estilos específicos para tabletas en modo vertical */
@media (min-width: 601px) and (max-width: 900px) {
    video {
        width: 80%;
        height: auto;
    }
}

/* Estilos específicos para tabletas en modo horizontal */
@media (min-width: 901px) and (max-width: 1200px) {
    video {
        width: 80%;
        height: auto;
    }
}

/* Estilos específicos para pantallas más grandes (desktop) */
@media (min-width: 1201px) {
    video {
        width: 80%;
        height: auto;
    }
}

/* ==================================== */
/* MEJORAS MOBILE - ACTUALIZACIÓN 2024 */
/* ==================================== */

/* Ajustes generales para mobile */
@media only screen and (max-width: 830px) {
  /* Mejoras en navegación móvil */
  .navbar {
    grid-template-columns: 1fr auto;
    height: 60px;
    padding: 0 15px;
  }
  
  .navbar img {
    height: 28px;
    margin-left: 10px;
  }
  
  .menu-toggle {
    display: block;
    margin-right: 15px;
  }
  
  /* Menú móvil mejorado */
  .navbar ul {
    padding-top: 20px;
    background-color: #121212;
    z-index: 1000;
  }
  
  .navbar li {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2a2a;
  }
  
  .navbar li:first-child {
    margin-top: 0;
  }
  
  .navbar li a {
    font-size: 1.1rem;
    display: block;
    padding: 8px 0;
  }
  
  /* Mejoras en typografía móvil */
  h1 {
    font-size: 1.8rem;
    padding: 0 15px;
  }
  
  h2 {
    font-size: 1.4rem;
    padding: 0 15px;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 15px;
  }
  
  /* Headline optimizado para móviles */
  .headline {
    height: 30vh;
    min-height: 250px;
    padding: 20px;
  }
  
  /* Features responsive mejoradas */
  .features {
    flex-direction: column;
    padding: 15px;
  }
  
  .feature-container, 
  .feature-container-2 {
    flex-basis: 100%;
    width: 100%;
    margin: 15px 0;
  }
  
  .feature-container img, 
  .feature-container-2 img {
    padding: 0;
    margin-bottom: 10px;
  }
  
  .feature-container p, 
  .feature-container-2 p {
    margin-bottom: 20px;
    font-size: 1rem;
  }
  
  /* Social bar optimizada */
  .socialbar {
    width: 90%;
    height: auto;
    padding: 15px 0;
  }
  
  .soc {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  img.sociallink {
    width: 35px;
    margin: 8px;
  }
  
  .tw {
    width: 45px;
  }
  
  .fb {
    width: 18px;
    margin: 12px 6px;
  }
  
  /* Contenedores optimizados */
  .contenedor {
    height: auto;
    padding: 15px 0;
  }
  
  /* Video responsive mejorado */
  video {
    width: 95% !important;
    max-width: 95% !important;
    height: auto;
  }
  
  /* Botones táctiles mejorados */
  .button1 {
    min-height: 44px;
    font-size: 1rem;
    padding: 12px 25px;
    margin: 10px 0;
  }
}

/* Ajustes específicos para pantallas muy pequeñas */
@media only screen and (max-width: 400px) {
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .navbar li a {
    font-size: 1rem;
  }
  
  .socialbar {
    width: 100%;
  }
}

/* Prevención de zoom en inputs iOS */
@media screen and (max-width: 830px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Mejoras de accesibilidad para modo oscuro */
@media (prefers-color-scheme: dark) {
  .navbar, .nav-wrapper {
    background-color: #121212;
  }
}

