/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3rem;
/*========== Colors ==========*/
--hue-color: 0; /* El tono en la escala de grises es irrelevante ya que se usa saturación 0% */
--black-color: hsl(var(--hue-color), 0%, 4%); /* Negro casi puro */
--black-color-alt: hsl(var(--hue-color), 0%, 8%); /* Negro ligeramente más claro */
--title-color: hsl(var(--hue-color), 0%, 0%); /* Negro puro para títulos */
--text-color: hsl(var(--hue-color), 0%, 0%); /* Negro puro para texto */
--text-color-light: hsl(var(--hue-color), 0%, 10%); /* Un negro muy oscuro para el texto claro */
--white-color: hsl(var(--hue-color), 0%, 100%); /* Blanco puro */
--body-color: #fff; /* Gris muy oscuro para el fondo del cuerpo */
--container-color: hsl(var(--hue-color), 0%, 15%); /* Gris oscuro para contenedores */
--text-gradient: linear-gradient(hsl(var(--hue-color), 0%, 4%), hsl(var(--hue-color), 0%, 8%)); /* Gradiente de negros */
--scroll-thumb-color: hsl(var(--hue-color), 0%, 20%); /* Color gris oscuro para el scrollbar */
--scroll-thumb-color-alt: hsl(var(--hue-color), 0%, 25%); /* Un tono ligeramente más claro para el scrollbar */

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 5rem;
  --bigger-font-size: 3.5rem;
  --big-font-size: 2.5rem;
  --h2-font-size: 1rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --text-line-height: 2rem;
  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  /*========== Margenes Bottom ==========*/
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 7.5rem;
    --bigger-font-size: 4.5rem;
    --big-font-size: 4rem;
    --h2-font-size: 1rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3 {
  color: var(--title-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button,
input {
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

.divider {
  height: 6px;
  background-color: #bbb;
  border: 0;
  border-top: 2px solid #999; /* Detalle superior */
  width: 50%; 
  margin: 20px auto;
}


/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 4rem 0 2rem;
}

.section__title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: var(--mb-2-5);
  top: 8rem;
}

.section__title-gradient {
  background: var(--text-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/*=============== LAYOUT ===============*/
.main {
  overflow: hidden;
  background-image: url(home_tela_blanca.jpg);
  max-height: 100vh;
}

.container {
  max-width: 90%;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}

/*=============== HEADER ===============*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background:  hsl(0, 0%, 95%);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  /* width: 120%; */
  height: 3rem;
}

.nav__toggle {
  font-size: 1.2rem;
  color: black;
  cursor: pointer;
}

.highlight {
  color: rgb(3, 3, 174); /* Color azul para "tus necesidades" */
  font-weight: bold; /* Negritas */
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: hsl(0, 0%, 95%);
    top: -100%;
    left: 0;
    width: 100%;
    padding: 4rem 0 3rem;
    transition: .4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1rem;
}

.nav__link {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  text-transform: capitalize;
  font-weight: var(--font-semi-bold);
  /* background: var(--text-gradient); */
  /* color: transparent; */
  background:  hsl(0, 0%, 95%);
  color: black;
  /* -webkit-background-clip: text;
  background-clip: text; */
  transition: .4s;
  padding: 0.1rem 0.3rem;
}

.nav__link:hover {
  /* background: var(--white-color);
  color: transparent; */
  background-color: black;
  color: white;
  /* -webkit-background-clip: text;
  background-clip: text; */
  border-radius: 8rem;
  transition: background 0.5s;
}

.nav__close {
  position: absolute;
  font-size: 1.5rem;
  top: 1rem;
  right: 1rem;
  color: black;
  cursor: pointer;
}

/* show menu */
.show-menu {
  top: 0;
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
}

/* Active link */
.active-link {
  /* background: var(--white-color);
  color: transparent; */
  background: black;
  color: white;
  border-radius: 5rem;
  /* -webkit-background-clip: text;
  background-clip: text; */
}

/*=============== HOME ===============*/
.home {
  overflow: hidden;
  max-height: 100vh;
}

.home__img {
  /* height: 100vh; */
  position: absolute;
  /* top: 5rem; */
  left: 70%;
  border-radius: 850px 850px 850px 850px;
}

.home__data {
  padding-top: 5rem;
}

.home__header {
  position: relative;
}

.home__title {
  position: absolute;
  top: -4rem;
  left: 1rem;
  line-height: 3rem;
  font-size: 3rem;
  font-weight: 200;
  background: var(--text-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}


.highlight {
  color: rgb(9, 9, 166); /* Blue for "tus necesidades" */
  font-weight: bold;
  font-size: 3rem;
}

.home__subtitle {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-2-5);
}

.home__title-description {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

.home__description {
  margin-bottom: var(--mb-2-5);
  line-height: var(--text-line-height);
}

@media (max-width: 568px) {
  .home__img {
    display: none; /* Hide the image on small screens */
  }
}
/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: rgb(5, 5, 153);
  color: var(--white-color);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  transition: .3s;
  margin-top: 14rem;
  margin-left: 8%;
  font-weight: bold;
}

.button:hover {
  background-color: rgb(5, 5, 251);;;
}

.button__icon {
  font-size: 1.2rem;
}

.button--flex {
  display: inline-flex;
  align-items: center;
  column-gap: .75rem;
}

/*=============== NOSOTROS SECTION STYLES ===============*/
#quienes-somos {
  background: #fff;
  padding: 3rem 0;
}

#quienes-somos img {
  display: block;
  margin: 0 auto;
  width: 50%;
  /* max-width: 500px; */
  border-radius: 10px;
}

