/* ═══════════════════════════════════════════════════════════════════════
   GD MODAL QUICK VIEW — CSS portado desde gd_modals Odoo
   Adaptado al sistema de variables --mp-primary de las micropáginas Django
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Variables locales del modal ────────────────────────────────────────── */
:root {
  --gd-modal-primary:    var(--mp-primary, #121663);
  --gd-modal-radius:     16px;
  --gd-modal-shadow:     0 24px 80px rgba(0,0,0,0.35);
  --gd-modal-bg:         #0e0e1a;
  --gd-modal-surface:    #12122a;
  --gd-modal-border:     rgba(255,255,255,0.08);
  --gd-modal-text:       #f0f0f8;
  --gd-modal-muted:      #9499b8;
  --gd-modal-accent:     var(--mp-primary, #7c3aed);
  --gd-modal-success:    #25D366;
  --gd-modal-max-width:  960px;
  --gd-modal-z:          10000;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.gd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: var(--gd-modal-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gd-modal-overlay.gd-modal-active {
  opacity: 1;
  pointer-events: all;
}

body.gd-modal-open {
  overflow: hidden;
}

/* ── Contenedor ──────────────────────────────────────────────────────────── */
.gd-modal-container {
  background: var(--gd-modal-bg);
  border-radius: var(--gd-modal-radius);
  box-shadow: var(--gd-modal-shadow);
  width: 100%;
  max-width: var(--gd-modal-max-width);
  max-height: 92vh;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.gd-modal-overlay.gd-modal-active .gd-modal-container {
  transform: scale(1) translateY(0);
}

.gd-modal-content {
  height: 100%;
}

/* ── Loader ──────────────────────────────────────────────────────────────── */
.gd-modal-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
  color: var(--gd-modal-muted);
  font-family: 'Outfit', sans-serif;
}

.gd-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gd-modal-accent);
  border-radius: 50%;
  animation: gd-spin 0.8s linear infinite;
}

@keyframes gd-spin { to { transform: rotate(360deg); } }

.gd-modal-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  gap: 1rem;
  color: var(--gd-modal-muted);
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

/* ── Layout split-panel (QWeb content) ──────────────────────────────────── */
.gd-qv-wrapper {
  display: grid;
  grid-template-columns: 40% 60%;
  height: min(88vh, 680px);
}

@media (max-width: 700px) {
  .gd-qv-wrapper {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ── Panel izquierdo (galería) — FIX-12: cadena de altura completa ──────────────── */
.gd-modal-left {
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;            /* FIX-12: propagar altura del grid al panel */
  min-height: 0;           /* FIX-12: sin esto, flex ignora height:100% en algunos browsers */
}

.gd-gallery-main {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;           /* FIX-12: flex child en columna necesita min-height:0 para colapsar correctamente */
}

.gd-gallery-track {
  position: relative;      /* FIX-12: hace de containing block para los slides absoluteados */
  display: flex;
  height: 100%;
}

.gd-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gd-gallery-slide.active {
  opacity: 1;
  z-index: 1;
}

.gd-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a3e;
}

.gd-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gd-gallery-arrow:hover { background: rgba(0,0,0,0.75); }
.gd-gallery-prev { left: 8px; }
.gd-gallery-next { right: 8px; }

.gd-gallery-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 6px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  z-index: 10;
}

.gd-gallery-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.gd-gallery-dot.active { background: white; }

.gd-urgency-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 10;
  font-family: 'Outfit', sans-serif;
}

/* Thumbnails */
.gd-gallery-thumbs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(0,0,0,0.6);
  overflow-x: auto;
  flex-shrink: 0;
}

.gd-thumb {
  width: 48px; height: 40px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: opacity 0.2s, border-color 0.2s;
}

.gd-thumb.active, .gd-thumb:hover {
  opacity: 1;
  border-color: var(--gd-modal-accent);
}

.gd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gd-thumb-video-icon {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: white;
  background: #1a1a3e;
}

.gd-thumb-video-icon.tiktok { background: #000; }
.gd-thumb-video-icon.fb { background: #1877f2; }
.gd-thumb-video-icon.yt { background: #f00; }

/* Precio overlay en galería */
.gd-gallery-price-overlay {
  position: absolute;
  bottom: 56px;
  right: 10px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 6px 12px;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.gd-price-original-small {
  font-size: 0.75rem;
  color: #f87171;
  text-decoration: line-through;
  font-family: 'Outfit', sans-serif;
}

.gd-price-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #facc15;
  font-family: 'Outfit', sans-serif;
}

.gd-price-unit {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  font-family: 'Outfit', sans-serif;
}

/* ── Panel derecho ───────────────────────────────────────────────────────── */
.gd-modal-right {
  position: relative;
  overflow-y: auto;
  background: var(--gd-modal-bg);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  gap: 1rem;
  color: var(--gd-modal-text);
}

.gd-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--gd-modal-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 5;
}

.gd-modal-close:hover { background: rgba(255,255,255,0.15); color: white; }
.gd-modal-close svg { width: 16px; height: 16px; }

/* ── Step dots ───────────────────────────────────────────────────────────── */
.gd-step-dots {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
}

.gd-dot-item {
  display: flex; align-items: center; gap: 5px;
  cursor: default;
}

.gd-dot-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--gd-modal-muted);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  transition: background 0.25s, color 0.25s;
}

