*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 80px;
}

/* ===== ESTILOS BASE (los mismos que tenías, solo ajusto detalles) ===== */
body {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}
ul {
  list-style: none;
}
:root {
  --navy: #1a2b3c;
  --bg: #fdfcf8;
  --bg-soft: #f5f2ec;
  --border: #e8e4dd;
  --t1: #1a2b3c;
  --t2: #4a5b6c;
  --t3: #8a9bac;
  --gold: #b8976a;
  --green: #2d7a5f;
  --green-dk: #246b52;
  --blue: #5b7fa6;
  --max-w: 1200px;
  --px: clamp(16px, 4vw, 24px);
}
.section-title {
  text-align: center;
  padding-top: 40px;
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
}
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #9299a8;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 20px;
}

.planes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  align-items: stretch;
}

.plan-card {
  background: #1e2230;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition:
    transform 0.3s,
    border-color 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}
.plan-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}
.plan-card.featured {
  border-color: #f59e0b;
}
.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #0f1117;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 20px;
}
.plan-price {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 20px 0;
  color: #3b82f6;
}
.plan-price span {
  font-size: 1rem;
  color: #9299a8;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px 0;
  text-align: left;
  color: #9299a8;
  font-size: 0.95rem;
  flex-grow: 1;
}
.plan-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features .material-icons {
  color: #10b981;
  font-size: 1.2rem;
}

/* Badges de clúster (NUEVO) */
.cluster-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cluster-badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.08);
  color: #9299a8;
  border: 1px solid transparent;
}
.cluster-badge.active {
  background: #2d7a5f;
  color: #fff;
  border-color: #2d7a5f;
}
.cluster-badge.active-ia {
  background: #5b7fa6;
  color: #fff;
  border-color: #5b7fa6;
}
.cluster-badge.active-rf {
  background: #b8976a;
  color: #fff;
  border-color: #b8976a;
}
.cluster-badge.inactive {
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-plan {
  display: block;
  text-align: center;
  background: #2563eb;
  color: white;
  padding: 12px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  transition:
    background 0.2s,
    opacity 0.2s;
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: inherit;
}
.btn-plan:hover {
  background: #1d4ed8;
}
#btnSubmitForm:disabled {
  background: #2d3748 !important;
  color: #718096 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  box-shadow: none !important;
}

/* Tarjetas de módulos futuros (pilares) */
.pilar-card {
  background: #151924;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.pilar-bloqueado {
  opacity: 0.85;
}
.pilar-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}
.badge-next {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #374151;
  color: #d1d5db;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pilar-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #9299a8;
}
.pilar-icon-wrapper .material-symbols-outlined {
  font-size: 28px;
}
.pilar-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 10px 0;
  color: #fff;
}
.pilar-description {
  color: #9299a8;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 70px;
  margin-bottom: 15px;
  text-align: center;
}
.pricing-disabled {
  margin: 15px 0;
  color: #64748b;
}
.pilar-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  color: #64748b;
  font-size: 0.88rem;
  flex-grow: 1;
}
.pilar-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.block-icon {
  font-size: 1.1rem;
  color: #4b5563;
}
.btn-pilar-action {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  border: 1px solid #f59e0b;
  background: transparent;
  color: #f59e0b;
  transition: all 0.2s;
  margin-top: auto;
}
.btn-pilar-action:hover {
  background: rgba(245, 158, 11, 0.1);
}

/* Botón Volver */
.btn-back-dashboard {
  position: absolute;
  top: 30px;
  left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9299a8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: #1e2230;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 10;
}
.btn-back-dashboard:hover {
  color: #ffffff;
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  transform: translateX(-4px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 17, 23, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}
.modal-content {
  background: #1e2230;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  box-sizing: border-box;
}
.modal-form-body {
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 5px;
}
.modal-form-body::-webkit-scrollbar {
  width: 6px;
}
.modal-form-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.modal-form-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.form-group {
  margin-bottom: 15px;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #9299a8;
  font-size: 0.9rem;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
}
.form-error-space {
  color: #d93025;
  font-size: 0.75rem;
  margin-top: 0.2rem;
  min-height: 1rem;
}
.swal2-container {
  z-index: 999999 !important;
}

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px var(--px);
  min-height: 200px;
  margin-top: auto;
}
footer a {
  color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
  color: #fff;
}
.ft-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ft-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ft-logo svg {
  color: var(--gold);
}
.ft-logo span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ft-brand p {
  font-size: 14px;
  color: var(--t3);
  line-height: 1.7;
  max-width: 280px;
}
.ft-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.ft-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-col ul li a {
  font-size: 14px;
  color: var(--t3);
  transition: color 0.2s;
}
.ft-col ul li a:hover {
  color: #fff;
}
.ct-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.ct-item svg {
  color: var(--t3);
  flex-shrink: 0;
  margin-top: 2px;
}
.ct-item a,
.ct-item span {
  font-size: 14px;
  color: var(--t3);
  transition: color 0.2s;
}
.ct-item a:hover {
  color: #fff;
}
.soc-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.soc-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}
.soc-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ft-bot {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.ft-bot p,
.ft-bot span {
  font-size: 12px;
  color: var(--t3);
}

.ft-bot .copyright {
  font-size: 12px;
  color: var(--t3);
  text-align: center;
}

@media (max-width: 900px) {
  .btn-back-dashboard {
    position: relative;
    top: 0;
    left: 0;
    margin: 30px auto 10px auto;
    display: inline-flex;
  }
  .btn-back-dashboard:hover {
    transform: none;
  }
}

/* Estilo base para pantallas pequeñas (móviles) */
.icono-red-social {
  font-size: 1.5rem; /* Tamaño base cómodo para móvil */
}

/* Cambio de tamaño para pantallas grandes (Escritorio) */
@media (min-width: 992px) {
  .icono-red-social {
    font-size: 2.5rem; /* El icono crece en pantallas grandes */
  }
}
