/* ===========================================
  PLANES - Landing Principal
=========================================== */

.planes-section {
  padding: 2rem 0;
  background: #fff;
}

/* -------------------------------------------
  Encabezado
------------------------------------------- */
.planes-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 1rem;
}

.planes-subtitle {
  font-size: 1rem;
  color: var(--gris);
  max-width: 600px;
  margin: 0 auto;
}

/* -------------------------------------------
  Swiper / Carrusel
------------------------------------------- */
.planes-swiper {
  padding: 2.5rem 0 0;
  overflow: hidden;
}

.planes-swiper .swiper-wrapper {
  pointer-events: none;
}

.planes-swiper .swiper-slide {
  width: 260px;
  height: auto;
  pointer-events: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.planes-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 1;
  transform: scale(0.88);
}

.planes-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.planes-swiper .swiper-slide .plan-card {
  height: 100%;
}

/* Navegación (flechas) */
.planes-swiper .swiper-button-prev,
.planes-swiper .swiper-button-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: var(--p-verde);
  transition: all 0.2s ease;
}

.planes-swiper .swiper-button-prev:hover,
.planes-swiper .swiper-button-next:hover {
  background: var(--p-verde);
  color: #fff;
}

.planes-swiper .swiper-button-prev::after,
.planes-swiper .swiper-button-next::after {
  display: none;
}

.planes-swiper .swiper-button-prev svg,
.planes-swiper .swiper-button-next svg {
  width: 13px;
  height: 13px;
}

.planes-swiper .swiper-button-prev.swiper-button-disabled,
.planes-swiper .swiper-button-next.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.planes-swiper .swiper-button-prev {
  left: 0;
}

.planes-swiper .swiper-button-next {
  right: 0;
}

/* Paginación */
.planes-swiper .swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

.planes-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--gris-claro);
  opacity: 1;
  transition: all 0.3s ease;
}

.planes-swiper .swiper-pagination-bullet-active {
  background: var(--p-verde);
  transform: scale(1.2);
}

/* -------------------------------------------
  Card
------------------------------------------- */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.5rem;
  background: #f3fbfb;
  border: 2px solid var(--p-verde);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(24, 180, 176, 0.2);
}

/* Badge */
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1rem;
  background: var(--p-verde);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
}

/* Header */
.plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--p-verde);
  margin-bottom: 1rem;
}

/* Precio */
.plan-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.plan-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.plan-price-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--p-verde);
}

.plan-price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--p-verde);
}

.plan-price-period {
  font-size: 0.875rem;
  color: var(--gris);
}

/* Action */
.plan-action {
  text-align: center;
  margin-bottom: 1rem;
}

.btn-plan {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--p-verde);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-plan:hover {
  background: #14a8a4;
  color: #fff;
}

.btn-plan:focus {
  outline: none;
  box-shadow: none;
}

.plan-note {
  font-size: 0.75rem;
  color: var(--gris);
  margin: 0.75rem 0 0;
}

/* Features */
.plan-features {
  flex: 1;
  padding-top: 1.5rem;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--gris);
  margin-bottom: 0.75rem;
}

.plan-features li:last-child {
  margin-bottom: 0;
}

.plan-features li svg {
  color: #2F8319;
  flex-shrink: 0;
  margin-top: 2px;
}

/* -------------------------------------------
  Nota Informativa
------------------------------------------- */
.planes-info {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  max-width: 700px;
  margin: 2.5rem auto 0;
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 0.75rem;
  text-align: left;
}

.planes-info svg {
  flex-shrink: 0;
  color: var(--gris);
  margin-top: 2px;
}

.planes-info p {
  font-size: 0.875rem;
  color: var(--gris);
  line-height: 1.6;
  margin: 0;
}

.planes-info a {
  color: var(--gris);
  font-weight: 600;
  text-decoration: underline;
}

.planes-info a:hover {
  color: var(--gris-oscuro);
}

/* -------------------------------------------
  Responsive
------------------------------------------- */
@media (min-width: 768px) {
  .planes-title {
    font-size: 2.5rem;
  }

  .planes-subtitle {
    font-size: 1.1rem;
  }

  .planes-swiper .swiper-slide {
    width: 340px;
  }
}

@media (min-width: 992px) {
  .planes-section {
    padding: 6rem 0;
  }

  /* Desktop: Grid en lugar de swiper */
  .planes-swiper {
    overflow: visible;
  }

  .planes-swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    pointer-events: auto;
    transform: none !important;
  }

  .planes-swiper .swiper-slide {
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .planes-swiper .swiper-pagination {
    display: none;
  }

  .planes-swiper .swiper-button-prev,
  .planes-swiper .swiper-button-next {
    display: none;
  }
}