#quienes-somos h3 {
  top: 6rem;
  left: 10rem;
  text-align: center;
  font-size: 2rem;
  color: darkblue;
  margin: 2rem 2rem;
}



/* vision-mission */
/* vision-mission */

/* Main Container */
.specs__container {
  position: relative;
  padding: 1rem; /* Adds padding for better spacing on small screens */
}

/* Specs Content */
.specs__content {
  display: grid;
  row-gap: 0.5rem;
}

/* Specs Data */
.specs__data {
  display: grid;
  row-gap: 0.5rem;
}

/* Specs Data List */
.specs__data ul {
  list-style-type: circle;
  margin-left: 1rem; /* Aligns circles closer to text */
  padding-left: 0;
}

.specs__data li {
  display: list-item;
  margin-left: 1rem;
}

/* Specs Icon */
.specs__icon {
  font-size: 1.2rem;
  color: var(--white-color);
}

/* Specs Title */
.specs__title {
  font-weight: bolder;
  font-size: 1.5rem;
  color: darkblue;
}

/* Specs Subtitle */
.specs__subtitle {
  font-size: 1rem;
}

/* Specs Image */
.specs__img {
  width: 250px;
  position: absolute;
  top: 2rem;
  right: -4rem;
  transition: width 0.3s ease; /* Smooth transition on resize */
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Stack items on smaller screens */
  .specs__content {
    grid-template-columns: 1fr; /* Stack vertically */
  }

  .specs__img {
    position: relative;
    width: 100%; /* Makes image responsive */
    max-width: 350px; /* Prevents it from getting too large */
    margin: 1rem auto; /* Centers image */
  }
}



/*=============== SPONSOR ===============*/
.sponsor__img {
  width: 90px;
}

.sponsor__container {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  row-gap: 5rem;
  justify-items: center;
  align-items: center;
}


/*=============== DISCOUNT ===============*/
.discount__container {
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: .75rem;
}

.discount__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-75);
}

.discount__description {
  margin-bottom: var(--mb-1);
}

.discount__img {
  width: 300px;
  position: absolute;
  top: 4rem;
  right: -11rem;
}





/*=============== Services ===============*/

.services__section {
  background-color: #E1E5F8;
  margin-top: 3rem;
  height: 100vh;
}

.services__line {
  position: relative;
  top: 3rem;
  line-height: 4rem;
  font-size: 2rem;
}

.services__container {
  grid-template-columns: repeat(3, 2fr);
  gap: 2rem 1.5rem;
  padding-top: 2rem;
}

.services__card {
  position: relative;
  height: 130px;
  /* width: 70%; */
  background-color: #fff;
  padding: .5rem;
  border-radius: .5rem;
  display: grid;
}

.services__img {
  height: 50%;
  position: absolute;
  inset: 0;
  margin-right: auto;
  margin-left: auto;
  top: 1rem;
  /* top: -3rem; */
}

.services__content {
  align-self: flex-end;
}

.services__title, .services__subtitle {
  font-size: var(--small-font-size);
}

.services__subtitle {
  font-weight: var(--font-semi-bold);
}

/* .services__button {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  padding: .5rem;
  border-radius: .35rem;
} */
/*=============== FOOTER ===============*/

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: black;
  color: white;
  flex-wrap: wrap;
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  margin-right: 40px;
}

