/* Sección principal */
.hero {
  border-top: 10px solid var(--color-secondary);
  border-bottom: 10px solid var(--color-primary);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  align-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -50px;
  width: 30%;
  height: 300px;
  background-color: var(--color-primary);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  /* opacity: 0.8; */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50px;
  width: 30%;
  height: 250px;
  background-color: var(--color-secondary);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  /* opacity: 0.7; */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 9%;
}

.hero-left {
  padding-right: 20px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  /* filter: drop-shadow(0 0.4rem 0.25rem rgba(0, 0, 0, 0.322)); */
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
  /* color: var(--color-primary); */
  filter: drop-shadow(0 0.4rem 0.25rem rgba(0, 0, 0, 0.322));
}

.search-container {
  max-width: 100%;
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-button {
  background: #3498db;
  color: var(--color-white);
  border: none;
  padding: 0 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: #2980b9;
}

.hero-motto {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 420px;
}

.motto-text {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
  filter: drop-shadow(0 0.4rem 0.25rem rgba(0, 0, 0, 0.322));
}

.company-logo {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-white);
}

.logo-img {
  max-width: 65%;
  height: auto;
  filter: drop-shadow(0 0.4rem 0.25rem rgba(0, 0, 0, 0.322));
}

/* Animaciones */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.animate-delay-100 {
  animation-delay: 0.2s;
}

.animate-delay-200 {
  animation-delay: 0.4s;
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(20px);
  animation: slideLeft 0.8s ease forwards;
  animation-delay: 0.3s;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    gap: 20px;
  }

  .hero-left {
    width: 82%;
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-motto {
    max-width: 100%;
  }

  .hero-left .search-input {
    padding: 15px 6px;
  }

  .hero-left .search-button {
    padding: 0 0;
}
}

/* Estilos para la sección de banners */
.banners .container {
  max-width: 100%;
  padding: 0 0;
}

.banners-slider {
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.banner-slide {
  position: relative;
  display: none;
  width: 100%;
}

.banner-slide.active {
  display: block;
}

.banner-slide img {
  width: 100%;
  object-fit: fill;
}

.banner-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}

