/* Colores de Yam'slet Blessing and More: morado claro y encendido con acentos rosa florales.
   (Los nombres de las variables se conservan de la paleta anterior: --ym-olive es el morado principal,
   --ym-wood el rosa floral y --ym-brown el morado oscuro de encabezado y pie.) */
:root {
  --ym-olive: #9b4de0;
  --ym-olive-dark: #7a2fc0;
  --ym-wood: #f48fc6;
  --ym-wood-light: #ead9fb;
  --ym-cream: #f4eafe;
  --ym-cream-light: #fcf8ff;
  --ym-brown: #5b2a86;
  --ym-text: #3d2a52;
}

body {
  background-color: var(--ym-cream-light);
  color: var(--ym-text);
}

/* ===== Versiculo biblico fijo arriba (todas las paginas) ===== */
/* Alto de la barra: el menu y el contenido se bajan esta misma medida */
:root {
  --verse-h: 38px;
}

@media (max-width: 1100px) {
  :root {
    --verse-h: 54px;
  }
}

@media (max-width: 576px) {
  :root {
    --verse-h: 62px;
  }
}

.verse-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--verse-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  background: linear-gradient(90deg, #c99cf0, #f48fc6 50%, #c99cf0);
  color: #3a1458;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
}

.verse-bar em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.verse-bar img {
  width: 70px;
  height: 14px;
  flex-shrink: 0;
}

/* El menu y el contenido bajan lo que mide el versiculo */
#header {
  top: var(--verse-h) !important;
}

.ym-panel-nav {
  top: var(--verse-h) !important;
}

.sidebar {
  top: calc(60px + var(--verse-h)) !important;
}

.main-content > .content {
  margin-top: calc(70px + var(--verse-h)) !important;
}

@media (max-width: 1100px) {
  .verse-bar {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .verse-bar {
    font-size: 12.5px;
    gap: 6px;
    padding: 0 10px;
  }

  .verse-bar img {
    display: none;
  }
}

/* ===== Carrito flotante (abajo a la derecha) ===== */
.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 1002;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #b26bf0, var(--ym-olive-dark));
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(122, 47, 192, 0.45);
  border: 3px solid #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.floating-cart:hover,
.floating-cart:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 26px rgba(122, 47, 192, 0.55);
  color: #fff !important;
}

.floating-cart-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
  letter-spacing: 0.3px;
}

.floating-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--ym-wood);
  color: #3a1458;
  font-size: 13px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  border: 2px solid #fff;
}

.floating-cart:not(.has-items) .floating-cart-count {
  background: #fff;
  color: var(--ym-olive-dark);
}

.floating-cart.has-items {
  animation: cart-pop 0.5s ease 1;
}

@keyframes cart-pop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* El boton de volver arriba queda debajo del carrito */
.back-to-top {
  right: 32px !important;
  bottom: 22px !important;
}

@media (max-width: 576px) {
  .floating-cart {
    right: 14px;
    bottom: 76px;
    width: 58px;
    height: 58px;
  }

  .back-to-top {
    right: 22px !important;
    bottom: 16px !important;
  }
}

/* ===== Detalles florales ===== */
.section-title h2::after {
  content: "" !important;
  display: block !important;
  position: static !important;
  width: 140px !important;
  height: 24px !important;
  margin: 10px auto 0 !important;
  background: url("../img/floral-divider.svg") center / contain no-repeat !important;
}

.section-title h2::before {
  display: none !important;
}

.page-hero::after,
#hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
  background: url("../img/floral-corner.svg") left bottom / contain no-repeat;
  pointer-events: none;
}

.page-hero .container::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -70px;
  width: 150px;
  height: 150px;
  background: url("../img/floral-corner.svg") center / contain no-repeat;
  transform: scaleX(-1) rotate(180deg);
  opacity: 0.85;
  pointer-events: none;
}

.page-section h2::after,
.checkout-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 20px;
  margin-top: 6px;
  background: url("../img/floral-divider.svg") left center / contain no-repeat;
}

.page-section .text-center h2::after,
h2.text-center::after,
.lead-text h2::after {
  margin-left: auto;
  margin-right: auto;
  background-position: center;
}