.footer__logo-image {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.footer__name {
  margin: 0;
  color: white;
}

.footer__contact {
  display: flex;
  align-items: center;
  margin-right: 40px;
}

.footer__item {
  display: flex;
  align-items: center;
  margin: 0 15px;
  color: white;
}

.footer__item a {
  text-decoration: none;
  color: white;
  margin-left: 5px;
}

.footer__social {
  display: flex;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: black;
  margin-left: 10px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.footer__social-icon:hover {
  background-color: #f0f0f0;
  color: black;
}

/* Responsive adjustments for screens 768px and below */
@media (max-width: 768px) {
  .footer {
      flex-direction: column;
  }

  .footer__logo,
  .footer__social {
      margin: 10px 0;
  }

  .footer__contact {
      flex-direction: column; /* Stack phone and email vertically */
      align-items: center;
      justify-content: center;
  }

  .footer__item {
      margin: 5px 0; /* Add space between stacked items */
  }
}


/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  background-color: var(--container-color);
  border-radius: .25rem;
  padding: .45rem;
  opacity: 9;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--black-color);
  opacity: 1;
}

.scrollup__icon {
  color: var(--white-color);
  font-size: 1.35rem;
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 5rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .60rem;
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll-thumb-color-alt);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
  .section__title {
    font-size: 1.5rem;
  }
  .home__container {
    position: relative;
    grid-template-columns: .8fr 1fr;
  }
  .home__img {
    z-index: -1;
  }

  .home__title {
    top: -4rem;
    width: 20%;
  }
  
  
  /* .home__data {
    padding-top: 1rem;
  } */
  
  .specs__img {
    width: 200px;
  }
  .case__container {
    grid-template-columns: .6fr 1fr;
  }
  .case__img {
    width: 220px;
    top: -2rem;
    left: -9rem;
  }
  .case__data {
    padding: 0;
  }
  .products__container {
    grid-template-columns: 142px;
    justify-content: center;
  }
}

@media screen and (max-width: 575px) {
 
  .home__img {
    z-index: -1;
    /* left: 70%; */
  }

}
  

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container {
    position: relative;
    grid-template-columns: .8fr 1fr;
  }
  .home__data {
    padding-top: 2rem;
  }
  .home__img {
    top: -2rem;
    /* left: 25rem; */
    left: 70%;
  }
  .specs__img {
    position: initial;
  }
  .specs__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
  }
  .case__img {
    position: initial;
  }
  .case__data {
    padding: 0;
  }
  .case__container {
    grid-template-columns: max-content 250px;
    justify-content: center;
    align-items: center;
    column-gap: 2rem;
  }
  .discount__img {
    position: initial;
  }
  .discount__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
  }
  .products__container {
    grid-template-columns: repeat(3, 142px);
    justify-content: center;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }
  .section {
    padding: 3rem 0 2rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  /* .nav__logo {
    /* width: 5rem; 
  }*/
  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }
  .nav__link {
    font-size: var(--normal-font-size);
    text-transform: capitalize;
  }
  .nav__toggle, .nav__close {
    display: none;
  }
  .home__container {
    position: relative;
    grid-template-columns: repeat(2, 1fr);
  }
  .home__img {
    top: -3rem;
    left: 70%;
  }
  .home__data {
    padding-top: 8rem;
  }
  .specs__img {
    width: 300px;
  }
  .case__container {
    column-gap: 5rem;
  }
  .case__img {
    width: 300px;
  }
  .case__description {
    margin-bottom: var(--mb-2);
  }
  .discount__container {
    grid-template-columns: 250px max-content;
    justify-content: center;
    column-gap: 5rem;
    padding: 3rem 0;
  }
  .discount__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
  }
  .discount__description {
    margin-bottom: var(--mb-2);
  }
  .products__container {
    grid-template-columns: repeat(3, 162px);
    gap: 6rem 3rem;
    padding-top: 5rem;
  }
  .products__card {
    height: 152px;
    padding: .85rem;
  }
  .products__img {
    width: 95px;
  }
  .footer__container {
    grid-template-columns: .4fr .7fr .7fr 1fr;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .home__img {
    width: 120%;
    top: -1%;
    left: 55%;
  }
  .home__title {
    top: -5%;
    left: 5%;
  }
  .home__description {
    padding-right: 5rem;
  }
  .sponsor__img {
    width: 100px;
  }
  .discount__img {
    width: 350px;
  }
  .footer__container {
    padding-top: 3rem;
  }
  .footer__copy {
    margin-top: 9rem;
  }
}

/* added */

/*=============== BUTTONS ===============*/
/*=============== LOGOS ===============*/
textLogo {
  display: block;
    text-align: center;
  font-size: 2rem; 
  font-weight: bold; 
  margin-top: 70px; 
  color: #333; 
}

