/* =========================================================
   BINKU - INFORMACIÓN, REDES, COMENTARIOS Y PROMOCIÓN
   CSS COMPLETO RESPONSIVE
========================================================= */

/* =========================================================
   VARIABLES Y CONTENEDOR GENERAL
========================================================= */
.binku-unified-content {
  --binku-primary: #2563eb;
  --binku-primary-dark: #1e40af;
  --binku-green: #317348;
  --binku-green-soft: #edf8f0;
  --binku-red: #b51632;
  --binku-red-dark: #941128;
  --binku-text: #172033;
  --binku-muted: #64748b;
  --binku-border: #dfe6ee;
  --binku-soft: #f8fafc;
  --binku-radius: 18px;
  --binku-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);

  width: min(calc(100% - 32px), 1320px);
  margin: 0 auto;
  padding: 10px 0 28px;
}

.binku-unified-content *,
.binku-unified-content *::before,
.binku-unified-content *::after {
  box-sizing: border-box;
}

.binku-unified-content img {
  max-width: 100%;
}

/* =========================================================
   GRILLA PRINCIPAL
========================================================= */
.binku-unified-grid {
  width: 100%;
  display: grid;
  gap: 18px;
}

/* Escritorio grande: 3 módulos en una línea */
.binku-unified-grid--three {
  grid-template-columns:
    minmax(300px, 1.05fr)
    minmax(260px, 0.85fr)
    minmax(360px, 1.35fr);
  align-items: stretch;
  margin: 22px 0 20px;
}

.binku-unified-grid--three > .binku-card,
.binku-unified-grid--three > .binku-module {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.binku-module,
.binku-card {
  min-width: 0;
}

/* =========================================================
   TARJETAS GENERALES
========================================================= */
.binku-card,
.binku-info-module {
  min-height: 285px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--binku-border);
  border-radius: var(--binku-radius);
  box-shadow: var(--binku-shadow);
  overflow: hidden;
}

/* =========================================================
   TÍTULO INFORMACIÓN
========================================================= */
.binku-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.binku-section-title__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

.binku-section-title__icon--gallery {
  color: #9a6700;
  background: #fff4d6;
}

.binku-section-title__icon--info {
  color: var(--binku-primary);
  background: #eaf1ff;
}

.binku-section-title h5 {
  min-width: 0;
  margin: 0;
  color: #334155;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.binku-section-title__line {
  height: 1px;
  min-width: 18px;
  flex-grow: 1;
  margin-left: 2px;
  background: #e5e7eb;
}

/* =========================================================
   GALERÍA
========================================================= */
.story-main {
  width: 100%;
  height: 290px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: var(--binku-soft);
  border: 1px solid var(--binku-border);
  border-radius: var(--binku-radius);
  box-shadow: var(--binku-shadow);
}

.story-main::after {
  content: "\f00e";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.66);
  border-radius: 50%;
  font-family: "Font Awesome 6 Free";
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}

.story-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.story-main:hover img {
  transform: scale(1.02);
}

.story-dots {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 4px;
}

.story-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  padding: 0;
  background: #cbd5e1;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
}

.story-dot:hover {
  background: #94a3b8;
  transform: scale(1.15);
}

.story-dot.active {
  width: 22px;
  flex-basis: 22px;
  background: var(--binku-primary);
  border-radius: 999px;
}

/* =========================================================
   INFORMACIÓN EN LÍNEA DE TIEMPO
========================================================= */
.binku-info-module {
  position: relative;
}

.business-info-timeline {
  position: relative;
  padding-left: 46px;
}

.business-info-timeline::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 16px;
  left: 16px;
  width: 2px;
  background: #dbe7ff;
  border-radius: 999px;
}

.info-timeline-block {
  position: relative;
  padding-bottom: 24px;
}

.info-timeline-block:last-child {
  padding-bottom: 0;
}

.info-timeline-dot {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 0;
  left: -46px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--binku-primary);
  background: #edf4ff;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dbe7ff;
  font-size: 12px;
}

