/* ============================================================
   BLACKMONT blocks.css v1.2
   Solo estilos para los 2 componentes HTML custom
   y ajustes mínimos de bloques nativos en fondo oscuro
============================================================ */

/* ── Botón outline sobre fondo oscuro ── */
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #EDE8DF;
  background: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
  background: rgba(0, 200, 150, 0.08);
}

/* ── Párrafo eyebrow (clase adicional en el bloque) ── */
.is-style-eyebrow {
  font-family: var(--wp--preset--font-family--syne) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--wp--preset--color--accent) !important;
}

/* ── FAQ: wp:details en fondo oscuro ── */
.wp-block-details {
  border-bottom: 1px solid #1A1A1A;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}

.wp-block-details summary {
  font-family: var(--wp--preset--font-family--syne);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #EDE8DF;
  cursor: pointer;
  padding: 20px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.wp-block-details summary:hover { color: var(--wp--preset--color--accent); }
.wp-block-details summary::-webkit-details-marker { display: none; }

.wp-block-details summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6B6760;
  transition: all 0.25s;
  line-height: 1;
  text-align: center;
  padding-bottom: 1px;
}

.wp-block-details[open] summary::after {
  content: "×";
  background: rgba(0, 200, 150, 0.08);
  border-color: rgba(0, 200, 150, 0.35);
  color: var(--wp--preset--color--accent);
}

.wp-block-details p {
  font-size: 14px !important;
  color: #6B6760 !important;
  line-height: 1.75 !important;
  padding-bottom: 20px !important;
  margin: 0 !important;
}

.wp-block-details p strong { color: #EDE8DF !important; }

/* ─────────────────────────────────────
   AI MOCKUP (dark)
───────────────────────────────────── */
.bm-mockup {
  background: #0D0D0D;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  font-family: var(--wp--preset--font-family--dm-sans);
max-width:800px!important;
}

.bm-mockup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #131313;
}

.bm-mockup-dots { display: flex; gap: 5px; }

.bm-mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.bm-mockup-dot:nth-child(1) { background: #FF5F57; }
.bm-mockup-dot:nth-child(2) { background: #FEBC2E; }
.bm-mockup-dot:nth-child(3) { background: #28C840; }

.bm-mockup-bar-label { font-size: 12px; color: #6B6760; margin-left: 4px; }

.bm-mockup-query {
  padding: 16px 18px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bm-mockup-query-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.bm-mockup-query-text {
  font-size: 13px;
  color: #6B6760;
  font-style: italic;
  line-height: 1.5;
}

.bm-mockup-response { padding: 18px; }

.bm-mockup-typing {
  font-size: 13px;
  line-height: 1.85;
  color: #6B6760;
  min-height: 90px;
}

.bm-comp { color: #EDE8DF; font-weight: 500; }

.bm-comp::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wp--preset--color--accent);
  margin-right: 7px;
  vertical-align: middle;
}

.bm-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--wp--preset--color--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: bm-blink 1s step-end infinite;
}

@keyframes bm-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.bm-mockup-missing {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.15);
  font-size: 12px;
  color: #FF4D4D;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.5s;
}

.bm-mockup-missing.visible { opacity: 1; }
.bm-mockup-missing::before { content: "✕"; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* ─────────────────────────────────────
   GAP: Google vs IA (dark)
───────────────────────────────────── */
.bm-gap-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  font-family: var(--wp--preset--font-family--dm-sans);
  margin-top: 44px;
}

.bm-gap-col {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #0D0D0D;
}

.bm-gap-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #131313;
}

.bm-gap-hdr-logo {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

.bm-gap-hdr-name { font-size: 12px; color: #6B6760; font-weight: 500; }
.bm-gap-body { padding: 20px; }

.bm-gap-result {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bm-gap-result:last-of-type { margin: 0; padding: 0; border: none; }

.bm-gap-result-url   { font-size: 11px; color: #6B6760; margin-bottom: 2px; }
.bm-gap-result-title { font-size: 13px; color: #7ba7f0; font-weight: 500; margin-bottom: 3px; }
.bm-gap-result-snip  { font-size: 12px; color: #6B6760; line-height: 1.5; }

.bm-gap-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bm-gap-sep-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; align-items: center; justify-content: center;
  color: #6B6760; font-size: 15px;
  background: #131313;
}

.bm-gap-sep-lbl {
  font-size: 9px;
  color: #3A3835;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--syne);
}

.bm-gap-ai-body { font-size: 13px; line-height: 1.8; color: #6B6760; }
.bm-gap-ai-body strong { color: #EDE8DF; font-weight: 600; }
.bm-gap-absent { color: #3A3835; text-decoration: line-through; font-style: italic; }

.bm-gap-status {
  margin-top: 13px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.bm-gap-ok  { background: rgba(40, 200, 64, 0.08); border: 1px solid rgba(40, 200, 64, 0.2); color: #28C840; }
.bm-gap-bad { background: rgba(255, 77, 77, 0.08); border: 1px solid rgba(255, 77, 77, 0.15); color: #FF4D4D; }

.bm-gap-nota {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(0, 200, 150, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.15);
  font-size: 13px;
  color: #6B6760;
  text-align: center;
  font-family: var(--wp--preset--font-family--dm-sans);
}

.bm-gap-nota strong { color: var(--wp--preset--color--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .bm-gap-grid { grid-template-columns: 1fr; }
  .bm-gap-sep  { flex-direction: row; justify-content: center; }
  .bm-gap-sep-lbl { writing-mode: horizontal-tb; transform: none; }
}

/* ── Fondo cuadriculado hero ── */
.hero-grid-bg {
  position: relative;
}

.hero-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.20) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-grid-bg > * {
  position: relative;
  z-index: 1;
}

/* ── Reset margen global de WP entre bloques ── */
:where(.wp-site-blocks) > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* ── Visibilidad responsive ── */
@media (max-width: 599px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 1025px) {
  .hide-desktop { display: none !important; }
}