/* ==========================================================================
   CATÁLOGO STOPPING — ESTILOS GENERALES
   ========================================================================== */

:root {
  --stopping-blue: #202d59;
  --stopping-blue-dark: #172246;
  --stopping-blue-mid: #243466;
  --stopping-gold: #d6a63c;
  --stopping-gold-light: #f3c85b;
  --stopping-bg-top: #f5f7fb;
  --stopping-bg-bottom: #edf2f8;
  --stopping-text: #212529;
  --stopping-muted: #5a6b8c;
  --stopping-card-radius: 1.85rem;
  --stopping-card-radius-mobile: 1.55rem;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, var(--stopping-bg-top) 0%, var(--stopping-bg-bottom) 100%);
  color: var(--stopping-text);
}


/* ==========================================================================
   1. BARRA DE NAVEGACIÓN PRINCIPAL
   ========================================================================== */

.custom-navbar {
  background: linear-gradient(180deg, var(--stopping-blue) 0%, var(--stopping-blue-dark) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.brand-title {
  font-size: clamp(0.7rem, 2.8vw, 1.35rem);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.logo-svg {
  width: clamp(60px, 14vw, 90px);
  height: clamp(60px, 14vw, 90px);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


/* ==========================================================================
   2. BOTÓN COMPARTIR
   ========================================================================== */

.btn-share-custom {
  color: var(--stopping-blue);
  border-color: var(--stopping-blue);
  background-color: transparent;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-share-custom:hover,
.btn-share-custom:focus,
.btn-share-custom:active {
  color: #fff !important;
  background-color: var(--stopping-blue) !important;
  border-color: var(--stopping-blue) !important;
}

.btn-share-custom:hover,
.btn-share-custom:focus-visible {
  transform: translateY(-1px);
}


/* ==========================================================================
   3. ACORDEONES
   ========================================================================== */

.accordion-button:not(.collapsed) {
  color: #fff !important;
  background-color: var(--stopping-blue) !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1) !important;
}

.accordion-button.collapsed {
  color: var(--stopping-text) !important;
  background-color: #fff !important;
}

.accordion-button:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.accordion-item:last-child {
  border-bottom: 0 !important;
}


/* ==========================================================================
   4. PESTAÑAS — BASE CAMAS
   ========================================================================== */

#tabPreciosBases .nav-link {
  color: var(--stopping-blue) !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

#tabPreciosBases .nav-link.active {
  color: #fff !important;
  background-color: var(--stopping-blue) !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}


/* ==========================================================================
   5. NAVEGACIÓN RÁPIDA POR CATEGORÍAS
   ========================================================================== */

/*
   Este bloque vive dentro de #contenedorFichasProductos, que ya posee
   el mismo ancho responsive de las fichas. No debe tener otro container
   Bootstrap anidado dentro de componentes-globales.html.
*/

.catalogo-nav-card {
  width: 100%;
  margin-inline: auto;
  border: 1px solid rgba(32, 45, 89, 0.06) !important;
  border-radius: var(--stopping-card-radius) !important;
  background: #fff;
  box-shadow:
    0 18px 42px rgba(22, 34, 70, 0.10),
    0 4px 14px rgba(22, 34, 70, 0.06) !important;
}

.catalogo-nav-title {
  margin: 0;
  color: var(--stopping-blue);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-align: center;
}

.catalogo-nav-btn {
  width: 100%;
  min-height: 54px;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid var(--stopping-blue-mid);
  border-radius: 999px;
  color: var(--stopping-blue-mid);
  background: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(36, 52, 102, 0.05);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.catalogo-nav-btn:hover,
.catalogo-nav-btn:focus-visible {
  color: #fff;
  background: var(--stopping-blue-mid);
  border-color: var(--stopping-blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(36, 52, 102, 0.18);
}

.catalogo-nav-btn span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.icono-categoria-svg,
.icono-promocion-svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: currentColor;
  overflow: visible;
}

.icono-categoria-svg *,
.icono-promocion-svg * {
  vector-effect: non-scaling-stroke;
}

.catalogo-nav-btn--promo {
  min-height: 54px;
  color: #fff;
  border-color: var(--stopping-gold);
  background: linear-gradient(135deg, var(--stopping-blue) 0%, var(--stopping-blue-dark) 100%);
}

.catalogo-nav-btn--promo:hover,
.catalogo-nav-btn--promo:focus-visible {
  color: #fff;
  border-color: var(--stopping-gold-light);
  background: linear-gradient(135deg, #26376d 0%, var(--stopping-blue) 100%);
}

.catalogo-nav-btn--promo .icono-promocion-svg {
  color: var(--stopping-gold-light);
}


/* ==========================================================================
   6. FICHAS / TARJETAS
   ========================================================================== */

#Contacto,
.ficha-producto {
  border: 1px solid rgba(32, 45, 89, 0.06) !important;
  border-radius: var(--stopping-card-radius) !important;
  background: #fff;
  box-shadow:
    0 18px 42px rgba(22, 34, 70, 0.10),
    0 4px 14px rgba(22, 34, 70, 0.06) !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

#Contacto:hover,
.ficha-producto:hover,
#Contacto:focus-within,
.ficha-producto:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 22px 50px rgba(22, 34, 70, 0.14),
    0 6px 18px rgba(22, 34, 70, 0.08) !important;
}

.ficha-producto .carousel {
  border-radius: 1.45rem !important;
  box-shadow: inset 0 0 0 1px rgba(32, 45, 89, 0.04);
}

.ficha-producto .accordion {
  border-radius: 1.2rem !important;
}

#Contacto img.rounded-circle {
  border-radius: 50% !important;
}


/* ==========================================================================
   7. LOGO PRINCIPAL DE LA FICHA DE CONTACTO
   ========================================================================== */

.encabezado-contacto {
  width: 100%;
}

.logo-contacto-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 1rem 0;
}

.logo-contacto {
  display: block;
  width: min(100%, 390px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.linea-titulo-contacto {
  width: 50px;
  height: 4px;
  margin: 0.65rem auto 1rem;
  border-radius: 999px;
  background-color: var(--stopping-blue);
}


/* ==========================================================================
   8. LOGO SALITRE PLAZA Y DIRECCIÓN
   ========================================================================== */

.logo-salitre-plaza {
  display: block;
  width: min(100%, 230px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.direccion-local {
  font-style: normal;
  line-height: 1.25;
  text-align: center;
}


/* ==========================================================================
   9. TABLET Y MÓVIL
   ========================================================================== */

@media (max-width: 767.98px) {
  body {
    font-size: 1rem;
    line-height: 1.55;
  }

  .brand-title > span:first-child {
    font-size: clamp(1rem, 4.4vw, 1.2rem) !important;
  }

  .brand-title > span:nth-child(2) {
    font-size: clamp(0.9rem, 3.7vw, 1rem) !important;
    letter-spacing: 0.6px !important;
  }

  .small,
  small,
  .extra-small {
    font-size: 0.96rem !important;
  }

  #Contacto,
  .ficha-producto,
  .catalogo-nav-card {
    border-radius: var(--stopping-card-radius-mobile) !important;
    box-shadow:
      0 14px 30px rgba(22, 34, 70, 0.10),
      0 3px 12px rgba(22, 34, 70, 0.06) !important;
  }

  #Contacto:hover,
  .ficha-producto:hover,
  #Contacto:focus-within,
  .ficha-producto:focus-within {
    transform: none;
    box-shadow:
      0 14px 30px rgba(22, 34, 70, 0.10),
      0 3px 12px rgba(22, 34, 70, 0.06) !important;
  }

  .catalogo-nav-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .catalogo-nav-btn {
    min-height: 54px;
    font-size: 1rem;
    line-height: 1.25;
  }

  .icono-categoria-svg,
  .icono-promocion-svg {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .ficha-producto > header > h2 {
    font-size: 1.375rem !important;
    line-height: 1.2;
  }

  .ficha-producto .accordion-button {
    font-size: 1.0625rem !important;
    line-height: 1.35;
  }

  .ficha-producto .accordion-body.small {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  .ficha-producto .accordion-body p,
  .ficha-producto .accordion-body li {
    line-height: 1.55;
  }

  .btn-share-custom,
  .btn-whatsapp {
    font-size: 1rem;
    line-height: 1.3;
  }

  .ficha-producto table.small {
    font-size: 0.94rem !important;
  }

  .ficha-producto .table > :not(caption) > * > * {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    line-height: 1.35;
  }

  #tabPreciosBases.small {
    font-size: 0.94rem !important;
  }

  #tabPreciosBases .nav-link {
    padding-inline: 0.35rem;
    line-height: 1.25;
  }

  #titulo-asesor {
    font-size: 1.375rem !important;
  }

  .modal-body address,
  #Contacto address {
    line-height: 1.45 !important;
  }

  .logo-contacto-wrapper {
    padding-inline: 1.25rem;
  }

  .logo-contacto {
    width: min(100%, 320px);
  }

  .linea-titulo-contacto {
    width: 44px;
    margin-top: 0.6rem;
    margin-bottom: 0.95rem;
  }

  .logo-salitre-plaza {
    width: min(100%, 190px);
  }
}


/* ==========================================================================
   10. MÓVIL
   ========================================================================== */

@media (max-width: 575.98px) {
  .logo-contacto-wrapper {
    padding: 0 1.5rem;
  }

  .logo-contacto {
    width: min(100%, 270px);
  }

  .linea-titulo-contacto {
    width: 42px;
    margin-top: 0.55rem;
    margin-bottom: 0.9rem;
  }

  .logo-salitre-plaza {
    width: min(100%, 170px);
  }

  .direccion-local {
    font-size: 1rem !important;
    line-height: 1.35;
  }

  .catalogo-nav-btn {
    min-height: 52px;
    padding: 0.72rem 1rem;
  }
}


/* ==========================================================================
   11. MÓVILES PEQUEÑOS
   ========================================================================== */

@media (max-width: 374.98px) {
  .logo-contacto-wrapper {
    padding-inline: 1.25rem;
  }

  .logo-contacto {
    width: min(100%, 235px);
  }

  .catalogo-nav-title {
    font-size: 1.22rem;
  }

  .catalogo-nav-btn {
    font-size: 0.98rem;
  }

  .ficha-producto table.small,
  #tabPreciosBases.small {
    font-size: 0.9rem !important;
  }
}


/* ==========================================================================
   12. ACCESIBILIDAD: REDUCIR MOVIMIENTO
   ========================================================================== */

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