/* --- ESTILOS DE LA PÁGINA DE INICIO --- */

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a463a, #0b2b1c);
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../img/pattern-overlay.svg");
  opacity: 0.05;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 1rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1.2fr 1fr;
    padding: 6rem 1rem 0;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .arrow-down {
    font-size: 0.5rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .plans {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 992px) {
  .hero-text {
    text-align: left;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
}

@media (min-width: 992px) {
  .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 576px) {
  .hero-cta {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.btn-text {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-text:hover {
  color: #f0b90b;
}

.arrow-down {
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.btn-text:hover .arrow-down {
  transform: translateY(4px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Stats Bar */
.stats-bar {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  margin-top: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f0b90b;
  margin-bottom: 0.5rem;
}

.animate-stat {
  animation: countUp 2s ease forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Sección "Cómo funciona" */
.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.8;
  font-size: 1.1rem;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  justify-items: center;
}

.step-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  max-width: 300px;
  width: 100%;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.08);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f0b90b;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #f0b90b;
}

.step-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Testimonios */
.testimonials {
  background-color: #18382e;
  background-image: linear-gradient(135deg, rgba(9, 32, 24, 0.8) 0%, rgba(25, 64, 52, 0.8) 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-rating {
  color: #f0b90b;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.9;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.8rem;
  border: 2px solid rgba(240, 185, 11, 0.5);
}

.author-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.author-title {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Planes y precios */
.pricing-section {
  position: relative;
  overflow: hidden;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
  justify-items: center;
}

.plan-card {
  background: linear-gradient(135deg, #132b1e 0%, #1a3a29 100%);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
  max-width: 350px;
  width: 100%;
  border: 1px solid rgba(31, 162, 90, 0.2);
  
  /* Flexbox para alinear contenido */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(31, 162, 90, 0.3);
  border-color: rgba(31, 162, 90, 0.4);
}

.featured-plan {
  background: linear-gradient(135deg, rgba(31, 162, 90, 0.15) 0%, rgba(240, 185, 11, 0.05) 100%);
  border: 2px solid rgba(240, 185, 11, 0.3);
  transform: scale(1.05);
}

.featured-plan:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: rgba(240, 185, 11, 0.5);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f0b90b;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #000000 !important;
}

.plan-price {
  text-align: center;
  margin-bottom: 2rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f0b90b;
}

.period {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-left: 0.3rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1; /* Ocupa el espacio disponible */
}

.plan-features li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.plan-features li::before {
  content: "✓";
  color: #f0b90b;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.plan-card .cta-button {
  width: 100%;
  text-align: center;
  margin-top: auto; /* Empuja el botón hacia abajo */
}

/* Estilos para plan actual */
.current-plan {
  position: relative;
  border: 2px solid #f0b90b !important;
}

.current-plan::after {
  content: '✓';
  position: absolute;
  top: -10px;
  right: -10px;
  background: #f0b90b;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
}

.plan-current {
  text-align: center;
  font-weight: 600;
  color: #f0b90b;
  padding: 0.75rem 1.5rem;
  border: 2px solid #f0b90b;
  border-radius: 8px;
  margin-top: 1rem;
  background: transparent;
  transition: all 0.3s ease;
  display: inline-block;
}

.plan-current:hover {
  background: rgba(240, 185, 11, 0.1);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 480px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.faq-question {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #f0b90b;
  font-weight: 600;
}

.faq-answer {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* CTA Final */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #1a463a 0%, #0b2b1c 100%);
  padding: 5rem 1rem;
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}