/* ============================================================
   WEBÉAME v4.0.0 - BASE CSS
   Elementos comunes a todas las plantillas
   Cargado siempre, independientemente de la plantilla
============================================================ */

/* -------------------------------------------------------
   VARIABLES GLOBALES
-------------------------------------------------------- */
:root {
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  --width-narrow: 700px;
  --width-base: 1200px;
  --width-wide: 1400px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* -------------------------------------------------------
   RESET BÁSICO
-------------------------------------------------------- */
.wb-wrap * {
  box-sizing: border-box;
}

.wb-wrap {
  width: 100%;
  margin: 0 auto;
}

/* Defensivo: media (imágenes, vídeos, iframes) nunca deben salirse
   de su contenedor. Evita desbordes horizontales y layouts rotos. */
.wb-wrap img,
.wb-wrap video,
.wb-wrap iframe {
  max-width: 100%;
}

/* -------------------------------------------------------
   HERO BASE
-------------------------------------------------------- */
.wb-hero {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.wb-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------
   AVATAR BASE
-------------------------------------------------------- */
.wb-avatar {
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------
   LOGO BASE (sin fondo, sin marco)
-------------------------------------------------------- */
/* Logo: sin límites en base — cada plantilla define su tamaño */
.wb-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.wb-logo-container img {
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

/* -------------------------------------------------------
   BOTONES BASE
-------------------------------------------------------- */
.wb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 48px;
  text-align: center;
}

.wb-btn i {
  font-size: 18px;
  flex-shrink: 0;
}

/* -------------------------------------------------------
   PORTFOLIO BASE
-------------------------------------------------------- */
.wb-portfolio-media {
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.wb-portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.wb-portfolio-card:hover .wb-portfolio-media img {
  transform: scale(1.05);
}

.wb-portfolio-card {
  text-decoration: none;
  color: inherit;
}

/* -------------------------------------------------------
   SKELETON LOADING
-------------------------------------------------------- */
.wb-skel {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -------------------------------------------------------
   FAB GUARDAR CONTACTO
-------------------------------------------------------- */
.wb-save-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wb-fab-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(102,126,234,0.4);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wb-fab-trigger:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 32px rgba(102,126,234,0.5);
}

.wb-fab-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.wb-save-fab.active .wb-fab-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.wb-fab-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 28px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.wb-fab-menu a:hover {
  background: #f8fafc;
  transform: translateX(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.wb-fab-demo-warning {
  display: block;
  padding: 12px 16px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 14px;
  color: #664d03;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

@media (max-width: 640px) {
  .wb-save-fab {
    bottom: 16px;
    right: 16px;
  }
  
  .wb-fab-trigger {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

/* -------------------------------------------------------
   MODAL TELÉFONO
-------------------------------------------------------- */
.wb-phone-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.wb-phone-modal.active {
  display: flex;
}

.wb-phone-modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.wb-phone-modal-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
}

.wb-phone-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.wb-phone-modal-number {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.5px;
}

.wb-phone-modal-actions {
  display: flex;
  gap: var(--space-md);
}

.wb-phone-modal-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wb-phone-modal-btn-copy {
  background: #10b981;
  color: #ffffff;
}

.wb-phone-modal-btn-copy:hover {
  background: #059669;
}

.wb-phone-modal-btn-close {
  background: #f1f5f9;
  color: #0f172a;
}

.wb-phone-modal-btn-close:hover {
  background: #e2e8f0;
}

/* -------------------------------------------------------
   MÓDULO MAPA — nueva estructura: título fuera de tarjeta
-------------------------------------------------------- */
.wb-map-card {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}

.wb-map-iframe {
  width: 100%;
  display: block;
  border: 0;
}

/* Botón "Cómo llegar" — superpuesto sobre el mapa, esquina inferior izquierda */
.wb-map-card {
  position: relative; /* ya definido arriba, reforzamos */
}

.wb-map-directions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  pointer-events: auto;
}

.wb-btn--directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1a73e8;
  color: white !important;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.wb-btn--directions:hover {
  background: #1557b0;
}

/* wb-module-title: estilo unificado para portfolio y mapa */
.wb-module-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  margin-top: 0;
}

/* -------------------------------------------------------
   MÓDULO HORARIO — wb-module--schedule
   Tipografía 100% heredada de la plantilla.
   Solo la estructura y las pastillas son propias.
-------------------------------------------------------- */
.wb-module--schedule {
  width: 100%;
}

.wb-schedule-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Cabecera: icono + título + subtítulo */
.wb-schedule-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.wb-schedule-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wb-schedule-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  opacity: 0.6;
}

.wb-schedule-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
}

.wb-schedule-subtitle {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 2px;
  font-weight: 400;
}

/* Aviso "Hoy cerrado por festivo/vacaciones" */
.wb-schedule-today-alert {
  margin: 8px 16px 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wb-schedule-today-alert::before {
  content: "⚠";
  font-size: 15px;
  flex-shrink: 0;
}

/* Próximos cierres (festivos/vacaciones) */
.wb-schedule-upcoming {
  margin: 8px 16px 0;
  padding: 10px 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.wb-schedule-upcoming-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}
.wb-schedule-upcoming-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wb-schedule-upcoming-list li {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}
.wb-schedule-upcoming-date {
  font-weight: 600;
  color: #0f172a;
}
.wb-schedule-upcoming-label {
  color: #64748b;
}
.wb-schedule-upcoming-label::before {
  content: "— ";
}

/* Filas de días */
.wb-schedule-rows {
  padding: 4px 0;
}

.wb-schedule-row {
  display: flex;
  align-items: center;
  padding: 9px 24px;
  gap: 12px;
  transition: background var(--transition-fast);
  position: relative;
}

.wb-schedule-row:hover {
  background: rgba(0,0,0,0.02);
}

/* Día actual: banda de acento sutil */
.wb-schedule-row.is-today {
  background: rgba(0,0,0,0.035);
}

.wb-schedule-row.is-today::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
  opacity: 0.35;
}

/* Días cerrados: atenuados */
.wb-schedule-row.is-closed {
  opacity: 0.38;
}

/* Punto indicador de "hoy" */
.wb-schedule-today-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.wb-schedule-row:not(.is-today) .wb-schedule-today-dot {
  visibility: hidden;
}

/* Nombre del día */
.wb-schedule-day {
  font-size: 13px;
  font-weight: 500;
  width: 82px;
  flex-shrink: 0;
  opacity: 0.8;
}

.wb-schedule-row.is-today .wb-schedule-day {
  font-weight: 700;
  opacity: 1;
}

/* Contenedor de pastillas horarias */
.wb-schedule-slots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

/* Pastilla de horario */
.wb-schedule-slot {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.07);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Label "Cerrado" */
.wb-schedule-closed {
  font-size: 12px;
  font-style: italic;
  opacity: 0.45;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .wb-schedule-header {
    padding: 16px 18px 14px;
  }

  .wb-schedule-row {
    padding: 8px 18px;
    gap: 10px;
  }

  .wb-schedule-day {
    width: 70px;
    font-size: 12px;
  }

  .wb-schedule-slot {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* -------------------------------------------------------
   MÓDULO HORARIO — wb-module--schedule  (v4.1.0)
   Tipografía 100% heredada de la plantilla.
-------------------------------------------------------- */
.wb-module--schedule { width: 100%; }
.wb-schedule-card { background:#fff; border-radius:var(--radius-lg); overflow:hidden; border:1px solid rgba(0,0,0,.08); box-shadow:0 2px 12px rgba(0,0,0,.06); }
.wb-schedule-header { display:flex; align-items:center; gap:12px; padding:20px 24px 16px; border-bottom:1px solid rgba(0,0,0,.07); }
.wb-schedule-icon { width:34px; height:34px; border-radius:9px; background:rgba(0,0,0,.05); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.wb-schedule-icon svg { width:16px; height:16px; stroke:currentColor; opacity:.6; }
.wb-schedule-title { font-weight:700; font-size:15px; line-height:1.2; margin:0; }
.wb-schedule-subtitle { font-size:12px; opacity:.55; margin-top:2px; }
.wb-schedule-rows { padding:4px 0; }
.wb-schedule-row { display:flex; align-items:center; padding:9px 24px; gap:12px; position:relative; }
.wb-schedule-row:hover { background:rgba(0,0,0,.02); }
.wb-schedule-row.is-today { background:rgba(0,0,0,.035); }
.wb-schedule-row.is-today::before { content:''; position:absolute; left:0; top:6px; bottom:6px; width:3px; border-radius:0 2px 2px 0; background:currentColor; opacity:.35; }
.wb-schedule-row.is-closed { opacity:.38; }
.wb-schedule-today-dot { width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.5; flex-shrink:0; }
.wb-schedule-row:not(.is-today) .wb-schedule-today-dot { visibility:hidden; }
.wb-schedule-day { font-size:13px; font-weight:500; width:82px; flex-shrink:0; opacity:.8; }
.wb-schedule-row.is-today .wb-schedule-day { font-weight:700; opacity:1; }
.wb-schedule-slots { display:flex; gap:6px; flex-wrap:wrap; flex:1; }
.wb-schedule-slot { font-size:12px; font-weight:500; padding:3px 10px; border-radius:20px; background:rgba(0,0,0,.07); white-space:nowrap; }
.wb-schedule-closed { font-size:12px; font-style:italic; opacity:.45; }
@media(max-width:480px){
  .wb-schedule-header { padding:16px 18px 14px; }
  .wb-schedule-row { padding:8px 18px; gap:10px; }
  .wb-schedule-day { width:70px; font-size:12px; }
  .wb-schedule-slot { font-size:11px; padding:3px 8px; }
}

/* -------------------------------------------------------
   MÓDULO TESTIMONIOS — wb-module--testimonials  (v4.3.0)
   Carrusel vertical: comilla + texto + avatar/nombre abajo.
-------------------------------------------------------- */
.wb-module--testimonials { width: 100%; }

/* Wrapper: flechas + outer */
.wb-testimonials-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ventana de overflow */
.wb-testimonials-outer {
  flex: 1;
  overflow: hidden;
}

/* Track deslizante */
.wb-testimonials-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* ── Tarjeta ── */
.wb-testimonial-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 4px;           /* espacio para que la sombra no se corte */
  position: relative;
}

/* Desktop peek: la tarjeta activa ocupa ~82%, las adyacentes asoman */
@media(min-width:600px) {
  .wb-testimonial-card { flex: 0 0 calc(82% - 8px); }
}

/* Comilla decorativa */
.wb-testimonial-card::before {
  content: '“';
  display: block;
  font-size: 64px;
  line-height: 1;
  margin-bottom: 4px;
  opacity: .15;
  font-family: Georgia, serif;
}

/* Estrellas */
.wb-testimonial-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

/* Texto */
.wb-testimonial-text {
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
  opacity: .82;
  flex: 1;
}

/* Separador */
.wb-testimonial-divider {
  height: 1px;
  background: rgba(0,0,0,.07);
  margin: 20px 0 16px;
}

/* Fila avatar + nombre */
.wb-testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar circular */
.wb-testimonial-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0,0,0,.07);
}
.wb-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Iniciales cuando no hay foto */
.wb-testimonial-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  opacity: .35;
}

/* Nombre */
.wb-testimonial-name {
  font-size: 14px;
  font-weight: 700;
  opacity: .75;
}

/* ── Flechas ── */
.wb-testimonials-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.13);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, box-shadow .18s;
  color: inherit;
  padding: 0;
  line-height: 1;
}
.wb-testimonials-btn:disabled { opacity: .2; cursor: default; box-shadow: none; }
.wb-testimonials-btn:not(:disabled):hover { background: rgba(0,0,0,.04); box-shadow: 0 2px 12px rgba(0,0,0,.1); }

/* ── Dots ── */
.wb-testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.wb-testimonials-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.15);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s, width .2s;
}
.wb-testimonials-dot.is-active {
  width: 20px;
  border-radius: 3px;
  background: currentColor;
  opacity: .5;
}

