/* ═══════════════════════════════════════════════════════════════
   PS Store Hero — Front-end Styles
   v1.0.0
═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
#ps-grupotdv-hero {
  --sh-bg: none;
  --sh-overlay: 0.65;
  --sh-accent: #019ed6;
  --sh-text: #ffffff;
  --sh-radius: 12px;
}

/* ── Hero wrapper ──────────────────────────────────────── */
.sh-hero {
  position: relative;
  min-height: 540px;
  background-image: var(--sh-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #111;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Fallback gradient when no image */
.sh-hero:not([style*="--sh-bg:url"]) {
  background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

/* ── Dark overlay ──────────────────────────────────────── */
.sh-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--sh-overlay));
  z-index: 1;
  /* Gradient: darker at left edges for better text readability */
  background: linear-gradient(
    105deg,
    rgba(0,0,0,calc(var(--sh-overlay) + 0.15)) 0%,
    rgba(0,0,0,var(--sh-overlay)) 60%,
    rgba(0,0,0,calc(var(--sh-overlay) - 0.1)) 100%
  );
}

/* ── Inner layout ──────────────────────────────────────── */
.sh-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 32px 60px;
}

/* ── Content (left) ────────────────────────────────────── */
.sh-hero__content {
  flex: 1 1 0;
  min-width: 0;
  color: var(--sh-text);
}

/* Store label / breadcrumb */
.sh-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  letter-spacing: .02em;
  margin-bottom: 24px;
  width: fit-content;
}

.sh-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25);
  flex-shrink: 0;
  animation: sh-pulse 2s infinite;
}

@keyframes sh-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.4); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Heading */
.sh-hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -.02em;
}

.sh-hero__accent {
  font-style: normal;
  display: block;
}

/* Description */
.sh-hero__desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin: 0 0 30px;
}

/* ── CTA Buttons ───────────────────────────────────────── */
.sh-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, opacity .18s;
  white-space: nowrap;
}

.sh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  text-decoration: none;
}

.sh-btn--accent {
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.sh-btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.75);
  color: #fff !important;
}
.sh-btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.sh-btn--ghost {
  background: rgba(255,255,255,.1);
  border-color: transparent;
  color: rgba(255,255,255,.9) !important;
  backdrop-filter: blur(6px);
}
.sh-btn--ghost:hover {
  background: rgba(255,255,255,.18);
}

/* ── Feature Cards — banda ancho completo ──────────────── */
.sh-hero__cards-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  /* Fuera del .row → no necesita compensar márgenes */
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.12);
}

.sh-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease;
  position: relative;
  overflow: hidden;
}

/* Línea de acento superior en hover */
.sh-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sh-card-accent, #019ed6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.sh-card:hover::before {
  transform: scaleX(1);
}

.sh-card:last-child {
  border-right: none;
}

.sh-card:hover {
  background: rgba(255,255,255,.07);
}

/* Icono con fondo pill */
.sh-card__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background .25s;
}

.sh-card:hover .sh-card__icon {
  background: rgba(255,255,255,.16);
}

.sh-card__body {
  min-width: 0;
}

.sh-card__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
  letter-spacing: .01em;
  line-height: 1.3;
}

.sh-card__text {
  font-size: 12px;
  color: rgba(255,255,255,.62);
  margin: 0;
  line-height: 1.55;
}

/* ── Map Panel (right) ─────────────────────────────────── */
.sh-hero__map-panel {
  flex: 0 0 320px;
  width: 320px;
  background: #fff;
  border-radius: var(--sh-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  align-self: flex-start;
  position: sticky;
  top: 20px;
}

/* Map embed */
.sh-map-embed {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.sh-map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Map info panel */
.sh-map-info {
  padding: 20px;
}

.sh-map-info__title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 10px;
  line-height: 1.3;
}

.sh-map-info__text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 16px;
}

.sh-map-info__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sh-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
}

.sh-map-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  text-decoration: none;
}

.sh-map-btn--accent {
  color: #fff !important;
}

.sh-map-btn--outline {
  background: transparent !important;
  border-color: #d1d5db;
  color: #374151 !important;
}
.sh-map-btn--outline:hover {
  border-color: #9ca3af;
  background: #f9fafb !important;
}

.sh-map-info__addr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.sh-map-info__addr svg {
  flex-shrink: 0;
  color: #9ca3af;
}

/* ── Responsive ────────────────────────────────────────── */

/* ─ Large tablet: 1025px → 1024px ─ */
@media (max-width: 1024px) {
  .sh-hero__inner {
    gap: 28px;
    padding: 60px 24px 50px;
  }

  .sh-hero__map-panel {
    flex: 0 0 270px;
    width: 270px;
  }

  /* Cards: 3 columnas en tablet grande */
  .sh-hero__cards-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .sh-card {
    padding: 18px 16px;
  }
}

