/* Inicio.css - Estilos específicos para la página de inicio */

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 100%;
  margin: var(--header-height, 115px) 0px;
  padding: 0;
}

/* Estilos para el carrusel - VERSIÓN CORREGIDA */
.swiper-container {
  width: 100%;
  height: 90vh; /* Altura ajustada para no esconderse */
  position: relative;
  overflow: hidden;
  z-index: 1; /* Asegura que el carrusel esté detrás de elementos con mayor prioridad */
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botones de navegación */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}

.swiper-button-next {
  right: 20px;
}

.swiper-button-prev {
  left: 20px;
}

/* Paginación */
.swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* Estilos para la sección hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.hero__description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero__button {
  background: orange;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
  font-weight: bold;
}

.hero__button:hover {
  background: darkorange;
  transform: translateY(-2px);
}

/* Estilos para la sección blog - VERSIÓN CORREGIDA */
.blog {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
}

.blog__wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.blog__container {
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.blog__post {
  background: #fff;
  padding: 30px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__post:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog__post-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

.blog__image {
  width: 300px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog__content {
  text-align: left;
}

.blog__post-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.blog__post-meta {
  font-size: 0.9rem;
  font-style: italic;
  color: #888;
  margin-bottom: 1rem;
}

.blog__post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

.blog__read-more {
  color: orange;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.blog__read-more:hover {
  color: darkorange;
  text-decoration: underline;
}

/* Media Queries para responsividad */
@media (max-width: 1200px) {
  .swiper-container {
    height: 70vh;
  }

  .blog__image {
    width: 250px;
    height: 180px;
  }
}

@media (max-width: 992px) {
  .swiper-container {
    height: 60vh;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .blog__post-wrapper {
    gap: 20px;
  }

  .blog__image {
    width: 200px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .swiper-container {
    height: 50vh;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 18px;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .blog__post-wrapper {
    flex-direction: column;
  }

  .blog__image {
    width: 100%;
    height: auto;
    max-height: 250px;
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .swiper-container {
    height: 45vh;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__description {
    font-size: 1rem;
  }

  .blog {
    padding: 3rem 1rem;
  }

  .blog__post {
    padding: 20px;
  }

  .blog__post-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 400px) {
  .swiper-container {
    height: 40vh;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .blog__post {
    padding: 15px;
  }
}

/* Responsivo para telefonos */
@media (max-width: 768px) {
  .container {
    margin-top: 130px; /* Ajusta el carrusel en telefono*/
  }

  .swiper-container {
    aspect-ratio: 1;
  }

  .swiper-slide {
    height: 100%;
  }

  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