.gd-dot-item.active .gd-dot-num {
  background: var(--gd-modal-accent);
  color: white;
}

.gd-dot-label {
  font-size: 0.7rem;
  color: var(--gd-modal-muted);
  font-family: 'Outfit', sans-serif;
}

.gd-dot-item.active .gd-dot-label { color: var(--gd-modal-text); }

.gd-dot-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 6px;
  min-width: 20px;
}

/* ── Contenido de pasos ──────────────────────────────────────────────────── */
.gd-step-panel { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }

.gd-qv-header { display: flex; flex-direction: column; gap: 0.4rem; }

.gd-qv-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gd-modal-text);
  margin: 0; line-height: 1.3;
}

.gd-qv-badges { display: flex; flex-wrap: wrap; gap: 5px; }

.gd-badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.gd-badge-available { background: rgba(34,197,94,0.15); color: #4ade80; }
.gd-badge-featured  { background: rgba(234,179,8,0.15);  color: #fbbf24; }
.gd-badge-offer     { background: rgba(239,68,68,0.15);  color: #f87171; }
.gd-badge-discount  { background: rgba(239,68,68,0.2);   color: #f87171; font-size: 0.75rem; }

.gd-qv-desc { font-size: 0.83rem; color: var(--gd-modal-muted); line-height: 1.6; }

/* Specs chips (inmueble) */
.gd-specs-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.gd-spec-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gd-modal-border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem; color: var(--gd-modal-text);
  font-family: 'Outfit', sans-serif;
}

/* Amenidades */
.gd-amenities-section { }
.gd-amenities-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  color: var(--gd-modal-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 8px;
}

.gd-amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.gd-amenity-item {
  display: flex; align-items: flex-start; gap: 7px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px; padding: 7px 10px;
}

.gd-amenity-icon { font-size: 1rem; flex-shrink: 0; }
.gd-amenity-name { font-size: 0.78rem; font-weight: 600; color: var(--gd-modal-text); font-family: 'Outfit', sans-serif; }
.gd-amenity-val  { font-size: 0.72rem; color: var(--gd-modal-muted); }

/* Booking forms */
.gd-booking-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  color: var(--gd-modal-muted);
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px;
}

.gd-booking-title svg { width: 14px; height: 14px; }

.gd-booking-row { display: flex; gap: 10px; }
.gd-booking-field { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gd-booking-field label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  color: var(--gd-modal-muted); text-transform: uppercase; letter-spacing: 0.06em;
}

.gd-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gd-modal-border);
  border-radius: 8px;
  color: var(--gd-modal-text);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.gd-input:focus { border-color: var(--gd-modal-accent); }

/* Counter */
.gd-counter {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gd-modal-border);
  border-radius: 8px; padding: 5px 10px;
}

.gd-counter-btn {
  background: none; border: none;
  color: var(--gd-modal-text);
  font-size: 1.1rem; cursor: pointer;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}

.gd-counter-btn:hover { background: rgba(255,255,255,0.1); }
.gd-counter-val { font-weight: 700; font-size: 0.95rem; min-width: 24px; text-align: center; font-family: 'Outfit', sans-serif; }

/* Slots */
.gd-slots-grid { display: flex; flex-wrap: wrap; gap: 6px; }

.gd-slot-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gd-modal-border);
  border-radius: 8px;
  color: var(--gd-modal-text);
  font-size: 0.75rem; font-weight: 600;
  padding: 6px 12px; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}

.gd-slot-btn:hover, .gd-slot-btn.selected {
  background: var(--gd-modal-accent);
  border-color: var(--gd-modal-accent);
  color: white;
}

/* Precio principal */
.gd-qv-price-block {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid var(--gd-modal-border);
}

.gd-price-was { font-size: 0.78rem; color: #f87171; text-decoration: line-through; font-family: 'Outfit', sans-serif; }
.gd-price-main-row { display: flex; align-items: baseline; gap: 5px; }
.gd-price-figure { font-size: 1.5rem; font-weight: 800; color: #facc15; font-family: 'Outfit', sans-serif; }
.gd-price-per { font-size: 0.75rem; color: var(--gd-modal-muted); font-family: 'Outfit', sans-serif; }

/* CTA principal */
.gd-qv-cta { margin-top: auto; }

.gd-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gd-modal-accent);
  color: white;
  border: none; border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem; font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer; width: 100%;
  transition: opacity 0.2s, transform 0.15s;
}

