/* ==========================================================================
   Bantokens — Página Perfiles (Amigo, Familia, Socios, Aliado)
   media/templates/site/bantokens/css/pages/perfiles.css
   ========================================================================== */

body.bt-page-perfiles {
  background: var(--surface-page, #F4F6FB);
  overflow-x: hidden !important;
  width: 100% !important;
}

body.bt-page-perfiles .wrap {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Hero */
body.bt-page-perfiles .phero {
  padding-bottom: 8px;
}

body.bt-page-perfiles .phero .eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: var(--fs-caption, 12px);
  color: var(--blue-primary, #0056B3);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: var(--fw-bold, 700);
}

body.bt-page-perfiles .phero h1 {
  margin-top: 14px;
  max-width: 900px;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text-primary, #0A192F);
}

body.bt-page-perfiles .phero .lede {
  margin-top: 16px;
  font-size: var(--fs-body-l, 18px);
  color: var(--text-secondary, #4A5568);
  max-width: 800px;
  line-height: 1.55;
}

/* ==========================================================================
   Contenedor Grid de Perfiles (.levels)
   ========================================================================== */
body.bt-page-perfiles #niveles {
  padding: 40px 0 60px 0;
}

body.bt-page-perfiles .levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}

/* Tarjeta de Nivel Individual (.tier) */
body.bt-page-perfiles .tier {
  background: #ffffff;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: var(--radius-l, 20px);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 24, 56, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-sizing: border-box;
}

body.bt-page-perfiles .tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 24, 56, 0.09);
}

/* Tarjeta destacada (Familia) */
body.bt-page-perfiles .tier.top {
  border: 2px solid #00baec !important;
  box-shadow: 0 8px 30px rgba(0, 186, 236, 0.18);
  position: relative;
}

body.bt-page-perfiles .tier.top::before {
  content: "Más popular";
  position: absolute;
  top: -12px;
  right: 20px;
  background: #00baec;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 186, 236, 0.35);
}

/* Mockup de Tarjeta Header (.tcard) */
body.bt-page-perfiles .tcard {
  aspect-ratio: 1.586;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}

body.bt-page-perfiles .tcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

body.bt-page-perfiles .tcard-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.9;
}

body.bt-page-perfiles .tcard-logo {
  height: 18px;
  width: auto;
  opacity: 0.95;
}

body.bt-page-perfiles .tcard-badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto 0;
}

body.bt-page-perfiles .tcard-btn-img {
  max-height: 80px;
  max-width: 85%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

body.bt-page-perfiles .tcard-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Colores exactos de https://bantokens.com/perfiles */
/* 1. Amigo: Blanco / Plata sutil */
body.bt-page-perfiles .tcard.amigo {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
  color: #0A192F;
}

body.bt-page-perfiles .tcard.amigo .tcard-label {
  color: #0056B3;
}

body.bt-page-perfiles .tcard.amigo .tcard-title {
  color: #0A192F;
}

body.bt-page-perfiles .tcard.amigo .tcard-logo {
  filter: brightness(0) saturate(100%) invert(26%) sepia(85%) saturate(2250%) hue-rotate(198deg) brightness(92%) contrast(102%);
}

/* 2. Familia: #00baec */
body.bt-page-perfiles .tcard.familia {
  background: linear-gradient(135deg, #00baec 0%, #009ac3 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 3. Socios: #000066 */
body.bt-page-perfiles .tcard.socios {
  background: linear-gradient(135deg, #000066 0%, #001244 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 4. Aliado: #c40066 */
body.bt-page-perfiles .tcard.aliado {
  background: linear-gradient(135deg, #c40066 0%, #9e0052 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Tipografía de la Tarjeta */
body.bt-page-perfiles .tier-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted, #718096);
  margin-top: 18px;
  margin-bottom: 2px;
  display: block;
}

body.bt-page-perfiles .tier-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #0A192F);
  line-height: 1.2;
  margin-bottom: 8px;
  display: block;
}

body.bt-page-perfiles .tier .v {
  font-size: 14px;
  font-weight: 600;
  color: #d97706;
  line-height: 1.35;
  display: block;
  min-height: 38px;
}

body.bt-page-perfiles .tier .v-sub {
  font-size: 12px;
  color: var(--text-secondary, #64748B);
  line-height: 1.35;
  display: block;
  margin-top: 2px;
  min-height: 18px;
}

body.bt-page-perfiles .tier-divider {
  height: 1px;
  background: var(--border-subtle, #E2E8F0);
  margin: 14px 0 16px 0;
}

body.bt-page-perfiles .tier-list-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #0A192F);
  margin-bottom: 12px;
  margin-top: 0;
  line-height: 1.4;
  min-height: 36px;
}

body.bt-page-perfiles .tier-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

body.bt-page-perfiles .tier-benefits li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, #334155);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.bt-page-perfiles .tier-benefits li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230056B3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 2px;
}

/* Botones en las Tarjetas */
body.bt-page-perfiles .tier-cta {
  margin-top: auto;
  padding-top: 14px;
}

body.bt-page-perfiles .tier-cta .btk-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.bt-page-perfiles .tier-cta .btk-btn-primary {
  background: var(--blue-primary, #0056B3);
  color: #ffffff !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.22);
}

body.bt-page-perfiles .tier-cta .btk-btn-primary:hover {
  background: var(--blue-hover, #003F88);
  transform: translateY(-1px);
}

body.bt-page-perfiles .tier-cta .btk-btn-outline {
  background: transparent;
  color: var(--blue-primary, #0056B3) !important;
  border: 1.5px solid var(--blue-primary, #0056B3);
}

body.bt-page-perfiles .tier-cta .btk-btn-outline:hover {
  background: var(--blue-tint, #EDF5FF);
  transform: translateY(-1px);
}

/* ==========================================================================
   Sección de Reseñas de Google (#resenas-sec)
   ========================================================================== */
body.bt-page-perfiles #resenas-sec {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle, #E2E8F0);
  border-bottom: 1px solid var(--border-subtle, #E2E8F0);
  padding: clamp(48px, 6vw, 84px) 0;
  margin-top: 40px;
}

body.bt-page-perfiles #resenas-sec .eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: var(--fs-caption, 12px);
  color: var(--blue-primary, #0056B3);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: var(--fw-bold, 700);
}

body.bt-page-perfiles #resenas-sec h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -.02em;
  color: var(--text-primary, #0A192F);
  margin-top: 10px;
  margin-bottom: 28px;
}

/* ==========================================================================
   Adaptabilidad Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  body.bt-page-perfiles .levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  body.bt-page-perfiles .levels {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.bt-page-perfiles .tier .v,
  body.bt-page-perfiles .tier-list-heading {
    min-height: auto;
  }
}