/* Estilos específicos para Home Page - Basado exactamente en Next.js */

/* Hero Section with Carousel - Sin espacios adicionales */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, rgb(30, 58, 138), rgb(30, 64, 175), rgb(14, 116, 144));
  width: 100%;
  padding: 0 !important;
  z-index: 1;
}

.hero-carousel {
  position: relative;
  height: 600px;
  width: 100%;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 500px;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 400px;
  }
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.6), transparent);
  z-index: 1;
}

.carousel-slide .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 48rem;
  color: white;
  position: static !important;
  z-index: auto !important;
  transform: none !important;
  will-change: auto !important;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  position: static !important;
  z-index: auto !important;
  transform: none !important;
  will-change: auto !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgb(191, 219, 254);
  position: static !important;
  z-index: auto !important;
  transform: none !important;
  will-change: auto !important;
}

@media (min-width: 1024px) {
  .hero p {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: static !important;
  z-index: auto !important;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  color: rgb(30, 58, 138);
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-prev {
    left: 0.5rem;
  }

  .carousel-next {
    right: 0.5rem;
  }
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .carousel-indicators {
    bottom: 1rem;
  }
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  width: 32px;
  border-radius: 5px;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 0.75rem;
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 0.25rem;
  stroke-width: 2;
}

.feature-item div {
  flex: 1;
}

.feature-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-align: left;
}

.feature-item p {
  color: oklch(0.52 0 0);
  text-align: left;
}

.feature-image {
  position: relative;
  height: 25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .feature-image {
    height: 31.25rem;
  }
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA Section */
.cta {
  background: linear-gradient(to right, rgb(30, 58, 138), rgb(14, 116, 144));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  color: white;
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .cta h2 {
    font-size: 2.25rem;
  }
}

.cta p {
  font-size: 1.25rem;
  color: rgb(191, 219, 254);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}