#footer {
  position: relative;
}

#footer::before {
  content: "";
  display: block;
  height: 20px;
  background: url("../img/floral-strip.svg") left center / 80px 20px repeat-x;
  background-color: var(--ym-cream);
}

.product-card,
.info-card,
.confirm-box {
  box-shadow: 0 4px 14px rgba(155, 77, 224, 0.08);
}

.product-card:hover {
  box-shadow: 0 8px 22px rgba(155, 77, 224, 0.18);
}

@media (max-width: 576px) {
  .page-hero::after,
  #hero::after {
    width: 70px;
    height: 70px;
    opacity: 0.75;
  }

  .page-hero .container::after {
    display: none;
  }
}

/* Botones y utilidades de Bootstrap */
.btn-primary,
.btn-primary:focus {
  background-color: var(--ym-olive);
  border-color: var(--ym-olive);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--ym-olive-dark) !important;
  border-color: var(--ym-olive-dark) !important;
  color: #fff;
}

.btn-outline-primary {
  color: var(--ym-olive);
  border-color: var(--ym-olive);
}

.btn-outline-primary:hover {
  background-color: var(--ym-olive);
  border-color: var(--ym-olive);
  color: #fff;
}

.bg-primary {
  background-color: var(--ym-olive) !important;
}

.text-primary {
  color: var(--ym-olive) !important;
}

.bg-dark,
.table-dark,
.table-dark > th,
.table-dark > td {
  background-color: var(--ym-brown) !important;
  --bs-table-bg: var(--ym-brown);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ym-wood);
  box-shadow: 0 0 0 0.2rem rgba(244, 143, 198, 0.35);
}

.page-item.active .page-link,
.dt-paging-button.current {
  background-color: var(--ym-olive) !important;
  border-color: var(--ym-olive) !important;
  color: #fff !important;
}

/* Paginas publicas */
#header,
#header.header-scrolled {
  background: var(--ym-brown);
}

#header.header-transparent {
  background: transparent;
}

#header.header-transparent.header-scrolled {
  background: var(--ym-brown);
}

.card {
  border-color: var(--ym-wood-light);
  background-color: #fff;
}

#services,
.services {
  background-color: var(--ym-cream);
}

#footer {
  background: var(--ym-brown);
  color: var(--ym-cream);
}

#footer .footer-top {
  background: var(--ym-brown);
}

#footer h3,
#footer h4,
#footer p,
#footer strong,
#footer a {
  color: var(--ym-cream);
}

#footer a:hover {
  color: var(--ym-wood);
}

#footer .footer-links ul i {
  color: var(--ym-wood);
}

.back-to-top {
  background: var(--ym-olive);
}

.back-to-top:hover {
  background: var(--ym-olive-dark);
}

/* ===== Paginas informativas (Comercio, Sobre Nosotros, Preguntas, Testimonios, Contacto) ===== */
.site-page {
  background: var(--ym-cream-light);
}

#header.header-solid {
  background: var(--ym-brown) !important;
}

#navbar .nav-link.active {
  color: var(--ym-wood) !important;
}

.page-hero {
  position: relative;
  padding: calc(140px + var(--verse-h)) 0 70px;
  text-align: center;
  color: #fff;
  background: url("../img/hero-yamslet.webp") center center / cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(74, 32, 112, 0.6);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.page-hero p {
  max-width: 720px;
  margin: 12px auto 0;
  font-size: 18px;
  color: var(--ym-cream);
}

.page-section {
  padding: 56px 0;
}

.page-section.alt {
  background: var(--ym-cream);
}

.page-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ym-brown);
  margin-bottom: 16px;
}

.page-section p {
  font-size: 16px;
  line-height: 1.7;
}

.lead-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.btn-ym {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 50px;
  background: var(--ym-olive);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.btn-ym:hover {
  background: var(--ym-olive-dark);
}

.btn-ym.outline {
  background: transparent;
  border: 2px solid var(--ym-olive);
  color: var(--ym-olive) !important;
}

.btn-ym.outline:hover {
  background: var(--ym-olive);
  color: #fff !important;
}

/* Productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--ym-wood-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ym-brown);
  margin: 0;
}

.product-card .category {
  font-size: 13px;
  color: #6e5a85;
}

.product-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--ym-olive);
  margin-top: auto;
}

.product-card .btn-ym {
  text-align: center;
  padding: 8px 14px;
}

.product-card > a img {
  display: block;
}

/* Foto del producto: abre la galeria */
.product-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.product-photo img {
  display: block;
}

.product-photo .photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
}

