/* =========================================
   COMPONENTE COMPARTIDO: TARJETAS DE SERVICIO + MODAL "VER MÁS INFO"
   Usado en /planes (siempre) y en / (dentro del modal "Ver más info")
   ========================================= */

.section-title {
  text-align: center;
  margin-bottom: 10px;
  font-family: "Syncopate", sans-serif;
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: 2px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-subtitle {
  text-align: center;
  color: #d0d0d0;
  margin: 0 auto 50px;
  font-size: 1rem;
  max-width: 620px;
  /* Fondo suave para separarlo de la red de partículas animada de detrás */
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 10px 20px;
  width: fit-content;
}

/* --- BOTÓN GLOBAL "PEDIR PRESUPUESTO" --- */
.btn-primary {
  background: #fff;
  color: #000;
  padding: 16px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}
.full-width {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: auto;
}

/* --- TARJETAS DE SERVICIO ---
   flex (no grid) para que, si sobra una tarjeta suelta en la última fila
   (p.ej. dentro del modal, más estrecho), quede centrada y no pegada
   a la izquierda. */
.planes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 80px;
}

.plan-detail-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  /* Flexbox para alinear botones */
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
  max-width: 380px;
}
.plan-detail-card:hover {
  transform: translateY(-10px);
  border-color: #fff;
}

.plan-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: inline-block;
  align-self: center; /* Centrar el badge en flex */
}
.gold-badge {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}
.platinum-badge {
  background: rgba(226, 232, 240, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.3);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.2);
}

.plan-detail-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-family: "Syncopate", sans-serif;
  color: #fff;
}

.plan-detail-card .desc {
  color: #b3b3b3;
  margin-bottom: 30px;
  font-size: 0.95rem;
  flex-grow: 0;
}

.feature-list {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
  padding: 0;
  /* El contenido se expande, pero deja el botón al final */
  flex-grow: 1;
}
.feature-list li {
  margin-bottom: 15px;
  color: #ddd;
  font-size: 0.95rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature-list li i {
  color: #10b981;
  margin-top: 4px;
  flex-shrink: 0;
}

/* --- COLORES NEON --- */
.neon-blue { border-top: 3px solid #3b82f6; }
.neon-blue:hover { box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); border-color: #3b82f6; }

.neon-purple { border-top: 3px solid #a855f7; }
.neon-purple:hover { box-shadow: 0 0 30px rgba(168, 85, 247, 0.15); border-color: #a855f7; }

.neon-red { border-top: 3px solid #ef4444; }
.neon-red:hover { box-shadow: 0 0 30px rgba(239, 68, 68, 0.15); border-color: #ef4444; }

.neon-green { border-top: 3px solid #10b981; }
.neon-green:hover { box-shadow: 0 0 30px rgba(16, 185, 129, 0.15); border-color: #10b981; }

.neon-cyan { border-top: 3px solid #06b6d4; }
.neon-cyan:hover { box-shadow: 0 0 30px rgba(6, 182, 212, 0.15); border-color: #06b6d4; }

.neon-gold { border-top: 3px solid #fbbf24; }
.neon-gold:hover { box-shadow: 0 0 40px rgba(251, 191, 36, 0.25); border-color: #fbbf24; }

.neon-platinum { border-top: 3px solid #e2e8f0; }
.neon-platinum:hover { box-shadow: 0 0 40px rgba(226, 232, 240, 0.3); border-color: #e2e8f0; }

/* --- VENTANA MODAL "VER MÁS INFO" --- */
.detalle-modal {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #0a0a0a;
  color: #fff;
  width: 92vw;
  max-width: 1000px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  margin: auto;
}
.detalle-modal[open] {
  animation: modalPop 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.96) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.detalle-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.detalle-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}
.modal-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .detalle-modal {
    padding: 25px 20px;
    max-height: 88vh;
  }
}

@media (max-width: 480px) {
  .plan-detail-card {
    padding: 32px 20px;
  }
}