.gd-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.gd-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.gd-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gd-modal-border);
  color: var(--gd-modal-muted);
  border-radius: 10px; padding: 9px 16px;
  font-size: 0.82rem; font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.gd-btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--gd-modal-text); }

/* Agent card */
.gd-agent-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: rgba(255,255,255,0.04);
  border-radius: 10px; border: 1px solid var(--gd-modal-border);
}

.gd-agent-avatar {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--gd-modal-accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.gd-agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gd-agent-initials { font-weight: 700; color: white; font-size: 1rem; font-family: 'Outfit', sans-serif; }
.gd-agent-label { font-size: 0.67rem; color: var(--gd-modal-muted); text-transform: uppercase; letter-spacing: 0.05em; font-family: 'Outfit', sans-serif; }
.gd-agent-name { font-size: 0.85rem; font-weight: 700; color: var(--gd-modal-text); font-family: 'Outfit', sans-serif; }
.gd-agent-location { font-size: 0.72rem; color: var(--gd-modal-muted); font-family: 'Outfit', sans-serif; }

/* Terms row */
.gd-terms-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-term-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: var(--gd-modal-muted);
  font-family: 'Outfit', sans-serif;
}

.gd-term-item svg { width: 13px; height: 13px; color: var(--gd-modal-accent); }

/* Share */
.gd-share-row { display: flex; align-items: center; gap: 8px; }
.gd-share-label { font-size: 0.72rem; color: var(--gd-modal-muted); font-family: 'Outfit', sans-serif; }
.gd-share-btns { display: flex; gap: 6px; }

.gd-share-btn {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: white; transition: opacity 0.2s;
}