/* ── Responsive ── */
@media(max-width:480px) {
  .wb-testimonial-card { padding: 22px 20px 18px; margin: 2px; }
  .wb-testimonial-card::before { font-size: 50px; }
  .wb-testimonial-text { font-size: 14px; }
  .wb-testimonials-btn { width: 32px; height: 32px; font-size: 13px; }
}

/* Schedule: el título ya aparece dentro de la tarjeta — ocultar el h2 externo */
/* wb-module-title visible encima de la tarjeta (igual que mapa y testimonios) */
.wb-module--schedule .wb-module-title {
  display: block;
}
/* Ocultar el header interno de la tarjeta (repetía el título con icono) */
.wb-schedule-header {
  display: none;
}



/* ────────────────────────────────────────────────────────────────────────────
   MÓDULO GALERÍA — wb-module--gallery  (v4.5.20)
   Grid responsivo de miniaturas + lightbox fullscreen.
──────────────────────────────────────────────────────────────────────────── */
.wb-module--gallery { width: 100%; min-width: 0; }

/* Wrapper: flechas + scroll */
.wb-gallery-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Flechas — misma estética que testimonios */
.wb-gallery-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, opacity 0.18s;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.wb-gallery-btn:hover  { background: #f4f4f5; }
.wb-gallery-btn:disabled { opacity: .3; cursor: default; }

/* En móvil las flechas se ocultan — el swipe es suficiente */
@media (max-width: 768px) {
  .wb-gallery-btn { display: none; }
}

/* Scroll horizontal */
.wb-gallery-grid {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wb-gallery-grid::-webkit-scrollbar { display: none; }

/* Item: altura fija, ancho proporcional */
.wb-gallery-item {
  position: relative;
  flex: 0 0 auto;
  height: 180px;
  width: 180px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(0,0,0,.06);
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .wb-gallery-item { height: 140px; width: 140px; }
}

.wb-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.wb-gallery-item:hover img {
  transform: scale(1.05);
  opacity: .88;
}

/* Caption overlay en hover */
.wb-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  font-size: 11.5px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  border-radius: 0 0 8px 8px;
}

.wb-gallery-item:hover .wb-gallery-caption { opacity: 1; }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.wb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.wb-lightbox.is-open {
  pointer-events: auto;
  opacity: 1;
}

.wb-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  cursor: pointer;
}