.info-timeline-content {
  min-width: 0;
  padding-top: 5px;
}

.info-timeline-content h6 {
  margin: 0 0 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.schedule-clean-list {
  width: 100%;
}

.schedule-clean-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f3;
}

.schedule-clean-row:last-child {
  border-bottom: 0;
}

.schedule-clean-day,
.schedule-clean-hour {
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
}

.schedule-clean-day {
  color: var(--binku-muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.schedule-clean-hour {
  color: #1e293b;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.info-timeline-address {
  margin: 0 0 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.info-timeline-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  color: #1d4ed8;
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: 0.2s ease;
}

.info-timeline-button:hover {
  color: #fff;
  background: var(--binku-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* =========================================================
   CONECTA CON NOSOTROS
========================================================= */
.business-links-card__header {
  margin-bottom: 18px;
}

.business-links-card__badge,
.comments-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.business-links-card__badge {
  color: var(--binku-green);
  background: var(--binku-green-soft);
  border: 1px solid #d8eedf;
}

.comments-card__badge {
  color: #1e3a8a;
  background: #eef3ff;
  border: 1px solid #dbe5ff;
}

.business-links-card__header h3,
.comments-card__title h3 {
  margin: 0;
  color: var(--binku-text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}

.business-links-card__header p,
.comments-card__title p {
  margin: 7px 0 0;
  color: var(--binku-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
}

.delivery-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.delivery-icon-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  outline: none;
}

.delivery-icon-link:focus-visible {
  outline: 3px solid rgba(49, 115, 72, 0.2);
  outline-offset: 3px;
}

.icon-wrapper {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe6e2;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.09);
  transition: 0.2s ease;
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.delivery-icon-link:hover .icon-wrapper {
  border-color: rgba(49, 115, 72, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.13);
  transform: translateY(-2px);
}

/* =========================================================
   COMENTARIOS
========================================================= */
.comments-card {
  display: flex;
  flex-direction: column;
}

.comments-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.comments-card__title {
  min-width: 0;
  flex: 1 1 auto;
}

.comments-card__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

#btnToggleComentarios {
  min-height: 36px;
  padding: 8px 14px !important;
  color: #fff !important;
  background: #1e3a8a !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 13px rgba(30, 58, 138, 0.22);
  transition: 0.2s ease;
}

#btnToggleComentarios:hover {
  background: #172f72 !important;
  box-shadow: 0 7px 17px rgba(30, 58, 138, 0.3);
  transform: translateY(-1px);
}

.comments-card .btn-outline-primary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px !important;
  color: #475569 !important;
  background: var(--binku-soft) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: 0.2s ease;
}

.comments-card .btn-outline-primary:hover {
  color: #fff !important;
  background: #1e3a8a !important;
  transform: translateY(-1px);
}

#comentarios.row {
  width: 100%;
  margin: 10px 0 0 !important;
}

/* Evita que las tarjetas de comentarios se salgan */
#comentarios > * {
  min-width: 0;
  max-width: 100%;
}

#comentarios img {
  max-width: 100%;
  height: auto;
}

.comments-card__list {
  overflow: hidden;
}

.comments-card__pagination {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 16px;
}

#pagination-controls {
  min-height: 38px;
  max-width: 100%;
  padding: 5px 7px;
  background: var(--binku-soft);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
}

#pagination-controls .btn {
  min-width: 32px;
  min-height: 30px;
  padding: 5px 8px !important;
  color: #1e3a8a !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 11px;
  font-weight: 750;
}

#pagination-controls .btn:hover:not(:disabled) {
  background: #e8eefc !important;
  border-radius: 8px;
}

#pagination-controls .btn:disabled {
  color: #a5afbd !important;
  opacity: 0.65;
}

#page-info {
  margin: 0 8px !important;
  font-size: 11px !important;
  white-space: nowrap;
}

/* =========================================================
   PUBLICIDAD BINKU
========================================================= */
.binku-promo {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.055);
}

.binku-promo__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--binku-red);
  background: #f8ecef;
  border-radius: 50%;
  font-size: 16px;
}

