/* Mundo de Colores de B&B — Diseño profesional */

:root {
  --rosa: #e83e8c;
  --rosa-oscuro: #c2185b;
  --rosa-claro: #fce4ec;
  --morado: #7c4dff;
  --morado-oscuro: #5e35b1;
  --texto: #2d1b3d;
  --texto-suave: #6b5a78;
  --borde: #f0e6f5;
  --fondo: #faf7fc;
  --blanco: #ffffff;
  --sombra: 0 8px 30px rgba(61, 30, 90, 0.08);
  --sombra-hover: 0 14px 40px rgba(61, 30, 90, 0.14);
  --radio: 16px;
  --radio-sm: 10px;
  --max: 1120px;
  --header-h: 72px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fredoka", "Nunito", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--rosa-oscuro); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--texto);
}
.brand:hover { text-decoration: none; }

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rosa-claro);
  box-shadow: 0 2px 8px rgba(232, 62, 140, 0.2);
}

.logo-text { font-size: 1.05rem; }
.logo-text span {
  display: block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--texto-suave);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--texto);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.activo {
  background: var(--rosa-claro);
  color: var(--rosa-oscuro);
  text-decoration: none;
}

.nav-cart { position: relative; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rosa);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 1.3rem;
}

.hero {
  background: linear-gradient(125deg, #ff5aa5 0%, #9b4de8 48%, #4b9eea 100%);
  color: #fff;
  padding: 72px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  top: -120px;
  right: 8%;
}

.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.main { flex: 1; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--texto-suave);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--rosa), var(--rosa-oscuro));
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 62, 140, 0.3);
}
.btn-primary:hover { filter: saturate(1.1); color: #fff; }

.btn-outline {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.3); color: #fff; }

.btn-secondary {
  background: linear-gradient(135deg, #9b7fd4, #6b4fc0);
  color: #fff;
  box-shadow: 0 8px 18px rgba(107, 79, 192, 0.25);
}
.btn-secondary:hover { color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-danger { background: #e03131; color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.feature-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}

.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--texto-suave); font-size: 0.95rem; }

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.filtro-btn {
  padding: 8px 18px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--texto-suave);
  cursor: pointer;
  transition: all 0.2s;
}
.filtro-btn:hover { border-color: var(--rosa); color: var(--rosa-oscuro); }
.filtro-btn.activo {
  background: linear-gradient(135deg, var(--rosa), var(--morado));
  border-color: transparent;
  color: #fff;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.producto-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}
.producto-card.sin-stock { opacity: 0.75; }

.producto-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ffe6f2, #e8e0ff);
  overflow: hidden;
}
.producto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-stock, .badge-cat {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.badge-stock { left: 12px; background: #e03131; color: #fff; }
.badge-cat {
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--morado-oscuro);
}

.producto-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.producto-body h3 { font-size: 1.05rem; }
.producto-desc {
  color: var(--texto-suave);
  font-size: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.producto-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 8px;
}

.precio {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rosa-oscuro);
}
.stock-label {
  font-size: 0.8rem;
  color: var(--texto-suave);
  font-weight: 600;
}

.vacio-msg {
  text-align: center;
  color: var(--texto-suave);
  grid-column: 1 / -1;
  padding: 40px;
}

.carrito-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.carrito-box, .form-box {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px 24px;
  box-shadow: var(--sombra);
}
.carrito-box h2, .form-box h2 { font-size: 1.3rem; margin-bottom: 18px; }

#lista-carrito { list-style: none; margin-bottom: 16px; }

.item-carrito {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--borde);
}

.item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}
.item-info span { color: var(--texto-suave); }

.item-acciones {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 2;
}

.item-subtotal {
  font-weight: 800;
  color: var(--rosa-oscuro);
  text-align: right;
  grid-column: 3;
  grid-row: 1 / 3;
}

.item-cant {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.btn-mini {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rosa), var(--morado));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.btn-mini:hover { filter: saturate(1.15); }
.btn-eliminar { background: linear-gradient(135deg, #ff6b6b, #e03131); }

.carrito-vacio {
  padding: 16px;
  background: #fff8e1;
  border-radius: var(--radio-sm);
  text-align: center;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 12px;
}

.carrito-resumen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  font-size: 1.1rem;
}
.carrito-resumen strong {
  font-size: 1.4rem;
  color: var(--rosa-oscuro);
}

.carrito-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-sm);
  font-family: var(--font);
  font-size: 1rem;
  background: #fff;
  color: var(--texto);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rosa);
  box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.15);
}

textarea { resize: vertical; min-height: 90px; }

.form-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contacto-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
  text-align: center;
}
.contacto-card h3 { margin-bottom: 8px; }
.contacto-card p { color: var(--texto-suave); margin-bottom: 16px; }

.btn-wa {
  background: #25d366 !important;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.3) !important;
}
.btn-wa:hover { filter: brightness(1.05); color: #fff; }

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.paso {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 24px;
  text-align: center;
  box-shadow: var(--sombra);
}

.paso-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rosa), var(--morado));
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.site-footer {
  background: #2d1b3d;
  color: rgba(255, 255, 255, 0.85);
  padding: 36px 20px;
  text-align: center;
  margin-top: auto;
}
.site-footer a { color: #ffb7d4; }
.site-footer p + p {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(18, 140, 126, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s, opacity 0.35s;
  max-width: min(90vw, 400px);
  text-align: center;
}
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rosa), var(--morado));
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(124, 77, 255, 0.4);
  transition: transform 0.2s;
}
.chatbot-toggle:hover { transform: scale(1.08); }

