/* ===================================================================
   CAFÉ PARA TRES — ESTILOS MODERNOS Y RESPONSIVOS (MOBILE-FIRST)
   Enfoque: Mobile-First · CSS Grid · Flexbox · rem/vh/% · Media Queries
   Sin dependencias externas ni conexión a internet requerida.
   =================================================================== */

/* ===================================================================
   VARIABLES (DESIGN TOKENS)
   =================================================================== */
:root {
  /* Paleta cromática inspirada en café tostado, crema y calidez */
  --bg-main: #0f0b08;
  --bg-surface: #18120e;
  --bg-card: rgba(28, 21, 16, 0.85);
  --bg-card-hover: rgba(40, 30, 23, 0.95);
  --bg-glass: rgba(22, 17, 13, 0.7);

  --text-primary: #fdfaf6;
  --text-secondary: #d1c4b7;
  --text-muted: #9c8e82;

  --accent-gold: #e5a962;
  --accent-gold-light: #f3c993;
  --accent-gold-dark: #b87b38;
  --accent-amber: #ff9f43;
  --accent-green: #2ecc71;
  --accent-green-glow: rgba(46, 204, 113, 0.35);

  --border-subtle: rgba(229, 169, 98, 0.15);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(229, 169, 98, 0.45);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 35px rgba(229, 169, 98, 0.22);

  /* Sistema tipográfico */
  --font-serif: "Playfair Display", "Didot", "Bodoni MT", "Georgia", "Baskerville", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Border radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Espaciado de secciones — escala mobile-first */
  --section-padding-v: 3rem;
  --section-padding-h: 1rem;
  --gap-grid: 1rem;
}

/* ===================================================================
   RESET Y CAJA UNIVERSAL
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===================================================================
   BASE — Mobile-First (base = móvil ≤ 480px)
   =================================================================== */