@keyframes slide{
  form{
    transform:translateX(0);
  }
  to {
    transform:translateX(-100%) ;
  }
}

.logos{
  overflow: hidden;
  padding: 60px ;
  background: white;
  white-space: nowrap;
  position: relative;
}
.logos:before{
  position:absolute;
  top:0;
  left:0;
  width:250px;
  height: 100%;
  background: linear-gradient(to left,rgba(255,255,255,0),white);
  content:"" ;
  z-index: 2;
}
.logos:after{
  position:absolute;
  top:0;
  right:0;
  width:250px;
  height: 100%;
  background: linear-gradient(to right,rgba(255,255,255,0),white);
  content:"" ;
  z-index: 2;
}
.logos:hover .logos-slide{
  animation-play-state: paused;
}

.logos-slide{
  display: inline-block;
  animation: 25s slide infinite linear;
}

.logos-slide img{
  height: 60px;
  margin: 0 40px;
  
}


/*=============== Contacto ===============*/

.containerform {
  max-width: 100%;
  margin: 30px;
  padding: 40px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

p.large-text {
  font-size: 24px;
  font-weight: bold;
  color: #555;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

label{
  margin-top: 10px;
  color: #555;
  width: 100%;
  max-width: 500px;
  text-align: left;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 500px;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

buttonForm {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

buttonForm:hover {
  background-color: #4cae4c;
}

.map-container {
  margin-top: 40px;
  background-color: #ffffff;
  padding: 5px;
}

/*=============== PRODUCTS ===============*/

.products__section {
  background-color: white;
  /* min-height: 100vh; */
  padding: 8rem 0; /* Añadir padding para crear espacio */
}

 /* Center the title */
.products__title {
  text-align: center;
  margin-top: 1rem; /* Reducir el margen superior */
  /* margin-bottom: 2rem; Añadir un margen inferior para espacio */
}

/* .products__line {
  position: relative;
  top: 3rem;
  line-height: 4rem; 
  /* font-size: 2.5rem; 
} */

/* Grid for the products section */
.products__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Create 4 equal columns */
  /* gap: 2rem; Add space between the grid items */
  padding-top: 0;
}

/* Style for individual product cards */
.products__card {

  background-color: #f9f9f9; /* Light background for each card */
  padding: 1.5rem; /* Add padding inside the card */
  border-radius: 8px; /* Rounded corners */
  text-align: center; /* Center the content inside the card */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /*Light shadow for cards */
  height: 60vh; /* Make each card 80% of the viewport height */
  display: flex; /* Align content inside the card */
  flex-direction: column; /* Stack content vertically */
  justify-content: space-between; /* Spread content inside the card */
}

.products__img {
  max-width: 100%; /* Make the image responsive */
  height: auto;
  margin-bottom: 1rem; /* Space between the image and the title */
}

.products__content h3 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

/* Adjust the grid for smaller screens */
@media screen and (max-width: 1024px) {
  .products__container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
  }
}

@media screen and (max-width: 576px) {
  .products__container {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }

  /* .products__line {
    position: relative;
    top: 2rem;
    line-height: 2rem;
    font-size: 2rem;
  } */
}

/*=============== CASE SECTION STYLES ===============*/

.case__container {
  display: grid;
  grid-template-columns: 1fr 3fr; /* Image (1 part), Text (3 parts) */
  gap: 2rem; /* Space between the text and the image */
  align-items: start; /* Align items at the top */
  width: 90%; /* Container spans 90% of the screen width */
  margin: 0 auto; /* Center the container horizontally */
}

.case__img {
  width: 100%; /* Full width within its grid column */
  max-width: 300px; /* Limit the maximum width */
  height: auto; /* Maintain the aspect ratio */
  justify-self: center; /* Center the image within its container */
  margin: 1.5rem 0; /* Add vertical spacing */
}

.case__data {
  padding: 2rem; /* Add padding around the text */
  text-align: justify; /* Justify the text for clean alignment */
}

.case__description {
  margin-bottom: 1.5rem; /* Space between paragraphs */
  line-height: 1.6; /* Increase line height for better readability */
}

/* Responsive Design */
@media (max-width: 768px) {
  .case__container {
    grid-template-columns: 1fr; /* Stack content vertically */
    gap: 1rem; /* Reduce gap for smaller screens */
  }

  .case__img {
    width: 80%; /* Adjust image width for smaller screens */
    max-width: 350px; /* Limit width further for small screens */
    max-height: 400px; /* Control image height */
    margin: 1rem auto; /* Center image in single-column layout */
    object-fit: contain; /* Maintain aspect ratio */
    display: block; /* Ensure the image behaves like a block element */
  }

  .case__data {
    padding: 1.5rem; /* Adjust padding for smaller screens */
    text-align: justify;
  }
}



/* Section for "Nosotros" */
#nosotros {
  position: relative; /* Ensure relative positioning for stacking */
  height: 100vh; /* Full height of the viewport */
  display: flex; /* Use flexbox to center the content */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  overflow: hidden; /* Hide any overflow */
}

/* Make the image cover the entire viewport */
#nosotros img {
  position: absolute; /* Position the image absolutely */
  top: 0;
  left: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  object-fit: cover; /* Ensure the image covers the area */
  z-index: -1; /* Push the image behind the content */
  filter: brightness(0.5); /* Darken the image for better readability */
}