.binku-promo__content {
  min-width: 0;
}

.binku-promo__kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--binku-red);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.binku-promo__content strong {
  display: block;
  margin-bottom: 3px;
  color: var(--binku-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
}

.binku-promo__content p {
  margin: 0;
  color: var(--binku-muted);
  font-size: 11px;
  line-height: 1.45;
}

.binku-promo__button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  color: #fff;
  background: var(--binku-red);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s ease;
}

.binku-promo__button:hover {
  color: #fff;
  background: var(--binku-red-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* =========================================================
   NOTEBOOK / TABLET HORIZONTAL
   Información y redes arriba; comentarios ocupa todo abajo
========================================================= */
@media (max-width: 1100px) {
  .binku-unified-content {
    width: min(calc(100% - 28px), 1000px);
  }

  .binku-unified-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .binku-unified-grid--three > .comments-card {
    grid-column: 1 / -1;
  }

  .binku-card,
  .binku-info-module {
    min-height: auto;
  }
}

/* =========================================================
   TABLET VERTICAL Y MÓVIL
   Todos los módulos uno debajo del otro
========================================================= */
@media (max-width: 767.98px) {
  .binku-unified-content {
    width: calc(100% - 24px);
    padding: 6px 0 22px;
  }

  .binku-unified-grid {
    gap: 14px;
  }

  .binku-unified-grid--three {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 16px 0;
  }

  .binku-unified-grid--three > .comments-card {
    grid-column: auto;
  }

  .binku-card,
  .binku-info-module {
    width: 100%;
    min-height: auto;
    padding: 18px;
    border-radius: 16px;
  }

  .binku-section-title {
    margin-bottom: 16px;
  }

  .binku-section-title h5 {
    font-size: 14px;
  }

  .business-info-timeline {
    padding-left: 43px;
  }

  .business-info-timeline::before {
    left: 15px;
  }

  .info-timeline-dot {
    left: -43px;
    width: 32px;
    height: 32px;
  }

  .info-timeline-content h6 {
    font-size: 12px;
  }

  .schedule-clean-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .schedule-clean-day,
  .schedule-clean-hour {
    font-size: 12px;
  }

  .business-links-card__header h3,
  .comments-card__title h3 {
    font-size: 19px;
  }

  .business-links-card__header p,
  .comments-card__title p {
    font-size: 12px;
  }

  .comments-card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .comments-card__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .binku-promo {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .binku-promo__button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
  }
}

/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */
@media (max-width: 480px) {
  .binku-unified-content {
    width: calc(100% - 18px);
  }

  .binku-card,
  .binku-info-module {
    padding: 15px;
  }

  .binku-section-title__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .binku-section-title h5 {
    font-size: 13px;
    white-space: normal;
  }

  .business-info-timeline {
    padding-left: 40px;
  }

  .business-info-timeline::before {
    left: 14px;
  }

  .info-timeline-dot {
    left: -40px;
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .schedule-clean-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px 0;
  }

  .schedule-clean-hour {
    text-align: left;
    white-space: normal;
  }

  .business-links-card__header h3,
  .comments-card__title h3 {
    font-size: 18px;
  }

  .delivery-icons {
    gap: 10px;
  }

  .icon-wrapper {
    width: 54px;
    height: 54px;
  }

  .comments-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #btnToggleComentarios,
  .comments-card .btn-outline-primary {
    width: 100%;
    min-width: 0;
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 11px;
  }

  #pagination-controls {
    width: 100%;
    justify-content: space-between;
  }

  .binku-promo__content strong {
    font-size: 14px;
  }

  .binku-promo__content p {
    font-size: 10px;
  }
}

/* =========================================================
   MÓVIL MUY ANGOSTO
========================================================= */
@media (max-width: 360px) {
  .comments-card__actions {
    grid-template-columns: 1fr;
  }

  .delivery-icons {
    justify-content: flex-start;
  }

  .binku-promo {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .binku-promo__icon {
    margin-bottom: 2px;
  }

  .binku-promo__button {
    grid-column: auto;
  }
}