.banner-prev,
.banner-next {
  background: var(--color-primary);
  opacity: 0.5;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-prev:hover,
.banner-next:hover {
  opacity: 0.8;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  /* background: rgba(255, 255, 255, 0.5); */
  background: var(--color-primary);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  opacity: 1;
}

/* Estilos para la sección de destacados */
.destacados {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.destacados .section-title {
  margin: 0 0 15px 0;
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.destacados .section-subtitle {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.destacados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.destacado-card {
  background: white;
  /* border-radius: 8px; */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destacado-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.destacado-img-container {
  position: relative;
  height: 220px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.destacado-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.destacado-card:hover .destacado-img {
  transform: scale(1.05);
}

.destacado-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.destacado-nombre {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  height: 100px;
}

.destacado-descripcion {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.destacado-actions {
  padding: 0 20px 20px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .destacados-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .destacado-img-container {
    height: 180px;
  }
}

/* Galería de Promociones - Estilo Especial */
.galeria-promociones {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.ofertas .section-title {
  margin: 0 0 15px 0;
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ofertas .section-subtitle {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.fila-superior {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-item {
  position: relative;
  /* border-radius: 8px; */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(70, 105, 226, 0.15);
}

.promo-pequena {
  height: 100%;
}

.promo-grande {
  height: 300px;
}

.promo-imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: 20px;
  color: white;
}

.promo-badge {
  background: var(--color-secondary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 10px;
}

.promo-titulo {
  font-size: 1.3rem;
  margin: 0 0 5px 0;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.promo-descripcion {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  display: none;
}

.promo-grande .promo-descripcion {
  display: block;
}

/* Efectos hover */
.promo-overlay {
  opacity: 1;
  transform: translateY(0);
}

.promo-pequena .promo-titulo {
  font-size: 1.1rem;
}

.promo-grande .promo-titulo {
  font-size: 1.6rem;
}

/* Responsive */
@media (max-width: 992px) {
  .fila-superior {
    grid-template-columns: repeat(3, 1fr);
  }
  .promo-grande {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .fila-superior {
    grid-template-columns: 1fr;
  }
  .promo-grande {
    height: 200px;
  }

  .promo-grande .promo-titulo {
    font-size: 1.3rem;
  }
}

/* Sección de Nosotros */
.about-section {
  padding: 130px 0 100px;
  position: relative;
}

.about-section .section-header {
  text-align: center;
  margin-bottom: 60px;
  color: var(--color-white);
}

.about-section .section-title {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--color-white);
}

.about-section .section-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-white);
}
.about-grid {
  margin-bottom: 80px;
}

.about-title {
  margin: 0 0 15px 0;
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}
.about-subtitle {
  font-size: 1.75rem;
  text-align: center;
}

.about-text {
  margin-bottom: 30px;
}

.about-text p {
  color: #555;
  font-size: 1.1rem;
  margin: 0 auto;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  /* background: #2e5a882e; */
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  /* border-left: 4px solid #3498db; */
}
.stat-group {
  display: flex;
  align-items: center;
  justify-content: center
}
.stat-group {
  font-size: 2rem;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
  position: relative;
  height: 100%;
}

.team-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  opacity: 0.3;
}

.brands-section {
  margin-top: 60px;
  padding: 40px 0;
  position: relative;
}

.brands-title {
  margin: 0 0 30px 0;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.brands-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.brands-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
}

.brands-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.brand-item {
  scroll-snap-align: start;
  flex: 0 0 calc(20% - 16px);
  min-width: 180px;
  perspective: 1000px;
}

.brand-card {
  position: relative;
  height: 120px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.brand-logo {
  max-width: 100%;
  max-height: 140px;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-primary);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: var(--color-primary);
  color: white;
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .brand-item {
    flex: 0 0 calc(25% - 15px);
  }
}

@media (max-width: 768px) {
  .brands-carousel-container {
    padding: 0 30px;
  }

  .brand-item {
    flex: 0 0 calc(33.33% - 13px);
  }
}

@media (max-width: 576px) {
  .brands-carousel-container {
    padding: 0 20px;
  }

  .brand-item {
    flex: 0 0 calc(50% - 10px);
    min-width: 150px;
  }

  .brand-card {
    height: 100px;
    padding: 15px;
  }

  .brand-logo {
    max-height: 50px;
  }
}

/* Contador animado */
.stat-number {
  transition: all 1s ease;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
    max-width: 80%;
    margin: 0 auto;
  }

  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
}

.gallery-section {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.carousel-row {
  margin-bottom: 40px;
}

.carousel-row a {
  display: block;
  padding: 0 10px;
}

.carousel-row img {
  width: 100%;
  height: auto;
  cursor: pointer;
  display: block;
  object-fit: cover;
  max-height: 300px;
  margin: 0 auto;
}

.slick-slide {
  padding: 0;
  margin: 15px 10px;
}

/* Sección de Contacto */
.contact-section {
  padding: 80px 0;
}

.contact-section .section-title {
  margin: 0 0 15px 0;
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.contact-details {
  padding: 25px;
}

.detail-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.detail-item i {
  font-size: 1.5rem;
  color: #3498db;
  margin-top: 5px;
}

.detail-item h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.detail-item p {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.95rem;
  line-height: 1.5;
}
.detail-item a {
  color: #7f8c8d;
  text-decoration: none;
}

.contact-form-container {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

.submit-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 512px) {
  .hero-motto {
    max-width: 74%;
  }

  .banner-prev,
  .banner-next {
    width: 30px;
    height: 30px;
  }

  .brand-logo {
    max-height: 92px;
  }
}
