/* ================================
   PLANES
================================ */

/* Grid de planes */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 40px;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columnas de planes */
.plan-col,
.planes-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Wrapper planes */
.plans-wrapper {
  display: flex;
  flex-direction: column;
}

.plans-wrapper h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Card del plan */
.plan-card {
  position: relative;
  width: 100%;
  max-width: 380px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.5rem;

  align-self: center;
}

.plan-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.plan-card .price {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  color: #ff4bf0;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-card ul li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #d1d5db;
}

/* Plan popular */
.plan-card .popular {
  border-color: #ff4bf0;
  box-shadow: 0 0 25px rgba(255, 75, 240, 0.25);
}

.plan-card .badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #ff4bf0, #8a2be2);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

/* Detalles del plan */
.plan-details {
  display: none;
  opacity: 0;
  width: 100%;

  transition: max-height 0.5s ease, opacity 0.35s ease;
  background: linear-gradient(
    135deg,
    rgba(138,43,226,0.15),
    rgba(248,147,239,0.15)
  );
}

.plan-card.active .plan-details {
  display: block;
  opacity: 1;
}

/* Botones ver más */
.ver-mas_Basico,
.ver-mas_profesional,
.ver-mas_avanzado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4bf0, #8a2be2);
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sub {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 4px 0;
}


/* ================================
   SECCIÓN / CATÁLOGO
================================ */

section {
  width: 100%;
  text-align: left;
}

section.planes {
  display: flex;
  justify-content: center;
}

.catalogo-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Layout principal planes + form */
.planes-form-layout {
  width: 100%;
  display: flex;
  justify-content: center;
}


/* ================================
   CONTACTO / FORMULARIO
================================ */

.contact-section {
  position: relative;
  padding: 8rem 1.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.form-wrapper {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 75, 240, 0.15);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-intro h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-intro p {
  color: #9ca3af;
  margin-bottom: 2rem;
  line-height: 1.6;
}

#contactForm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
}

#contactForm select option {
  color: #000;
  background: #ffffff;
}

#contactForm textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}

#contactForm input[name="name"],
#contactForm input[name="email"] {
  grid-column: span 2;
}

#contactForm button {
  grid-column: 1 / -1;
  margin-top: 1rem;
  background: linear-gradient(135deg, #ff4bf0, #8a2be2);
  color: #000;
  font-weight: 700;
  padding: 0.9rem;
  border-radius: 999px;
}

.form-footer {
  grid-column: 1 / -1;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.form-col {
  width: 100%;
  position: sticky;
  top: 120px;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-card {
    max-width: 700px;
    margin: 0 auto;
  }

  .form-col {
    position: static;
  }
}

@media (max-width: 900px) {
  #contactForm {
    grid-template-columns: 1fr;
  }

  #contactForm input[name="name"],
  #contactForm input[name="email"] {
    grid-column: span 1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .plan-card {
    max-width: 100%;
  }
}