/* Content container with white background */
.nosotros__content {
  background-color: white; /* White background for the text */
  padding: 2rem; /* Padding around the content */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow for a card effect */
  text-align: center; /* Center the text */
  z-index: 1; /* Ensure it appears above the image */
  max-width: 600px; /* Limit the width of the text block */
  position: relative; /* Ensure stacking context for z-index */
}

/* Style for the title and paragraph */
#nosotros h2, #nosotros p {
  color: black; /* Black text */
}

#nosotros h2 {
  font-size: 2.5rem; /* Adjust font size */
  margin-bottom: 1rem; /* Space below the title */
}

#nosotros p {
  font-size: 1.25rem; /* Adjust font size for the paragraph */
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  #nosotros h2 {
    font-size: 2rem; /* Adjust title size for smaller screens */
  }

  #nosotros p {
    font-size: 1rem; /* Adjust paragraph size for smaller screens */
  }
}


/* Título de la galería */
.gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  margin: 40px 0;
  color: #333;
  font-weight: 700;
}

/* Grid de la galería */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 80%;
  margin: 0 auto;
}

/* Estilos de las imágenes de la galería */
.gallery__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal-content {
  /* position: relative;
  max-width: 80%;
  width: 600px;
  height: auto; */
  animation: fadeIn 0.5s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 120%; /* Abarca el 80% de la pantalla */
  max-height: 120%; /* Abarca el 80% de la pantalla */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.modal img {
  width: 100%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* Botones de navegación dentro del modal */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}

.prev {
  left: -40px;
}

.next {
  right: -40px;
}

/* Transición modal */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* Adaptación responsiva */
@media (max-width: 768px) {
  .modal-content {
      max-width: 90%;
  }

  .prev, .next {
      left: 10px;
      right: 10px;
  }

  .gallery__title {
      font-size: 2rem;
  }
}

/* Estilos para la sección imgs_inicio */
#imgs_inicio {
  padding: 5rem 0 3rem 0; /* Espacio de 5rem arriba y 3rem abajo */
  display: flex;
  justify-content: center;
}

#imgs_inicio .slider {
  display: flex; /* Hacer que las imágenes se dispongan una al lado de la otra */
  justify-content: center; /* Centrarlas horizontalmente */
  width: 90%; /* Ocupa el 90% del ancho de la página */
  max-width: 1200px; /* Límite máximo de ancho para evitar que las imágenes se estiren demasiado */
  gap: 2rem; /* Espacio entre las imágenes */
  margin: 0 auto; /* Centramos todo el contenedor del slider */
}

#imgs_inicio .slider img {
  width: 48%; /* Cada imagen ocupará el 48% del contenedor, dejando espacio para el margen */
  height: auto; /* Mantener las proporciones de la imagen */
  object-fit: cover; /* Asegurarse de que la imagen se vea bien dentro de su contenedor */
  border-radius: 10px; /* Bordes redondeados para un toque profesional */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra ligera para un efecto visual atractivo */
}

/* Diseño responsivo */
@media (max-width: 768px) {
  #imgs_inicio .slider {
    flex-direction: column; /* En pantallas pequeñas, las imágenes se apilan verticalmente */
    align-items: center;
  }

  #imgs_inicio .slider img {
    width: 100%; /* Cada imagen ocupa el 100% del ancho en dispositivos pequeños */
    margin-bottom: 1rem; /* Espacio inferior entre las imágenes cuando están apiladas */
  }
}

/* .divider {
  border: 0;
  border-top: 2px solid #000;
  margin: 20px 0;
} */

.divider {
  height: 6px;
  background-color: #bbb;
  border: 0;
  border-top: 2px solid #999; /* Detalle superior */
  width: 50%; 
  margin: 20px auto;
}