.gd-share-btn:hover { opacity: 0.8; }
.gd-share-btn svg { width: 14px; height: 14px; }
.gd-share-btn.facebook  { background: #1877f2; }
.gd-share-btn.twitter   { background: #000; }
.gd-share-btn.whatsapp  { background: #25D366; }
.gd-share-btn.instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.gd-share-btn.email     { background: #64748b; }

/* Offer tags */
.gd-offer-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gd-offer-tag-badge {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  border-radius: 8px; padding: 4px 12px;
  font-size: 0.78rem; font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

/* Capacity */
.gd-capacity-block {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px; border: 1px solid var(--gd-modal-border);
}

.gd-capacity-label { font-size: 0.72rem; color: var(--gd-modal-muted); font-family: 'Outfit', sans-serif; }
.gd-capacity-val { font-size: 0.85rem; font-weight: 700; color: var(--gd-modal-text); font-family: 'Outfit', sans-serif; }

/* Paso 2 — Formulario de contacto */
.gd-step2-form {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.gd-step2-field {
  display: flex; flex-direction: column; gap: 4px;
}

.gd-step2-field label {
  font-size: 0.68rem; font-weight: 700;
  color: var(--gd-modal-muted); text-transform: uppercase;
  letter-spacing: 0.06em; font-family: 'Outfit', sans-serif;
}

.gd-step2-actions {
  display: flex; gap: 8px; margin-top: auto;
}

/* Video */
.gd-video-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #0a0a1a; gap: 12px;
}

.gd-video-brand {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700; color: white;
  font-family: 'Outfit', sans-serif;
}

.gd-video-brand svg { width: 20px; height: 20px; }
.gd-video-brand.tiktok { color: #69C9D0; }
.gd-video-brand.facebook { color: #1877f2; }
.gd-video-brand.youtube { color: #f00; }

.gd-video-play-btn {
  background: none; border: none; cursor: pointer;
  transition: transform 0.2s;
}
.gd-video-play-btn:hover { transform: scale(1.1); }
.gd-video-play-btn svg { width: 60px; height: 60px; }

.gd-video-label {
  font-size: 0.78rem; color: rgba(255,255,255,0.6);
  font-family: 'Outfit', sans-serif;
}

.gd-video-embed-container {
  position: absolute; inset: 0;
}

.gd-video-external-link {
  color: var(--gd-modal-accent); text-decoration: none;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 700;
}

/* ── Cross-sell carousel ─────────────────────────────────────────────────── */
.gd-cross-sell-section {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--gd-modal-border);
}

.gd-cross-sell-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  color: var(--gd-modal-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 10px;
}

.gd-cross-sell-track { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }

.gd-cross-sell-card {
  flex-shrink: 0;
  width: 140px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gd-modal-border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.gd-cross-sell-card:hover {
  border-color: var(--gd-modal-accent);
  transform: translateY(-2px);
}

/* ── Botón "Ver Detalles" en tarjetas de catálogo ────────────────────────── */
.gd-catalog-modal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--mp-primary, #121663);
  color: white;
  font-size: 0.78rem; font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  flex: 1;
}

.gd-catalog-modal-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Paso 3: el cierre de la reserva en planes sin pasarela ─────────────────
   Lo pinta renderPaso3() en gd_modal_client.js. El servidor solo deja el
   contenedor vacio para gratuito y starter, que son 44 de los 47 negocios
   publicados: este es el paso donde se cierra la venta, no un adorno.        */
.gd-p3 { text-align: center; padding: 26px 20px 22px; }
.gd-p3-tick {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: #e2f3ec; color: #157a52;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
}
.gd-p3-tit { margin: 0 0 6px; font-size: 1.22rem; font-weight: 800; color: #14162f; }
.gd-p3-sub { margin: 0 auto 20px; max-width: 34ch; font-size: .93rem;
  line-height: 1.5; color: #4a4f6b; }

.gd-p3-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; max-width: 330px; padding: 14px 22px;
  border-radius: 11px; background: #25d366; color: #fff;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 12px rgba(37, 211, 102, .32);
}
.gd-p3-wa:hover { background: #1eb955; color: #fff; }

.gd-p3-alts { margin-top: 16px; display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; }
.gd-p3-alt {
  padding: 9px 17px; border-radius: 9px; border: 1px solid #dcdeeb;
  background: #fff; color: #121663; font-size: .87rem; font-weight: 600;
  text-decoration: none;
}
.gd-p3-alt:hover { background: #f2f3f9; color: #121663; }

@media (max-width: 480px) {
  .gd-p3 { padding: 20px 15px 18px; }
  .gd-p3-alts { flex-direction: column; }
  .gd-p3-alt { width: 100%; }
}

/* Venta cruzada tras reserva confirmada (SPEC-029) -- ver
   renderCrossSellNudge() en gd_modal_client.js. Vive dentro del mismo panel
   de confirmacion, que siempre es claro (no responde al toggle oscuro/claro
   del restaurante, es un modal compartido por todas las verticales). */
.gd-nudge-wrap { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #e2e4ef; }
.gd-nudge-title { margin: 0 0 12px; font-size: .85rem; font-weight: 700; color: #4a4f6b; }
.gd-nudge-track { display: flex; gap: 10px; overflow-x: auto; justify-content: center; }
.gd-nudge-card {
  flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px; border: 1px solid #e2e4ef; border-radius: 12px; background: #fff;
  cursor: pointer; font-family: inherit; transition: box-shadow .2s, border-color .2s;
}
.gd-nudge-card:hover { border-color: #121663; box-shadow: 0 4px 14px rgba(18,22,99,.12); }
.gd-nudge-card img, .gd-nudge-noimg {
  width: 72px; height: 72px; border-radius: 9px; object-fit: cover; background: #f2f3f9;
  display: flex; align-items: center; justify-content: center; color: #b8bad0; font-size: 1.1rem;
}
.gd-nudge-name { font-size: .72rem; font-weight: 700; color: #14162f; text-align: center;
  line-height: 1.25; max-width: 88px; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gd-nudge-price { font-size: .74rem; font-weight: 800; color: #059669; }

/* ── Un solo diseño para el modal ────────────────────────────────────────
   Habia DOS hojas para el mismo HTML y con paletas opuestas:

     Django (esta)   --gd-modal-bg: #0e0e1a   modal oscuro
     Odoo   (modulo) --gd-bg: #ffffff         modal claro, texto azul oscuro

   El HTML lo genera Odoo, asi que su contenido usa var(--gd-text) -azul
   oscuro- y caia sobre el fondo casi negro de aqui: invisible. El panel
   derecho se veia vacio con sus 26 KB de contenido dentro.

   Se elige el diseño de Odoo, que es el completo: 80 KB frente a 23 KB, y el
   unico que trae la maquetacion del panel, del formulario y del carrusel de
   "tambien te puede interesar". El oscuro nunca se termino.               */
:root {
  --gd-modal-bg:      #ffffff;
  --gd-modal-surface: #f8fafc;
  --gd-modal-text:    #0f172a;
  --gd-modal-border:  #e2e8f0;
}

.gd-modal-container,
.gd-modal-content,
.gd-modal-right {
  background: #ffffff;
  color: #0f172a;
}

/* El panel izquierdo -la galeria- si se queda oscuro: es el marco de la foto
   y ahi el contraste ayuda. */
.gd-modal-left {
  background: #0e0e1a;
}