/* Fotos adicionales en el panel (editar producto) */
.admin-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.admin-gallery > p {
  width: 100%;
}

.admin-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
}

.admin-gallery-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ym-wood-light);
}

/* Galeria de fotos (assets/js/gallery.js) */
body.ym-gallery-open {
  overflow: hidden;
}

.ym-gallery {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(20, 8, 32, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ym-gallery[hidden] {
  display: none;
}

.ym-gallery-box {
  width: min(960px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ym-gallery-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.ym-gallery-title {
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ym-gallery-count {
  font-size: 14px;
  opacity: 0.8;
}

.ym-gallery-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.ym-gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.ym-gallery-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.ym-gallery-prev,
.ym-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ym-brown);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.ym-gallery-prev {
  left: 6px;
}

.ym-gallery-next {
  right: 6px;
}

.ym-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ym-gallery-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.55;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.ym-gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--ym-wood);
}

.product-card form {
  margin: 0;
}

.product-card button.btn-ym {
  border: none;
}

.product-card .quick-view {
  text-align: center;
  font-size: 14px;
  color: var(--ym-olive);
  text-decoration: none;
}

.product-card .quick-view:hover {
  color: var(--ym-olive-dark);
}

/* Galeria de fotos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.photo-grid figcaption {
  font-size: 13px;
  text-align: center;
  margin-top: 4px;
  color: #6e5a85;
}

/* Tarjetas de informacion */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--ym-wood-light);
  border-radius: 12px;
  padding: 24px;
}

.info-card i {
  font-size: 30px;
  color: var(--ym-olive);
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ym-brown);
  margin: 10px 0 8px;
}

.info-card p {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  max-height: 420px;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: calc(110px + var(--verse-h)) 0 50px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .page-section {
    padding: 40px 0;
  }
}

/* Preguntas frecuentes */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--ym-wood-light);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0 18px;
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  color: var(--ym-brown);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--ym-olive);
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  padding-bottom: 16px;
  margin: 0;
}

/* Testimonios */
.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ym-wood-light);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.testimonial-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card blockquote p {
  font-size: 20px;
  font-style: italic;
  color: var(--ym-brown);
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--ym-olive);
}

@media (max-width: 576px) {
  .testimonial-card {
    grid-template-columns: 1fr;
  }

  .testimonial-card img {
    height: 220px;
  }
}

/* ===== Checkout en 3 pasos ===== */
.checkout-page {
  padding: calc(120px + var(--verse-h)) 0 60px;
}

.checkout-page .container {
  max-width: 1120px;
}

.checkout-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ym-olive);
  margin-bottom: 18px;
}

.checkout-steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border: 1px solid #d3c1ea;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.checkout-steps li {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 13px 10px;
  color: #8a7a9c;
  font-size: 16px;
}

.checkout-steps li + li {
  border-left: 1px solid #e9ddf7;
}

.checkout-steps li.active {
  background: var(--ym-olive);
  color: #fff;
  font-weight: 700;
}

.checkout-steps li.done {
  background: var(--ym-wood-light);
  color: var(--ym-brown);
}

.checkout-row {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 8px 32px;
  align-items: start;
  margin-bottom: 20px;
}

.checkout-row[hidden] {
  display: none;
}

.checkout-label {
  text-align: right;
  padding-top: 10px;
  color: var(--ym-text);
}

.checkout-label small {
  display: block;
  font-size: 12px;
  color: #8a7a9c;
  line-height: 1.1;
}

.checkout-fields {
  max-width: 382px;
}

.checkout-fields.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 428px;
}

.checkout-fields.zip-city {
  display: grid;
  grid-template-columns: 114px 1fr;
  gap: 16px;
  max-width: 428px;
}

.checkout-fields.short {
  max-width: 215px;
}

