/* partners.css — estilos propios de partners.html. Se carga después de styles.css */

/* Hero: sin el alto completo del home, para que el catálogo asome */
.partners-hero {
  min-height: auto;
  padding: 170px 0 90px;
}

/* Catálogo de apps */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: #0E0A20;
  border: 1px solid rgba(123, 47, 190, 0.15);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: #C2185B;
  box-shadow: 0 20px 40px rgba(194, 24, 91, 0.2);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C2185B, #7B2FBE);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.app-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.app-desc {
  color: #C4B5D9;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-terms {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(123, 47, 190, 0.2);
}

.app-terms dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9D8FBB;
  margin-bottom: 4px;
}

.app-terms dd {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-terms dd.app-commission {
  color: #f9a8d4;
  font-weight: 600;
}

/* Simulador */
.sim-section {
  background: linear-gradient(120deg, #0E0A20 0%, #12093A 55%, #130A3E 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* la regla global de section recorta el desborde y anula position: sticky */
  overflow: visible;
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sim-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-block {
  background: rgba(7, 4, 18, 0.6);
  border: 1px solid rgba(123, 47, 190, 0.2);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sim-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-block-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sim-block-name i {
  color: #A855F7;
  width: 20px;
  text-align: center;
}

.sim-subtotal {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9a8d4;
  font-variant-numeric: tabular-nums;
}

.sim-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.sim-fields--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sim-field label {
  display: block;
  margin-bottom: 6px;
  color: #D4C8E8;
  font-size: 0.85rem;
  font-weight: 500;
}

.sim-field input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #3A2A5A;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.3s ease;
}

.sim-field input[type="number"]:focus {
  outline: none;
  border-color: #C2185B;
  box-shadow: 0 0 15px rgba(194, 24, 91, 0.3);
}

/* Resultados */
.sim-results {
  position: sticky;
  top: 100px;
  background: #0E0A20;
  border: 1px solid rgba(123, 47, 190, 0.3);
  border-radius: 24px;
  padding: 32px 28px;
  overflow: hidden;
}

.sim-results::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C2185B, #7B2FBE, #A855F7);
}

.sim-results-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9D8FBB;
}

.sim-results-big,
.sim-results-total {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.sim-results-big {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: #A855F7;
  margin: 6px 0 22px;
}

.sim-results-total {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #ffffff;
  margin: 6px 0 20px;
}

.sim-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 1rem;
}

.sim-disclaimer {
  margin-top: 16px;
  font-size: 0.78rem;
  color: #9D8FBB;
  line-height: 1.5;
}

/* Lista de puntos de la inscripción */
.signup-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #C4B5D9;
  font-size: 0.95rem;
  line-height: 1.5;
}

.signup-points li i {
  color: #C2185B;
  font-size: 0.8rem;
  margin-top: 5px;
}

/* Vista previa del panel */
.panel-preview {
  background: #0E0A20;
  border: 1px dashed rgba(168, 85, 247, 0.45);
  border-radius: 24px;
  padding: 28px;
}

.panel-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.panel-cta {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 10px 24px;
  font-size: 0.95rem;
}

.panel-sample {
  font-size: 0.8rem;
  color: #9D8FBB;
}

.panel-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.panel-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(123, 47, 190, 0.2);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-tile span {
  font-size: 0.78rem;
  color: #9D8FBB;
}

.panel-tile strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.panel-table-wrap {
  overflow-x: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.panel-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9D8FBB;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(123, 47, 190, 0.3);
}

.panel-table td {
  color: #D4C8E8;
  padding: 12px;
  border-bottom: 1px solid rgba(123, 47, 190, 0.12);
  font-variant-numeric: tabular-nums;
}

.panel-table th:last-child,
.panel-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.panel-table td:nth-child(3) {
  white-space: nowrap;
}

/* La app va en su columna; en el teléfono se muestra debajo del cliente */
.panel-app {
  display: none;
}

.panel-table td:last-child {
  color: #ffffff;
  font-weight: 600;
}

/* Inscripción */
.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.signup-info .section-head {
  margin-bottom: 32px;
}

.signup-card {
  background: rgba(14, 10, 32, 0.6);
  border: 1px solid rgba(123, 47, 190, 0.15);
  border-radius: 24px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.signup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C2185B, #7B2FBE, #A855F7);
}

.signup-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-apps {
  border: 1px solid #3A2A5A;
  border-radius: 8px;
  padding: 12px 16px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.signup-apps legend {
  padding: 0 6px;
  color: #D4C8E8;
  font-weight: 500;
  font-size: 0.9rem;
}

.signup-apps label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #C4B5D9;
  font-size: 0.92rem;
  cursor: pointer;
}

.signup-apps input {
  width: 17px;
  height: 17px;
  accent-color: #7B2FBE;
  cursor: pointer;
}

.signup-submit {
  width: 100%;
  max-width: none;
}

.signup-fallback {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #C4B5D9;
}

.signup-fallback a {
  color: #f9a8d4;
}

/* Responsive */
@media (max-width: 900px) {
  .sim-layout,
  .signup-layout {
    grid-template-columns: 1fr;
  }

  .signup-layout {
    gap: 40px;
  }

  .sim-results {
    position: static;
  }
}

@media (max-width: 768px) {
  .partners-hero {
    padding: 130px 0 60px;
  }

  .panel-tiles {
    grid-template-columns: 1fr;
  }

  .sim-cta,
  .signup-submit {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .panel-col-app {
    display: none;
  }

  .panel-app {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: #9D8FBB;
  }

  .panel-table {
    font-size: 0.85rem;
  }

  .panel-table th,
  .panel-table td {
    padding: 10px 6px;
  }

  .panel-table th:first-child,
  .panel-table td:first-child {
    padding-left: 0;
  }

  .panel-table th:last-child,
  .panel-table td:last-child {
    padding-right: 0;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .sim-fields,
  .sim-fields--3,
  .signup-row {
    grid-template-columns: 1fr;
  }

  .sim-block {
    padding: 18px 16px;
  }

  .signup-card,
  .panel-preview {
    padding: 24px 18px;
  }
}