/* ─ Tablet: hasta 900px ─ */
@media (max-width: 900px) {
  .sh-hero {
    min-height: unset;
  }

  .sh-hero__inner {
    padding: 50px 20px 40px;
    gap: 24px;
  }

  .sh-hero__map-panel {
    flex: 0 0 240px;
    width: 240px;
  }

  .sh-map-info {
    padding: 14px;
  }

  .sh-map-info__title {
    font-size: 15px;
  }

  .sh-map-info__text {
    font-size: 12px;
  }

  .sh-map-embed {
    height: 160px;
  }

  .sh-hero__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }

  .sh-hero__desc {
    font-size: 14px;
    max-width: 100%;
  }

  /* Cards: 2 columnas en tablet */
  .sh-hero__cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .sh-card__icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* ─ Mobile: hasta 768px — layout en columna ─ */
@media (max-width: 768px) {
  .sh-hero {
    min-height: unset;
  }

  .sh-hero__inner {
    flex-direction: column;
    padding: 44px 18px 36px;
    gap: 28px;
    align-items: stretch;
  }

  .sh-hero__label {
    font-size: 12px;
    padding: 5px 12px;
    margin-bottom: 18px;
  }

  .sh-hero__title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    margin-bottom: 14px;
  }

  .sh-hero__desc {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 22px;
  }

  .sh-hero__btns {
    gap: 10px;
    margin-bottom: 28px;
  }

  /* Cards: 2 columnas en móvil */
  .sh-hero__cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .sh-card {
    padding: 14px 14px;
    gap: 10px;
  }

  .sh-card__icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .sh-card__title {
    font-size: 12px;
  }

  .sh-card__text {
    font-size: 11px;
  }

  /* Mapa: ancho completo debajo del contenido */
  .sh-hero__map-panel {
    width: 100%;
    flex: 0 0 auto;
    position: static;
  }

  .sh-map-embed {
    height: 200px;
  }

  .sh-map-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ─ Mobile pequeño: hasta 480px ─ */
@media (max-width: 480px) {
  .sh-hero__inner {
    padding: 32px 14px 28px;
    gap: 22px;
  }

  .sh-hero__title {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .sh-hero__label {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* 1 columna en pantallas muy pequeñas */
  .sh-hero__cards-row {
    grid-template-columns: 1fr;
  }

  .sh-card {
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .sh-card:last-child {
    border-bottom: none;
  }

  .sh-card__icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .sh-hero__btns {
    flex-direction: column;
  }

  .sh-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
  }

  .sh-map-embed {
    height: 170px;
  }

  .sh-map-info {
    padding: 14px;
  }

  .sh-map-info__title {
    font-size: 15px;
  }

  .sh-map-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ─ Mobile muy pequeño: hasta 360px ─ */
@media (max-width: 360px) {
  .sh-hero__inner {
    padding: 26px 12px 22px;
  }

  .sh-hero__title {
    font-size: 1.35rem;
  }

  .sh-map-info__btns {
    flex-direction: column;
  }

  .sh-map-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════
   BOTÓN HORARIOS + MODAL DE HORARIOS
══════════════════════════════════════════════════════════ */

/* ── Botón Horarios ────────────────────────────────────── */
.sh-btn--schedule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sh-btn--schedule svg {
  flex-shrink: 0;
}

/* ── Modal — Backdrop ──────────────────────────────────── */
.sh-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.sh-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal container ───────────────────────────────────── */
.sh-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
  opacity: 0;
}

.sh-modal-backdrop.is-open .sh-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Modal header ──────────────────────────────────────── */
.sh-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.sh-modal__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

.sh-modal__title svg {
  color: var(--gtdv-accent, #019ed6);
  flex-shrink: 0;
}

.sh-modal__close {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.sh-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #111827;
}

/* ── Schedule list ─────────────────────────────────────── */
.sh-schedule__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
}

.sh-schedule__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 22px;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s;
}

.sh-schedule__item:last-child {
  border-bottom: none;
}

.sh-schedule__item:hover {
  background: #f8fafc;
}

.sh-schedule__day {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  min-width: 90px;
}

.sh-schedule__time {
  font-size: 13px;
  color: #6b7280;
  text-align: right;
  flex: 1;
}

/* Sábado y Domingo en color acento */
.sh-schedule__item--weekend .sh-schedule__day {
  color: var(--gtdv-accent, #019ed6);
}

.sh-schedule__item--weekend .sh-schedule__time {
  color: #9ca3af;
}

/* ── Responsive modal ──────────────────────────────────── */
@media (max-width: 480px) {
  .sh-modal {
    max-width: 100%;
    border-radius: 14px;
  }

  .sh-modal__header {
    padding: 16px 18px 13px;
  }

  .sh-schedule__item {
    padding: 10px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .sh-schedule__time {
    text-align: left;
  }
}