.checkout-fields input[type="text"],
.checkout-fields input[type="tel"],
.checkout-fields input[type="email"],
.checkout-fields select {
  width: 100%;
  height: 42px;
  padding: 8px 14px;
  border: 1px solid #c4b0de;
  border-radius: 2px;
  background: #fff;
  font-size: 16px;
  color: var(--ym-text);
}

.checkout-fields input::placeholder {
  font-style: italic;
  color: #a593bb;
}

.checkout-fields input.invalid,
.checkout-fields select.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.checkout-radios {
  display: flex;
  gap: 18px;
  padding-top: 9px;
}

.checkout-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.checkout-error {
  color: #c0392b;
  text-align: center;
  font-weight: 600;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.checkout-actions a,
.link-btn {
  color: var(--ym-olive);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-size: 16px;
  cursor: pointer;
}

.checkout-actions .btn-ym {
  border: none;
  border-radius: 6px;
  font-weight: 700;
  padding: 11px 22px;
}

.pay-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 620px;
  margin: 10px auto;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--ym-olive);
  border-radius: 10px;
  cursor: pointer;
}

.pay-option input {
  margin-top: 6px;
}

.pay-option strong {
  display: block;
  font-size: 18px;
  color: var(--ym-brown);
}

.pay-option small {
  color: #6e5a85;
}

.confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.confirm-box {
  background: #fff;
  border: 1px solid var(--ym-wood-light);
  border-radius: 10px;
  padding: 22px;
}

.confirm-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ym-brown);
  margin-bottom: 14px;
}

.confirm-box dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  margin: 0 0 12px;
}

.confirm-box dt {
  color: #6e5a85;
  font-weight: 600;
}

.confirm-box dd {
  margin: 0;
  word-break: break-word;
}

.confirm-table {
  width: 100%;
}

.confirm-table td {
  padding: 6px 0;
  border-bottom: 1px solid #f1e8fb;
}

.confirm-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.confirm-table .total td {
  font-weight: 700;
  font-size: 18px;
  color: var(--ym-olive);
  border-bottom: none;
}

.checkout-empty {
  text-align: center;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .checkout-page {
    padding-top: calc(100px + var(--verse-h));
  }

  .checkout-steps li {
    font-size: 13px;
    padding: 10px 4px;
  }

  .checkout-row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }

  .checkout-label {
    text-align: left;
    padding-top: 0;
  }

  .checkout-label small {
    display: inline;
    margin-left: 4px;
  }

  .checkout-fields,
  .checkout-fields.two,
  .checkout-fields.zip-city,
  .checkout-fields.short {
    max-width: none;
  }

  .confirm-grid {
    grid-template-columns: 1fr;
  }
}

/* Mapa de la ubicacion (Contacto) */
.map-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ym-wood-light);
  background: #fff;
  min-height: 360px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* Formulario de contacto (abre WhatsApp) */
.contact-form {
  background: #fff;
  border: 1px solid var(--ym-wood-light);
  border-radius: 12px;
  padding: 24px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin: 10px 0 4px;
  color: var(--ym-brown);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9c6ef;
  border-radius: 6px;
  background: #fff;
}

.contact-form button {
  margin-top: 16px;
  border: none;
}

/* Textos del pie legibles sobre el fondo cafe */
#footer .footer-top h3,
#footer .footer-top h4,
#footer .footer-top p,
#footer .footer-top .footer-links ul a,
#footer .footer-top .footer-contact p {
  color: var(--ym-cream);
}

#footer .footer-top h4 {
  font-weight: 700;
}

#footer .footer-top .footer-links ul a:hover {
  color: var(--ym-wood);
}

#footer .footer-top .footer-links ul li {
  justify-content: center;
}

/* Franja final del pie (derechos y credito) */
#footer .footer-bottom {
  background: #45206a;
  border-top: 4px solid var(--ym-wood);
  padding: 18px 0;
  font-size: 15px;
}

#footer .footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

#footer .footer-bottom span {
  color: var(--ym-cream);
}

#footer .footer-bottom .admin-access {
  color: var(--ym-cream);
  opacity: 0.75;
  font-size: 13px;
  text-decoration: underline;
}