html {
  scroll-behavior: smooth;
  /* Fluid base font: 15px mobile → 16px desktop */
  font-size: clamp(0.9375rem, 0.85rem + 0.5vw, 1rem);
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(229, 169, 98, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(184, 123, 56, 0.04) 0%, transparent 45%);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, a {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================================================
   NAVBAR — Mobile-First · Sticky · Glassmorphism
   =================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Fondo transparente por defecto, oscuro al hacer scroll (clase .scrolled vía JS) */
.navbar.scrolled,
.navbar.menu-open {
  background: rgba(12, 9, 7, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo picture,
.navbar-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  border: none;
  display: block;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Links desktop — ocultos en mobile */
.navbar-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.navbar-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.navbar-link:hover {
  color: var(--accent-gold-light);
  background: rgba(229, 169, 98, 0.1);
}

/* CTA WhatsApp desktop — oculto en mobile */
.navbar-cta {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.navbar-cta svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Hamburger */
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.navbar-hamburger:hover {
  background: rgba(229, 169, 98, 0.12);
  border-color: var(--border-subtle);
}

.navbar-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animación X al abrir */
.navbar-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil desplegable */
.navbar-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(10, 7, 5, 0.97);
  backdrop-filter: blur(16px);
}

.navbar-mobile-menu.open {
  max-height: 420px;
}

.navbar-mobile-menu ul {
  list-style: none;
  padding: 0.75rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-mobile-link {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.navbar-mobile-link:hover {
  color: var(--accent-gold-light);
  background: rgba(229, 169, 98, 0.08);
  border-color: var(--border-subtle);
}

.navbar-mobile-cta {
  margin-top: 0.5rem;
  color: #25D366 !important;
  border-color: rgba(37, 211, 102, 0.25) !important;
  background: rgba(37, 211, 102, 0.07) !important;
  font-weight: 600;
}

/* Compensar el espacio del navbar fijo en el body */
body {
  padding-top: 64px;
}

/* ===================================================================
   HERO / PORTADA CON VIDEO DE FONDO — Mobile-First
   =================================================================== */
.hero {
  position: relative;
  min-height: 100svh; /* svh para evitar el chrome bar en móvil */
  min-height: 100vh; /* fallback */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Mobile: padding mínimo para no solapar con scroll indicator */
  padding: 5rem 1rem 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7) contrast(1.1);
  transform: scale(1.02);
  transition: opacity 1s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 11, 8, 0.75) 0%,
    rgba(15, 11, 8, 0.5) 40%,
    rgba(15, 11, 8, 0.85) 80%,
    rgba(15, 11, 8, 1) 100%
  );
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 860px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0; /* gestionado via margin en hijos */
  animation: heroFadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Control de video flotante */
.video-control-btn {
  position: absolute;
  /* Mobile: pegado arriba a la derecha */
  top: 1rem;
  right: 1rem;
  z-index: 5;
  background: rgba(20, 15, 12, 0.65);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.video-control-btn:hover {
  background: rgba(40, 30, 23, 0.85);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.video-control-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(24, 18, 14, 0.85);
  border: 1px solid var(--border-highlight);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  max-width: 100%;
}

.status-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
  background-color: var(--accent-green);
  position: relative;
}

.status-dot.open {
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.status-dot.open::after {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  animation: pulseGreen 2s infinite;
}

.status-dot.closed {
  background-color: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

@keyframes pulseGreen {
  0%   { transform: scale(0.9); opacity: 1; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(2);   opacity: 0; }
}

/* Títulos hero — clamp fluid */
.hero-title {
  font-family: var(--font-serif);
  /* Mobile: min 2rem, max 4.2rem, fluido entre breakpoints */
  font-size: clamp(3.28rem, 11.7vw, 7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  padding: 0 0.5rem;
}

/* Hero badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0 0.25rem;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--accent-gold-light);
  background: rgba(229, 169, 98, 0.08);
  border: 1px solid rgba(229, 169, 98, 0.25);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.hero-badge-item svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Hero actions */
.hero-actions {
  display: flex;
  flex-direction: column;      /* mobile: apilados verticalmente */
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  max-width: 360px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px; /* accesibilidad táctil */
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-primary {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2ae26d, #14a090);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(229, 169, 98, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  transform: translateY(-3px);
}

.btn-instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(131, 58, 180, 0.15));
  color: #ff8ab3;
  border: 1px solid rgba(225, 48, 108, 0.3);
  backdrop-filter: blur(8px);
}

.btn-instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.3), rgba(131, 58, 180, 0.3));
  border-color: #ff8ab3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.25);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: bounce 2.2s infinite;
}

.scroll-indicator svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* ===================================================================
   SECCIONES GENERALES — Mobile-First
   =================================================================== */
.section {
  padding: var(--section-padding-v) var(--section-padding-h);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* Título de galería: +30% sobre el tamaño base */
#galeria .section-title {
  font-size: clamp(2.28rem, 6.5vw, 3.64rem);
}

.section-desc {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  padding: 0 0.5rem;
}

/* ===================================================================
   SECCIÓN: NUESTRA EXPERIENCIA (3 PILARES) — Mobile-First
   =================================================================== */
.pillars-grid {
  display: grid;
  /* Mobile: 1 columna */
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-gold), var(--shadow-md);
}

.pillar-card:hover::before { opacity: 1; }

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(229, 169, 98, 0.12);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}

.pillar-text {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ===================================================================
   SECCIÓN: GALERÍA VISUAL (BENTO GRID) — Mobile-First
   =================================================================== */
.gallery-grid {
  display: grid;
  /* Mobile: 1 columna */
  grid-template-columns: 1fr;
  grid-auto-rows: 260px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  transition: transform var(--transition-smooth),
              border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

/* Mobile: todos los items ocupan 1 columna completa */
.gallery-item-1,
.gallery-item-2,
.gallery-item-3,
.gallery-item-4,
.gallery-item-5,
.gallery-item-6,
.gallery-item-7,
.gallery-item-8 {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  z-index: 2;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover .gallery-img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(15, 11, 8, 0.6) 70%,
    rgba(15, 11, 8, 0.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0.95;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(229, 169, 98, 0.2);
  color: var(--accent-gold-light);
  border: 1px solid rgba(229, 169, 98, 0.4);
  margin-bottom: 0.35rem;
  backdrop-filter: blur(4px);
}

.gallery-badge.gluten-free {
  background: rgba(46, 204, 113, 0.25);
  color: #74f3aa;
  border-color: rgba(46, 204, 113, 0.5);
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.gallery-item-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===================================================================
   SECCIÓN: HORARIOS DE ATENCIÓN — Mobile-First
   =================================================================== */
.schedule-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.schedule-container::after {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 169, 98, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.schedule-current-banner {
  display: flex;
  flex-direction: column;   /* Mobile: apilado */
  align-items: flex-start;
  gap: 1rem;
  background: rgba(229, 169, 98, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.current-status-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.status-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge-lg.open {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.status-badge-lg.closed {
  background: rgba(255, 159, 67, 0.2);
  color: #ff9f43;
  border: 1px solid rgba(255, 159, 67, 0.4);
}

.current-time-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Grilla de días: 1 columna en mobile */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.schedule-day-card {
  background: rgba(18, 14, 11, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-smooth);
  position: relative;
}

.schedule-day-card:hover {
  background: rgba(30, 23, 18, 0.8);
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.schedule-day-card.is-today {
  border-color: var(--accent-gold);
  background: rgba(229, 169, 98, 0.1);
  box-shadow: 0 0 25px rgba(229, 169, 98, 0.18);
}

.schedule-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.today-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent-gold);
  color: #1a120c;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
}

.day-hours {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hours-shift {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hours-shift.highlight {
  color: var(--accent-gold-light);
  font-weight: 600;
}

.hours-shift svg {
  width: 13px;
  height: 13px;
  fill: var(--accent-gold);
  opacity: 0.75;
  flex-shrink: 0;
}

.hours-note {
  font-size: 0.78rem;
  color: var(--accent-amber);
  font-style: italic;
}

.schedule-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: left;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-card);
}

.schedule-footer-note svg {
  width: 15px;
  height: 15px;
  fill: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ===================================================================
   SECCIÓN: UBICACIÓN Y CONTACTO — Mobile-First
   =================================================================== */
.contact-grid {
  display: grid;
  /* Mobile: 1 columna */
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
}

.contact-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-gold), var(--shadow-md);
  transform: translateY(-4px);
}

.contact-card-top { /* no margin extra en mobile */ }

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.contact-icon.maps {
  background: rgba(229, 169, 98, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
}

.contact-icon.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.contact-icon.instagram {
  background: rgba(225, 48, 108, 0.15);
  color: #E1306C;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.contact-icon.menu {
  background: rgba(229, 169, 98, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 169, 98, 0.35);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-detail {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--accent-gold-light);
  font-weight: 500;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.contact-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  transition: all var(--transition-fast);
  min-height: 44px;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-copy svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===================================================================
   FOOTER — Mobile-First
   =================================================================== */
.footer {
  border-top: 1px solid var(--border-card);
  background: #090605;
  padding: 3rem 1rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-highlight);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.footer-logo:hover { transform: scale(1.08); }

.footer-logo picture,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-social-links {
  display: flex;
  gap: 0.85rem;
}

.social-circle-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-circle-link:hover {
  background: var(--accent-gold);
  color: #120b08;
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}

.social-circle-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: #6a5e55;
  padding: 0 0.5rem;
}

/* ===================================================================
   BOTÓN FLOTANTE DE WHATSAPP — Mobile-First
   =================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #ffffff;
  /* Mobile: solo ícono (sin texto) */
  padding: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
}

.floating-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile: ocultamos texto del botón flotante */
.floating-whatsapp-text {
  display: none;
}

.floating-whatsapp-pulse {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: var(--radius-full);
  border: 2px solid #25D366;
  animation: pulseWa 2.2s infinite;
  pointer-events: none;
}

@keyframes pulseWa {
  0%   { transform: scale(1);        opacity: 0.8; }
  70%  { transform: scale(1.2, 1.35); opacity: 0; }
  100% { transform: scale(1.3, 1.45); opacity: 0; }
}

/* ===================================================================
   MODAL / LIGHTBOX — Mobile-First
   =================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 7, 5, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform var(--transition-smooth);
}

.lightbox-modal.active .lightbox-content { transform: scale(1); }

.lightbox-image {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-highlight);
}

.lightbox-caption {
  margin-top: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  text-align: center;
  padding: 0 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-card);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--accent-gold);
  color: #120b08;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--accent-gold);
  color: #120b08;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-nav svg, .lightbox-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===================================================================
   TOAST DE NOTIFICACIÓN
   =================================================================== */
.toast-notice {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent-gold);
  color: #120b08;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================================================
   BREAKPOINT: TABLET PEQUEÑA — ≥ 480px
   =================================================================== */
@media (min-width: 30em) { /* 480px */
  :root {
    --section-padding-v: 3.5rem;
    --section-padding-h: 1.5rem;
    --gap-grid: 1.25rem;
  }

  .hero {
    padding: 5rem 1.5rem 5rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }

  .hero-actions .btn {
    flex: 0 1 auto;
  }

  /* Galería: 2 columnas en tablet pequeña */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item-1 { grid-column: span 2; grid-row: span 2; }
  .gallery-item-2 { grid-column: span 2; grid-row: span 1; }

  /* Horarios: 2 columnas */
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Schedule banner en fila */
  .schedule-current-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Contacto: 2 columnas */
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   BREAKPOINT: TABLET — ≥ 640px
   =================================================================== */
@media (min-width: 40em) { /* 640px */
  :root {
    --section-padding-v: 4rem;
    --section-padding-h: 1.75rem;
  }

  .video-control-btn {
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }

  .video-control-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Pillars: 2 columnas en tablet */
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .schedule-container {
    padding: 2rem 2rem;
  }

  /* Lightbox nav con más espacio */
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }

  .floating-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.85rem 1.2rem 0.85rem 1rem;
  }

  .floating-whatsapp-text {
    display: inline;
  }
}

/* ===================================================================
   BREAKPOINT: TABLET GRANDE / LAPTOP PEQUEÑO — ≥ 768px
   =================================================================== */
@media (min-width: 48em) { /* 768px */
  :root {
    --section-padding-v: 4.5rem;
    --section-padding-h: 2rem;
    --gap-grid: 1.5rem;
  }

  .hero {
    padding: 5rem 2rem 5rem;
    min-height: 100vh;
    max-height: 980px;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  /* Gallery: Bento completo en tablet grande */
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 230px;
    gap: 1.25rem;
  }

  .gallery-item-1 { grid-column: span 6; grid-row: span 2; }
  .gallery-item-2 { grid-column: span 6; grid-row: span 1; }
  .gallery-item-3 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-4 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-5 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-6 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-7 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-8 { grid-column: span 3; grid-row: span 1; }

  /* Horarios: 3 columnas */
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .schedule-container {
    padding: 2.5rem 2.25rem;
  }

  .schedule-footer-note {
    text-align: center;
    align-items: center;
  }

  /* Pillars: 3 columnas */
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  /* Lightbox más grande */
  .lightbox-prev { left: 1.5rem; }
  .lightbox-next { right: 1.5rem; }

  .lightbox-nav {
    width: 50px;
    height: 50px;
  }

  .lightbox-nav svg, .lightbox-close svg {
    width: 22px;
    height: 22px;
  }
}

/* ===================================================================
   BREAKPOINT: LAPTOP / DESKTOP — ≥ 1024px
   =================================================================== */
@media (min-width: 64em) { /* 1024px */
  :root {
    --section-padding-v: 5rem;
    --section-padding-h: 1.5rem;
  }

  .hero {
    padding: 3rem 1.5rem 4rem;
  }

  /* Gallery: Bento completo de 12 columnas */
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
    gap: 1.25rem;
  }

  .gallery-item-1 { grid-column: span 6; grid-row: span 2; }
  .gallery-item-2 { grid-column: span 6; grid-row: span 1; }
  .gallery-item-3 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-4 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-5 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-6 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-7 { grid-column: span 3; grid-row: span 1; }
  .gallery-item-8 { grid-column: span 3; grid-row: span 1; }

  /* Horarios: auto-fit con mínimos más anchos */
  .schedule-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .schedule-container {
    padding: 3rem 2.5rem;
  }

  /* Contacto: 4 columnas */
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .floating-whatsapp {
    bottom: 2rem;
    right: 2rem;
    padding: 0.85rem 1.35rem 0.85rem 1.1rem;
    font-size: 0.95rem;
  }

  .contact-card {
    padding: 2.5rem 2rem;
  }

  .pillar-card {
    padding: 2.2rem 2rem;
  }

  .video-control-btn {
    font-size: 0.8rem;
  }
}

/* ===================================================================
   BREAKPOINT: DESKTOP GRANDE — ≥ 1280px
   =================================================================== */
@media (min-width: 80em) { /* 1280px */
  .gallery-grid {
    grid-auto-rows: 260px;
    gap: 1.4rem;
  }

  .hero-content {
    max-width: 900px;
  }
}

/* ===================================================================
   UTILIDADES DE ACCESIBILIDAD Y REDUCCIÓN DE MOVIMIENTO
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* ===================================================================
   PREVENCIÓN DE OVERFLOW HORIZONTAL GLOBAL
   =================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Todos los elementos no pueden sobrepasar el ancho del contenedor */
* {
  min-width: 0;
}

/* ===================================================================
   NAVBAR — BREAKPOINTS RESPONSIVE
   =================================================================== */

/* Tablet (≥ 768px): mostrar links, ocultar hamburger */
@media (min-width: 48em) {
  .navbar-links {
    display: flex;
  }

  .navbar-cta {
    display: inline-flex;
  }

  .navbar-hamburger {
    display: none;
  }

  .navbar-mobile-menu {
    display: none !important;
  }

  .navbar-inner {
    padding: 0.75rem 1.5rem;
  }

  body {
    padding-top: 68px;
  }
}

/* Desktop (≥ 1024px): más espacio */
@media (min-width: 64em) {
  .navbar-inner {
    padding: 0.75rem 2rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }
}