.chatbot-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 91;
  width: min(360px, calc(100vw - 32px));
  height: 460px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(45, 27, 61, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--borde);
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(125deg, var(--rosa), var(--morado));
  color: #fff;
}
.chatbot-status {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 600;
}
.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #faf7fc;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  white-space: pre-wrap;
  line-height: 1.45;
}
.chat-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--borde);
  border-bottom-left-radius: 4px;
}
.chat-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--rosa), var(--morado));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--borde);
}
.chatbot-quick button {
  padding: 6px 12px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--texto-suave);
}
.chatbot-quick button:hover {
  border-color: var(--rosa);
  color: var(--rosa-oscuro);
}

.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--borde);
}
.chatbot-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--borde);
  border-radius: 999px;
  font-size: 0.9rem;
}
.chatbot-form button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rosa), var(--morado));
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.admin-login-box {
  max-width: 400px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 36px 28px;
  box-shadow: var(--sombra);
  text-align: center;
}
.admin-login-box h1 { font-size: 1.5rem; margin-bottom: 8px; }
.admin-login-box p {
  color: var(--texto-suave);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.admin-form-card, .admin-table-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 24px;
  box-shadow: var(--sombra);
}
.admin-form-card h2, .admin-table-card h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.admin-table-wrap { overflow-x: auto; }

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.admin-table th,
table.admin-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--borde);
  vertical-align: middle;
}
table.admin-table th {
  font-weight: 800;
  color: var(--texto-suave);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-acciones {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hint {
  font-size: 0.8rem;
  color: var(--texto-suave);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .carrito-layout, .admin-grid { grid-template-columns: 1fr; }
  .features, .pasos, .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--borde);
    box-shadow: var(--sombra);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .logo-text { font-size: 0.95rem; }
  .item-carrito { grid-template-columns: 48px 1fr; }
  .item-subtotal {
    grid-column: 2;
    grid-row: auto;
    text-align: left;
  }
  .chatbot-panel { right: 12px; bottom: 88px; }
  .chatbot-toggle { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Redes sociales (izquierda) —— */
.redes-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c4dff, #e83e8c);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(124, 77, 255, 0.4);
  transition: transform 0.2s, background 0.2s;
}

.redes-toggle:hover { transform: scale(1.08); }

.redes-toggle.abierto {
  background: linear-gradient(135deg, #6b5a78, #2d1b3d);
}

.chatbot-toggle.abierto {
  background: linear-gradient(135deg, #6b5a78, #2d1b3d);
}

.redes-panel {
  position: fixed;
  bottom: 96px;
  left: 24px;
  z-index: 91;
  width: min(220px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(45, 27, 61, 0.22);
  border: 1px solid var(--borde);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.redes-titulo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: var(--texto);
  margin-bottom: 4px;
}

.redes-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.redes-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--red-bg, #eee);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: transform 0.15s, filter 0.15s;
}

.redes-link:hover {
  transform: translateX(3px);
  filter: brightness(1.08);
}

.redes-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 900;
}

.redes-facebook .redes-ico {
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
}

@media (max-width: 720px) {
  .redes-toggle {
    left: 16px;
    bottom: 16px;
  }
  .redes-panel {
    left: 12px;
    bottom: 88px;
  }
}


/* Forzar ocultar elementos con atributo hidden */
[hidden] {
  display: none !important;
}

/* Paneles de burbujas: cerrados por defecto, abiertos al tocar */
.chatbot-panel.is-closed,
.redes-panel.is-closed {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.chatbot-panel.is-open,
.redes-panel.is-open {
  display: flex !important;
  visibility: visible;
  pointer-events: auto;
}

.redes-panel.is-open {
  display: flex !important;
  flex-direction: column;
}

/* —— Hero burbujas en movimiento —— */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-burbujas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hb {
  position: absolute;
  bottom: -60px;
  left: var(--x, 50%);
  width: var(--s, 20px);
  height: var(--s, 20px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(255,180,220,0.25) 55%, rgba(120,200,255,0.2));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  animation: burbujaSube var(--d, 16s) linear var(--delay, 0s) infinite;
  opacity: 0;
}

.hb-flor {
  border: none;
  background: none;
  box-shadow: none;
  font-size: calc(var(--s, 20px) * 0.9);
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

@keyframes burbujaSube {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  8% { opacity: 0.7; }
  50% {
    transform: translateY(-45vh) translateX(12px) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: translateY(-105vh) translateX(-8px) scale(0.85);
    opacity: 0;
  }
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero-highlight {
  background: linear-gradient(90deg, #ffe66d, #fff, #ffb7d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.15;
}

@media (prefers-reduced-motion: reduce) {
  .hb { animation: none !important; opacity: 0.35; bottom: 20%; }
}

/* —— QR de pago —— */
.qr-pago-box {
  margin-top: 16px;
  padding: 18px;
  text-align: center;
  background: linear-gradient(145deg, #fff, #f8f0ff);
  border: 1.5px dashed rgba(232, 62, 140, 0.35);
  border-radius: var(--radio);
}

.qr-pago-titulo {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--texto);
}

.qr-pago-img {
  max-width: min(280px, 100%);
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(45, 27, 61, 0.1);
}

.qr-pago-hint {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--texto-suave);
  font-weight: 600;
}

[hidden] { display: none !important; }