#footer .footer-bottom .admin-access:hover {
  opacity: 1;
  color: #fff;
}

#footer .footer-bottom .footer-credit {
  font-size: 14px;
}

#footer .footer-bottom .footer-credit strong {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 576px) {
  #footer .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

/* Boton de pago con Stripe (checkout) */
.btn-pay {
  width: 100%;
  max-width: 370px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background-color: var(--ym-olive);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-pay:hover {
  background-color: var(--ym-olive-dark);
}

.pay-note {
  margin-top: 8px;
  font-size: 0.85em;
  color: #6e5a85;
}

/* Barra superior del panel (mismo menu que el sitio) */
.ym-panel-nav {
  gap: 16px;
}

.ym-panel-nav .navbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ym-panel-logo {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff !important;
  text-decoration: none;
}

.ym-panel-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
}

.ym-panel-links a,
.ym-panel-menu a {
  color: var(--ym-cream);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}

.ym-panel-links a:hover,
.ym-panel-menu a:hover {
  color: var(--ym-wood);
}

.ym-panel-menu {
  display: none;
  position: relative;
}

.ym-panel-menu summary {
  color: var(--ym-cream);
  cursor: pointer;
  list-style: none;
}

.ym-panel-menu summary::-webkit-details-marker {
  display: none;
}

.ym-panel-menu > div {
  position: absolute;
  right: 0;
  top: 34px;
  min-width: 210px;
  background: var(--ym-brown);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  z-index: 1100;
}

.ym-panel-menu > div a {
  display: block;
  padding: 8px 18px;
}

@media (max-width: 1199px) {
  .ym-panel-links {
    display: none;
  }

  .ym-panel-menu {
    display: block;
  }
}

/* El pie siempre queda al fondo de la pantalla, aunque la pagina tenga poco contenido */
body:has(> #footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* el estilo del login centraba todo; el encabezado y el pie deben ocupar todo el ancho */
  align-items: stretch;
  justify-content: flex-start;
}

/* Boton principal de login y registro (Bootstrap lo dejaba blanco por la clase form-control) */
body.ym-auth button.form-control,
body.ym-auth button[type="submit"] {
  background-color: var(--ym-olive);
  border: none;
  color: #fff;
  font-weight: 600;
}

body.ym-auth button.form-control:hover,
body.ym-auth button[type="submit"]:hover {
  background-color: var(--ym-olive-dark);
  color: #fff;
}

body:has(> #footer) > #footer {
  margin-top: auto;
  order: 2;
}

/* Espacio fijo entre el contenido (carrito, compra, recibo...) y el pie de pagina */
body:has(> #footer)::after {
  content: "";
  display: block;
  flex-shrink: 0;
  height: 56px;
  order: 1;
}

/* Pie reducido (solo la franja final), para la pagina de compra aprobada */
#footer.footer-minimal .footer-bottom {
  border-top-width: 4px;
}

.main-content:has(> #footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content:has(> #footer) > #footer {
  margin-top: auto;
}

/* Pie de pagina dentro del panel */
.main-content #footer {
  margin: 40px -20px -20px;
}

.main-content #footer .footer-top {
  padding: 40px 0 20px;
}

/* Login, registro y checkout con encabezado y pie del sitio */
body.ym-auth {
  display: block;
  height: auto;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.ym-auth > .container,
body.ym-auth > .ym-auth-main > .container {
  margin: calc(130px + var(--verse-h)) auto 50px;
}

/* El estilo del login define .container como la tarjeta del formulario; el encabezado y el pie usan el ancho normal */
body.ym-auth #header .container,
body.ym-auth #footer .container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  animation: none;
}

body.ym-auth #footer .footer-top .container {
  padding-top: 10px;
}

body.ym-auth #footer h3,
body.ym-auth #footer h4,
body.ym-auth #footer p {
  text-align: center;
}

/* Panel */
.sidebar .sidebar-site-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 240, 230, 0.25);
}

.sidebar .sidebar-section {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ym-wood);
}

.sidebar {
  padding-bottom: 90px;
}

.sidebar ul li a:hover {
  color: var(--ym-wood);
}

.stat-card .number {
  color: var(--ym-olive);
}