.wb-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1000px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wb-lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 60px);
  object-fit: contain;
  border-radius: 6px;
  display: block;
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
}

.wb-lightbox-caption {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  text-align: center;
  max-width: 540px;
  line-height: 1.5;
  min-height: 20px;
}

/* Botón cerrar */
.wb-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  padding: 0;
}

.wb-lightbox-close:hover { background: rgba(255,255,255,.28); }

/* Navegación prev/next */
.wb-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  padding: 0;
  z-index: 2;
}

.wb-lightbox-nav:hover { background: rgba(255,255,255,.28); }
.wb-lightbox-prev { left: -56px; }
.wb-lightbox-next { right: -56px; }

@media (max-width: 640px) {
  .wb-lightbox-prev { left: 8px; }
  .wb-lightbox-next { right: 8px; }
  .wb-lightbox-close { top: 8px; right: 8px; position: fixed; }
}

/* ── SLOTS DE REORDENACIÓN MÓVIL ─────────────────────────────────────────── */
/* Creados por JS para colocar horario y mapa en el orden correcto en móvil   */
@media (max-width: 768px) {
  .wb-m-slot {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
  }
  /* Horario: entre bio y portfolio (order 4 → entre bio:3 y modules:5) */
  .wb-wrap[data-wb-v5="1"] > .wb-m-slot--schedule { order: 4 !important; }
  /* Mapa: entre portfolio y testimonios (order 6 → entre modules:5 y col-extra:7) */
  .wb-wrap[data-wb-v5="1"] > .wb-m-slot--map      { order: 6 !important; }
  /* Col-extra que queda vacía tras extraer módulos → ocultar */
  .wb-col-extra:empty { display: none !important; }

  /* ── Módulos movidos directamente a wb-wrap por el JS de reordenación ── */
  .wb-wrap[data-wb-v5="1"] > .wb-module--schedule,
  .wb-wrap[data-wb-v5="1"] > .wb-module--map,
  .wb-wrap[data-wb-v5="1"] > .wb-module--testimonials {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 16px 16px !important;
  }
  /* Iframe del mapa: no puede desbordar */
  .wb-wrap[data-wb-v5="1"] > .wb-module--map .wb-map-iframe,
  .wb-wrap[data-wb-v5="1"] > .wb-module--map .wb-map-body {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  /* Galería y testimonios: nunca más anchos que el viewport */
  .wb-module--gallery,
  .wb-module--testimonials {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .wb-gallery-carousel-wrap,
  .wb-testimonials-carousel-wrap {
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

/* ── MODAL FORMULARIO DE CONTACTO ──────────────────────── */
.wb-contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  padding: 16px;
}
.wb-contact-modal.active { display: flex; }
.wb-contact-modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.wb-contact-modal-title { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0 0 6px 0; }
.wb-contact-modal-subtitle { font-size: 13px; color: #64748b; margin: 0 0 20px 0; }
.wb-contact-modal-field { margin-bottom: 14px; }
.wb-contact-modal-field label {
  display: block; font-size: 12px; font-weight: 600; color: #475569;
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px;
}
.wb-contact-modal-field input,
.wb-contact-modal-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid #e2e8f0; border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; color: #0f172a; transition: border-color 0.15s;
}
.wb-contact-modal-field input:focus,
.wb-contact-modal-field textarea:focus {
  outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.wb-contact-modal-field textarea { min-height: 90px; resize: vertical; }
.wb-contact-modal-methods { display: flex; gap: 10px; margin-bottom: 14px; }
.wb-contact-modal-method {
  flex: 1; padding: 10px 12px; border: 2px solid #e2e8f0;
  border-radius: var(--radius-md); cursor: pointer; font-size: 13px; font-weight: 600;
  color: #475569; background: white; text-align: center; transition: all 0.15s; user-select: none;
}
.wb-contact-modal-method.active { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.wb-contact-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.wb-contact-modal-submit {
  flex: 1; padding: 13px 20px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  background: #3b82f6; color: white; transition: background 0.15s;
}
.wb-contact-modal-submit:hover { background: #2563eb; }
.wb-contact-modal-submit:disabled { background: #93c5fd; cursor: not-allowed; }
.wb-contact-modal-cancel {
  padding: 13px 20px; border-radius: var(--radius-md); font-weight: 600;
  font-size: 15px; border: none; cursor: pointer; background: #f1f5f9; color: #0f172a; transition: background 0.15s;
}
.wb-contact-modal-cancel:hover { background: #e2e8f0; }
.wb-contact-modal-success { text-align: center; padding: 16px 0 8px; }
.wb-contact-modal-success-icon { font-size: 48px; margin-bottom: 12px; }
.wb-contact-modal-success-title { font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.wb-contact-modal-success-text  { font-size: 14px; color: #64748b; margin-bottom: 20px; }

/* ── REDES SOCIALES ─────────────────────────────────────────────────────── */
.wb-social-module {
  display: none; /* JS lo muestra añadiendo .wb-social--active cuando hay redes configuradas */
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 4px;
}
.wb-social-module.wb-social--active {
  display: flex;
}
.wb-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.wb-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15,23,42,0.06);
  color: #475569;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  text-decoration: none;
  flex-shrink: 0;
}
.wb-social-icon:hover {
  background: rgba(15,23,42,0.12);
  color: #0f172a;
  transform: translateY(-2px);
}
.wb-social-icon svg { width: 18px; height: 18px; display: block; }

/* ── Módulo Vídeo ──────────────────────────────────────────────────────────── */
.wb-module--video {
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.wb-template-6 .wb-module--video {
  margin-top: 0;
}
.wb-video-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.wb-video-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.wb-video-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.wb-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}
.wb-video-thumb:hover { transform: translateY(-2px); }
.wb-video-thumb.is-active { border-color: var(--wb-accent, #D4A853); }
.wb-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wb-video-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
}
.wb-video-thumb-play svg { width: 28px; height: 28px; }

/* ── BANNER DE COOKIES ───────────────────────────────────────────────────── */
#wb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10,12,18,.97);
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}
#wb-cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
#wb-cookie-banner a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
}
#wb-cookie-banner a:hover { color: rgba(255,255,255,.85); }
#wb-cookie-accept {
  background: var(--wb-accent, #D4A853);
  color: #0a0c12;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
#wb-cookie-accept:hover { opacity: .88; }

/* ── FOOTER LEGAL ────────────────────────────────────────────────────────── */
.wb-footer-legal {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.wb-footer-legal a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.wb-footer-legal a:hover { color: var(--fg); }

/* ── PÁGINA LEGAL ────────────────────────────────────────────────────────── */
.wb-legal-page {
  min-height: 100vh;
  background: #0a0c12;
  color: #e0e4ef;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
.wb-legal-nav {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 16px;
}
.wb-legal-nav a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 13px;
}
.wb-legal-nav a:hover { color: rgba(255,255,255,.85); }
.wb-legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.wb-legal-body h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}
.wb-legal-body .wb-legal-updated {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  margin-bottom: 36px;
}
.wb-legal-body h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
  margin: 32px 0 8px;
}
.wb-legal-body p { margin: 0 0 14px; color: rgba(255,255,255,.70); }
.wb-legal-body .wb-legal-note {
  margin-top: 40px;
  padding: 16px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ── RATING ESTRELLAS ────────────────────────────────────────────────────── */
.wb-rating { display:flex; align-items:center; gap:6px; margin-top:4px; width:fit-content; }
.wb-rating-stars { color:#D4A853; font-size:14px; letter-spacing:1px; }
.wb-rating-avg { font-size:13px; font-weight:600; color:#D4A853; }
.wb-rating-count { font-size:12px; color:rgba(255,255,255,.5); }
