/**
 * Brokers Hipotecarios - Estilos
 * Archivo: brokers-hipotecarios.css
 */

:root {
  --bh-dark: #0d1117;
  --bh-dark-2: #161b24;
  --bh-dark-3: #1e2533;
  --bh-navy: #111827;
  --bh-slate: #374151;
  --bh-muted: #6b7280;
  --bh-border: #e5e7eb;
  --bh-border-dk: #2d3748;
  --bh-white: #ffffff;
  --bh-off-white: #f9fafb;
  --bh-accent: #4f46e5;
  --bh-accent-lt: #818cf8;
  --bh-accent-bg: #eef2ff;
  --bh-success: #059669;
  --bh-warning: #d97706;
  --bh-warning-bg: #fffbeb;
  --bh-danger: #dc2626;
  --bh-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bh-radius-sm: 4px;
  --bh-radius: 8px;
  --bh-radius-lg: 12px;
  --bh-radius-xl: 20px;
  --bh-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --bh-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --bh-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
  --bh-transition: 240ms cubic-bezier(.4, 0, .2, 1);
}

.bh-page,
.bh-page * {
  box-sizing: border-box;
}

.bh-page {
  width: 100%;
}

.bh-page a {
  transition: all var(--bh-transition);
}

/* Layout GeneratePress */
body.bh-brokers-template .site-content {
  display: block !important;
  width: 100% !important;
}

body.bh-brokers-template .content-area,
body.bh-brokers-template #primary {
  float: none !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.bh-brokers-template #right-sidebar,
body.bh-brokers-template #left-sidebar,
body.bh-brokers-template .widget-area,
body.bh-brokers-template aside {
  display: none !important;
}

body.bh-brokers-template .inside-article,
body.bh-brokers-template .entry-content,
body.bh-brokers-template .separate-containers .inside-article,
body.bh-brokers-template .one-container .inside-article {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.bh-brokers-template .site-main {
  margin: 0 !important;
  padding: 0 !important;
}

.bh-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Helper SEO oculto */
.bh-seo-helper {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Botones */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--bh-font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  border-radius: var(--bh-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--bh-transition);
}

.bh-btn--primary {
  background: var(--bh-accent);
  color: var(--bh-white);
  border-color: var(--bh-accent);
}

.bh-btn--primary:hover,
.bh-btn--primary:focus-visible {
  background: #4338ca;
  border-color: #4338ca;
  color: var(--bh-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.30);
  text-decoration: none;
}

.bh-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}

.bh-btn--ghost:hover,
.bh-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--bh-white);
  text-decoration: none;
}

.bh-btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Hero */
.bh-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 72px;
  background: linear-gradient(135deg, #070a14 0%, #0b1020 48%, #111631 100%);
  color: var(--bh-white);
}

.bh-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 72% 36%, rgba(79, 70, 229, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 16% 86%, rgba(99, 102, 241, 0.08) 0%, transparent 52%);
}

.bh-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.bh-hero__inner {
  position: relative;
  z-index: 1;
}

.bh-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.bh-hero__content {
  max-width: 760px;
}

.bh-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.16);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bh-hero__title {
  margin: 0 0 24px;
  font-family: var(--bh-font-sans);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--bh-white);
}

.bh-hero__title span {
  color: #a5b4fc;
}

.bh-hero__subtitle {
  max-width: 620px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

.bh-hero__subtitle strong {
  color: #ffffff;
}

.bh-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.bh-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.bh-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.56);
}

.bh-hero__meta-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.42);
}

.bh-hero__media {
  display: flex;
  justify-content: center;
}

.bh-hero__image {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--bh-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Notices */
.bh-notice {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--bh-radius);
  font-size: 14px;
  line-height: 1.7;
  margin: 32px 0;
}

.bh-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.bh-notice--info {
  background: var(--bh-accent-bg);
  border: 1px solid rgba(79, 70, 229, 0.16);
  color: #3730a3;
}

.bh-notice--warning {
  background: var(--bh-warning-bg);
  border: 1px solid rgba(217, 119, 6, 0.18);
  color: #92400e;
}

/* Secciones */
.bh-section {
  padding: 84px 0;
}

.bh-section--alt {
  background: var(--bh-off-white);
}

.bh-section__header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.bh-section__label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bh-accent);
}

.bh-section__title {
  margin: 0 0 16px;
  font-family: var(--bh-font-sans);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.bh-section__subtitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--bh-muted);
}

/* Qué es */
.bh-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

.bh-content-grid__text p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.82;
  color: #374151;
}

.bh-content-grid__text strong {
  color: #111827;
  font-weight: 700;
}

.bh-content-grid__text a {
  color: var(--bh-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bh-content-grid__text a:hover {
  color: #4338ca;
}

.bh-info-card {
  position: sticky;
  top: 100px;
  padding: 32px;
  background: var(--bh-dark);
  border-radius: var(--bh-radius-lg);
  color: var(--bh-white);
  box-shadow: var(--bh-shadow);
}

.bh-info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  background: rgba(79, 70, 229, 0.18);
  border-radius: var(--bh-radius);
  color: #c7d2fe;
}

.bh-info-card__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bh-white);
}

.bh-info-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-info-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

.bh-info-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bh-accent-lt);
}

/* Cards utilidad */
.bh-cards-grid {
  display: grid;
  gap: 24px;
}

.bh-cards-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bh-card {
  padding: 32px;
  background: var(--bh-white);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-lg);
  box-shadow: var(--bh-shadow-sm);
}

.bh-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bh-border);
}

