/*naav*/
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #F9F9F9;
}

.header {
  background-color: rgba(255, 255, 255, 0.723);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header.masthead {
  position: relative;
  padding-top: 10.5rem;
  padding-bottom: 6rem;
  text-align: center;
  color: #fff;
  background-image: url("../assets/img/imagenn.png");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
}

header.masthead .container,
header.masthead .masthead-heading,
header.masthead .btn {
  position: relative; 
  z-index: 1; 
}





.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 64px;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

.icon-circle {
  background: teal;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

.nav-desktop {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-desktop a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: teal;
}

.language-switch {
  display: flex;
  gap: 10px;
  border-left: 1px solid #cb814f;
  padding-left: 10px;
}

.language-switch span {
  cursor: pointer;
  color: #666;
}

.language-switch .active {
  color: #000;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  background: white;
  border-top: 1px solid #eee;
}

.nav-mobile a {
  text-decoration: none;
  color: #444;
  padding: 8px 0;
  font-weight: 500;
}

.nav-mobile a:hover {
  color: teal;
}

.nav-mobile .language-switch {
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}


/*para el boton */
.btn {
  display: inline-block;
  padding: 10px 80px;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-danger {
  background-color: #b71c1c;
  color: white;
  border: none;
}

.btn-danger:hover {
  background-color: #8f1414;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-xl {
  font-size: 1rem;
  padding: 10px 40px;
}

.text-uppercase {
  text-transform: uppercase;
}

.mb-3 {
  margin-bottom: 1rem;
}
.mb-md-0 {
  margin-bottom: 0;
}

.boton-learn {
  display: block;         /* Que el botón ocupe una línea completa */
  margin: 20px auto 0;    /* Margen arriba y centrado automáticamente */
  width: fit-content;     /* El ancho se ajusta al contenido */
}
.masthead-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}



/**fondo
body {
  margin: 0;

  font-family: 'Segoe UI', sans-serif;
  padding: 0;
  background-image: url('assets/img/imagen.jpg'); /* Aquí la ruta a tu imagen *
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  color: white; /* Para que el texto se vea 
}
**/


a {
   align-items: right;
  justify-content: right;
  text-align: right;
  text-decoration: none;
  color: #0f6a01;
}
.hero {
  background: linear-gradient(to bottom right, #00796b, #43a047);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2rem;
  max-width: 800px;
  margin: auto;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 30px;
  border-radius: 25px;
  display: inline-block;
  font-weight: bold;
  text-transform: uppercase;
}

.btn-danger {
  background: #b71c1c;
  color: white;
}

.btn-danger:hover {
  background: #8f1414;
}

.btn.small {
  padding: 8px 20px;
  font-size: 0.8rem;
}

.main-content {
  background: #f9f9f9;
  padding: 60px 20px;

  margin-bottom: 60px;
 

}

.container {
  max-width: 1100px;
  margin: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.box {
  background: #F9F9F9;
  padding: 10px;
  border-radius: 0px;
box-shadow: none;
  justify-content: space-between;
}

.icons {
  list-style: none;
  padding: 0;
}

.icons li {
  margin-bottom: 10px;
}



/*Iconos*/

.icon-list-horizontal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  
  gap: 40px; /* espacio entre íconos */
  flex-wrap: wrap; /* permite que se acomode en varias líneas si hay poco espacio */
}
.icon-list-horizontal li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color:#F9F9F9;
}

.icon-list-horizontal li p {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #000;
  text-align: center;
}


.icon-img-horizontal {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}


/*Footer*/
.site-footer {
  background-color: #20975B;
  color: #f1f1f1;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links li a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links li a:hover {
  text-decoration: underline;
  color: #4caf50; /* Verde bonito al pasar el mouse */
}


/*read more*/
.read-more-link {
  display: block;
  text-align: right;
  margin-top: 10px;
  color: #0f6a01;
  text-decoration: none;
  font-weight: bold;
  padding-right: 100px
}

.read-more-link:hover {
  text-decoration: underline;
  color: #0c4f00;
}


/*titulo*/
.titulo-hero {
  text-align: left;
  padding-left: 20px;  /* Puedes ajustar el espacio desde el borde */
  margin-top: -60px;   /* Sube el título */
  max-width: 800px;
  font-size: 2rem;
  font-weight: bold;
}
.language-switch span {
  cursor: pointer;
  color: #666;
  margin-right: 5px;
}

.language-switch .active {
  font-weight: bold;
  color: #000;
}
.language-dropdown {
  position: relative;
  display: inline-block;
}

#language-select {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  padding: 5px 10px;
  cursor: pointer;
  appearance: none; /* Ocultar flecha por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
}

#language-select:focus {
  border-color: #166a79;
  outline: none;
}

.language-dropdown::after {

  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #555;
}

/* Estilos de las banderas */
.masthead {
  position: relative; /* necesario para posicionar absolutas dentro */
}

/* Izquierda (tu .flags-top-leftm) */
.flags-top-leftm {
  position: absolute;
  top: 12px;
  left: 12px;          /* <-- en lugar de un número grande fijo */
  display: flex;
  gap: 8px;
  z-index: 10;
}

/* Derecha (tu .flags-top-left) */
.flags-top-left {
  position: absolute;
  top: 12px;
  right: 12px;         /* <-- ¡cambia de left:1280px a right:12px! */
  display: flex;
  gap: 8px;
  z-index: 10;
}

/* Imagen responsiva */ 
.flag {
  width: clamp(24px, 6vw, 60px); /* mínimo 24px, escala con viewport, máximo 60px */
  height: auto;
  border: 1px solid #ccc;
  border-radius: 3px;
  object-fit: cover;
}

/* Ajustes finos para pantallas muy pequeñas */
@media (max-width: 480px) {
  .flags-top-leftm,
  .flags-top-left {
    top: 8px;
  }
}