.bh-card__header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.bh-card--pro .bh-card__header svg {
  color: var(--bh-success);
}

.bh-card--neutral .bh-card__header svg {
  color: var(--bh-muted);
}

.bh-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--bh-slate);
}

.bh-card--pro .bh-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bh-success);
}

.bh-card--neutral .bh-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bh-border);
  border: 2px solid var(--bh-muted);
}

/* Tabla */
.bh-comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-lg);
  box-shadow: var(--bh-shadow);
}

.bh-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bh-white);
}

.bh-comparison-table thead th {
  padding: 16px 20px;
  background: var(--bh-dark);
  color: var(--bh-white);
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bh-comparison-table tbody tr {
  border-bottom: 1px solid var(--bh-border);
}

.bh-comparison-table td {
  padding: 14px 20px;
  color: var(--bh-slate);
  line-height: 1.55;
}

.bh-comparison-table td:first-child {
  background: #fafafa;
  color: #111827;
  font-weight: 700;
  white-space: nowrap;
}

.bh-ct--positive {
  color: var(--bh-success) !important;
  font-weight: 600 !important;
}

.bh-ct--negative {
  color: var(--bh-danger) !important;
  font-weight: 600 !important;
}

.bh-ct--neutral {
  color: var(--bh-muted) !important;
}

/* Pros y contras */
.bh-pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.bh-pros-cons__col {
  padding: 32px;
  background: var(--bh-white);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-lg);
  box-shadow: var(--bh-shadow-sm);
}

.bh-pros-cons__col--pros {
  border-top: 3px solid var(--bh-success);
}

.bh-pros-cons__col--cons {
  border-top: 3px solid var(--bh-danger);
}

.bh-pros-cons__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.bh-pros-cons__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-pros-cons__col ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--bh-slate);
}

.bh-pros-cons__col--pros ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bh-success);
}

.bh-pros-cons__col--cons ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--bh-danger);
}

/* Criterios */
.bh-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  border-radius: var(--bh-radius-lg);
  background: var(--bh-border);
  box-shadow: var(--bh-shadow);
}

.bh-criterion {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bh-white);
}

.bh-criterion__num {
  flex-shrink: 0;
  width: 48px;
  padding-top: 4px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bh-border);
}

.bh-criterion__content h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.bh-criterion__content p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.66;
  color: var(--bh-muted);
}

.bh-criterion__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bh-accent-bg);
  color: var(--bh-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* FAQ */
.bh-faq {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
  box-shadow: var(--bh-shadow-sm);
  background: #fff;
}

.bh-faq__item {
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-white);
}

.bh-faq__item:last-child {
  border-bottom: none;
}

.bh-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
}

.bh-faq__question:hover {
  background: var(--bh-off-white);
}

.bh-faq__question[aria-expanded="true"] {
  background: var(--bh-off-white);
  color: var(--bh-accent);
}

.bh-faq__icon {
  flex-shrink: 0;
  color: var(--bh-muted);
  transition: transform var(--bh-transition), color var(--bh-transition);
}

.bh-faq__question[aria-expanded="true"] .bh-faq__icon {
  transform: rotate(180deg);
  color: var(--bh-accent);
}

.bh-faq__answer {
  padding: 0 28px 24px;
  border-top: 1px solid var(--bh-border);
}

.bh-faq__answer p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--bh-slate);
}

/* CTA final */
.bh-cta-section {
  padding: 84px 0;
  background: var(--bh-dark);
}

.bh-cta-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
}

.bh-cta-block__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--bh-white);
}

.bh-cta-block__text {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}

.bh-cta-block__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.bh-cta-block__bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.84);
}

.bh-cta-block__bullets li svg {
  flex-shrink: 0;
  color: var(--bh-success);
}

.bh-cta-block__actions {
  margin-bottom: 18px;
}

.bh-cta-block__disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.36);
}

.bh-cta-visual {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(99, 102, 241, 0.52);
}

.bh-cta-visual__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 50%;
  animation: bh-pulse 3s ease-in-out infinite;
}

.bh-cta-visual__ring--2 {
  inset: 20px;
  border-color: rgba(99, 102, 241, 0.12);
  animation-delay: 1.5s;
}

@keyframes bh-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.6;
  }
}

/* Ocultar antigua comparativa si quedara algo en caché */
#comparativa,
.bh-profiles-grid,
.bh-profile-card,
.bh-broker-row,
.bh-profile-card__note {
  display: none !important;
}

@media (max-width: 1024px) {
  .bh-hero__grid,
  .bh-content-grid,
  .bh-cards-grid--2,
  .bh-pros-cons,
  .bh-criteria-grid,
  .bh-cta-block {
    grid-template-columns: 1fr;
  }

  .bh-hero__media {
    order: -1;
  }

  .bh-hero__image {
    max-width: 280px;
  }

  .bh-info-card {
    position: static;
  }

  .bh-cta-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .bh-section,
  .bh-cta-section {
    padding: 60px 0;
  }

  .bh-hero {
    padding: 72px 0 60px;
  }

  .bh-hero__title {
    font-size: clamp(34px, 9vw, 50px);
  }

  .bh-hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .bh-comparison-table th,
  .bh-comparison-table td {
    padding: 12px 14px;
  }

  .bh-faq__question {
    padding: 18px 20px;
    font-size: 14px;
  }

  .bh-faq__answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .bh-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bh-card,
  .bh-pros-cons__col,
  .bh-criterion {
    padding: 24px;
  }

  .bh-hero__image {
    max-width: 220px;
  }

  .bh-hero__meta {
    gap: 16px;
  }
}