/* Custom styles — paleta: negro, dorado, blanco */
:root {
  --black: #000000;
  --gold: #d4af37;
  --white: #ffffff;
}
.body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  color: var(--black);
  background: var(--white);
}
body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  color: var(--black);
  background: var(--white);
}
.hero {
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: center;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.125rem;
}

/* Make hero content vertically centered and more prominent */
.hero .container {
  height: 100%;
}
.hero .row {
  height: 100%;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.02;
  margin-bottom: 0.6rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.hero .btn {
  font-weight: 600;
}
.hero .btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  border: none;
}
.hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.95);
}
.hero .small {
  text-shadow: none;
}

/* Hero background using local image (relative path) */
.hero.hero-home {
  /* path is relative to this CSS file (assets/css/) so go up one level to assets/img */
  /* fallback background (kept) - we also force via pseudo-element to ensure visibility */
  background-image: none;
  position: relative;
}

/* Force background image via pseudo-element to avoid CSS override issues */
.hero.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/inicio/bg_inicio.jpg") center/cover no-repeat;
  z-index: -2;
}
.hero.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45));
  z-index: -1;
}

/* Trust line */
.trust-line {
  padding: 10px 0;
  background: transparent;
}
.trust-line p {
  font-size: 0.95rem;
}

/* Testimonials */
#testimonios .carousel-item {
  padding: 10px 0;
}
#testimonios .carousel-item img {
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Partners placeholders */
.partners-band .partner-item img {
  max-height: 64px;
  opacity: 0.95;
}

/* Fixed CTA next to WhatsApp */
.fixed-cta {
  position: fixed;
  right: 18px;
  bottom: 92px;
  background: #25d366;
  color: #fff;
  border-radius: 30px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  z-index: 1060;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.fixed-cta i {
  color: #fff;
}
.fixed-cta a {
  color: #fff;
}
.fixed-cta .anim-fade {
  transition: opacity 0.4s ease;
}

/* Debug helper: briefly show the image element if background still not visible */
.hero.hero-home.debug-show-img::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: url("../img/inicio/bg_inicio.jpg") center/cover no-repeat;
  opacity: 1;
  z-index: 0;
}
.navbar-brand {
  color: var(--black) !important;
}
.btn-primary {
  background: var(--black);
  border-color: var(--black);
}
.btn-success {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.btn-outline-primary {
  color: var(--black);
  border-color: var(--black);
}
.service-card .card-img-top {
  /* Show the full image without cropping */
  height: auto;
  max-height: 360px; /* limit for very tall images */
  object-fit: contain;
  object-position: center;
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
  padding: 10px; /* whitespace so the image isn't flush to edges */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.card img {
  height: auto;
  object-fit: cover;
  display: block;
  width: 100%;
}

/* Make product images show full image (no crop) inside the productos section */
section#productos .card-img-top,
#productos .card-img-top {
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 10px;
}

@media (max-width: 767px) {
  section#productos .card-img-top,
  #productos .card-img-top {
    max-height: 220px;
    padding: 6px;
  }
}
.img-wrapper {
  position: relative;
}
.img-placeholder {
  display: none;
  background: linear-gradient(180deg, var(--black), #333);
  color: var(--white);
  height: 200px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.service-card .btn.select-service.active {
  background: var(--gold);
  color: var(--black);
}
.promo-card {
  border-left: 4px solid var(--gold);
}
.map-placeholder {
  opacity: 0.95;
}
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  z-index: 1050;
  border: 2px solid rgba(0, 0, 0, 0.06);
}
.floating-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.cart-badge {
  position: relative;
}
/* Default inline badge for nav/menu flows (prevents absolute overlay inside collapsed menu) */
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}
/* Keep the floating-style badge when inside the cart button (.cart-badge) */
.cart-badge .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
}
/* Responsive tweaks */
@media (max-width: 767px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 767px) {
  .service-card .card-img-top {
    max-height: 220px;
    padding: 8px;
  }
}

/* Nosotros specific styles */
.nosotros-hero {
  background: linear-gradient(120deg, var(--black) 0%, rgba(0, 0, 0, 0.85) 60%);
  color: var(--white);
  padding: 4rem 0;
}
.nosotros-hero .lead {
  color: rgba(255, 255, 255, 0.9);
}
.stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat {
  background: rgba(0, 0, 0, 0.06);
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
  min-width: 150px;
  text-align: center;
}
.stat h3 {
  color: var(--gold);
  margin-bottom: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.team-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
}
.team-card .photo {
  height: 200px;
  background: linear-gradient(180deg, #222, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}
.timeline {
  border-left: 3px solid rgba(0, 0, 0, 0.06);
  padding-left: 1rem;
}
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.value-item {
  flex: 1;
  min-width: 160px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent);
  padding: 1rem;
  border-radius: 8px;
}
.nosotros-form .form-control {
  border-radius: 6px;
}
.nosotros-cta {
  background: linear-gradient(90deg, var(--gold), #c99d2b);
  color: var(--black);
  border: none;
}

/* Generic page hero and form styles */
.page-hero {
  background: linear-gradient(120deg, var(--black) 0%, rgba(0, 0, 0, 0.85) 60%);
  color: var(--white);
  padding: 3.5rem 0;
}
.page-hero h1 {
  color: var(--white);
}
.form-card {
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
}
.form-card .btn {
  border-radius: 6px;
}
/* Ensure headings inside white form-cards are visible when placed on dark hero backgrounds */
.form-card h5 {
  color: var(--black);
  margin-bottom: 0.6rem;
}

/* Products gallery styles */
.product-gallery .card {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.product-gallery .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.product-image {
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  width: 100%;
  display: block;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px;
  box-sizing: border-box;
}
.modal-product-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.product-badge {
  background: var(--gold);
  color: var(--black);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

/* Discount styles for products */
.img-wrapper {
  position: relative;
}
.discount-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  background: var(--gold);
  color: var(--black);
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.product-old-price {
  display: inline-block;
  color: #777;
  text-decoration: line-through;
  margin-right: 8px;
}
.product-price {
  color: var(--black);
  font-weight: 800;
}
.product-badge {
  background: var(--gold);
  color: var(--black);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
}

/* Contact detail cards */
.detail-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.03), transparent);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.detail-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--gold);
  font-size: 20px;
}
.detail-card .content h5 {
  margin: 0 0 6px 0;
}
.contact-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--black);
  color: var(--gold);
  margin-right: 8px;
}
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.small-muted {
  color: rgba(0, 0, 0, 0.6);
}

/* Partners band */
.partners-band {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.02),
    rgba(212, 175, 55, 0.02)
  );
  padding: 2rem 0;
  margin-top: 1.5rem;
}
.partners-band .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.partners-band .logo img {
  max-height: 64px;
  filter: grayscale(100%);
  opacity: 0.85;
  transition:
    filter 0.18s,
    opacity 0.18s,
    transform 0.18s;
}
.partners-band .logo img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}
.partners-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Sorteos banner */
.sorteos-banner {
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.12),
    rgba(0, 0, 0, 0.02)
  );
  border: 1px solid rgba(212, 175, 55, 0.16);
}
.sorteos-banner h3 {
  color: var(--black);
  font-weight: 800;
}
.sorteos-banner p {
  color: rgba(0, 0, 0, 0.7);
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
  border: none;
}
.btn-gold:hover {
  opacity: 0.95;
}

@media (max-width: 767px) {
  .sorteos-banner {
    text-align: center;
  }
  .sorteos-banner .d-flex {
    justify-content: center;
  }
}

/* Custom partners carousel: show 4 items, slide one-by-one with smooth loop */
.partners-carousel {
  overflow: hidden;
  width: 100%;
  margin-top: 12px;
}
.partners-track {
  display: flex;
  gap: 10px;
  transition: transform 0.6s ease;
  align-items: center;
}

/* Service rotator in hero */
.service-rotator {
  vertical-align: middle;
}
.service-rotator .service-group {
  display: inline-block;
  opacity: 1; /* no transition for instant swap */
  transition: none !important;
  transform: translateY(0);
}
.service-rotator .fade-out {
  opacity: 1;
  transform: none;
}
.service-rotator .service-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Cart offcanvas improvements */
.cart-offcanvas-header {
  background: linear-gradient(90deg, var(--gold), #c99d2b);
  color: var(--black);
}
.cart-offcanvas-header .offcanvas-title {
  font-weight: 700;
}
.offcanvas-body #cart-items {
  min-height: 140px;
}
.cart-empty {
  color: rgba(0, 0, 0, 0.68);
}
.cart-empty .fa-cart-shopping {
  background: rgba(212, 175, 55, 0.06);
  padding: 12px;
  border-radius: 50%;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  align-items: center;
}
.cart-item .thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item .meta {
  flex: 1;
  min-width: 0;
}
.cart-item .meta .title {
  font-weight: 700;
  font-size: 0.95rem;
}
.cart-item .meta .note {
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.55);
}
/* Ensure the quantity and actions stay at the right side and don't wrap on small screens */
.cart-item {
  flex-wrap: nowrap;
}
.cart-item .actions, .cart-item .text-end {
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cart-item .cart-item-qty {
  width: 72px !important;
  min-width: 56px;
  margin-right: 0 !important;
}
@media (max-width: 576px) {
  .cart-item {
    gap: 8px;
  }
  .cart-item .actions, .cart-item .text-end {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    min-width: 80px;
  }
  .cart-item .meta {
    overflow: hidden;
  }
}
.cart-summary {
  background: transparent;
}
.offcanvas .btn-primary {
  background: var(--black);
  border-color: var(--black);
}
.offcanvas .btn-success {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.offcanvas .form-control-sm {
  border-radius: 6px;
}

.cart-summary.has-discount {
  border-left: 4px solid rgba(212, 175, 55, 0.18);
  padding-left: 10px;
}
.cart-summary.has-discount #cart-total {
  color: var(--gold);
  font-weight: 900;
  font-size: 1.1rem;
}

/* Antes/Después carousel styles */
.ba-carousel {
  overflow: hidden;
  width: 100%;
}
.ba-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  transition: transform 0.6s ease;
}
.ba-item {
  flex: 0 0 calc(33.333% - 16px);
  box-sizing: border-box;
}
.ba-item .ba-thumb {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ba-item img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Mostrar las imágenes de "Nuestros Clientes" completas (sin recorte) */
.ba-thumb img,
.ba-thumb .card-img-top {
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 10px 0 10px;
}
.ba-compare-modal .ba-before,
.ba-compare-modal .ba-after {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 767px) {
  .ba-thumb img,
  .ba-thumb .card-img-top {
    max-height: 220px;
    padding: 6px;
  }
  .ba-compare-modal .ba-before,
  .ba-compare-modal .ba-after {
    max-height: 320px;
  }
}

@media (max-width: 767px) {
  .product-image {
    max-height: 220px;
    padding: 6px;
  }
}

/* Product card visual polish to match provided mock */
.product-gallery .card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}
.product-gallery .img-wrapper {
  position: relative;
  background: transparent;
}
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  background: #ff5a5f;
  color: #fff;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.card-body {
  padding: 14px;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.card-text {
  font-size: 0.86rem;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 10px;
  min-height: 36px;
}
.product-old-price {
  color: #999;
  text-decoration: line-through;
  display: block;
  font-size: 0.85rem;
}
.product-price {
  color: #c62828;
  font-weight: 800;
  font-size: 1.05rem;
}

/* Right-side controls: make qty + button more compact and stack on small screens */
.card .mt-auto .form-control-sm.product-qty {
  width: 72px;
  margin-right: 8px;
}
.card .mt-auto .add-product {
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: #6b2fa6;
  border: 2px solid #6b2fa6;
  font-weight: 700;
}
.card .mt-auto .add-product:hover {
  background: #6b2fa6;
  color: #fff;
}

@media (max-width: 576px) {
  .card .mt-auto {
    flex-direction: column;
    gap: 8px;
  }
  .card .mt-auto .form-control-sm.product-qty {
    width: 100%;
    margin-right: 0;
  }
  .card .mt-auto .add-product {
    width: 100%;
    display: block;
  }
}

/* About section (homepage) */
.about-section {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.03),
    rgba(0, 0, 0, 0.01)
  );
}
.about-card {
  background: var(--white);
  border-radius: 14px;
}
.about-card h3 {
  color: var(--black);
  font-weight: 700;
}
.about-card p {
  color: rgba(0, 0, 0, 0.7);
}
.about-media .about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
}
.about-media .small-thumb {
  height: 140px;
  object-fit: cover;
}
.feature .icon {
  font-size: 20px;
}

@media (max-width: 767px) {
  .about-media .about-img {
    height: 270px;
  }
  .about-media .small-thumb {
    height: 80px;
  }
}

/* Numbers block for Nosotros: large numeric display similar to provided model */
.numbers-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}
.numbers-hero .left {
  flex: 0 0 48%;
}
.numbers-hero .left h3 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}
.numbers-hero .left p {
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
}
.numbers-hero .right {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}
.numbers-hero .num-card {
  text-align: center;
  padding: 0 12px;
}
.numbers-hero .num-card .big-number {
  font-size: 3.4rem;
  color: var(--black);
  font-weight: 700;
}
.numbers-hero .num-card small {
  display: block;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 6px;
}

@media (max-width: 767px) {
  .numbers-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .numbers-hero .left {
    flex: auto;
  }
  .numbers-hero .right {
    width: 100%;
    justify-content: space-between;
  }
  .numbers-hero .num-card .big-number {
    font-size: 2.2rem;
  }
}

/* Nosotros page: two-column image + text */
.nosotros-section {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.02),
    rgba(0, 0, 0, 0.01)
  );
}
.nosotros-main-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
}
.nosotros-section .img-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  height: 360px;
  background: linear-gradient(180deg, #f8f8f8, #fff);
  color: #777;
}
@media (max-width: 767px) {
  .nosotros-main-img {
    height: 220px;
  }
  .nosotros-section .img-placeholder {
    height: 220px;
  }
}

/* Map indicator arrow shown temporarily when user clicks "Cómo llegar" */
.map-arrow {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 20px solid var(--gold);
  z-index: 30;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.14));
  animation: map-arrow-bounce 2.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.map-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 36px;
  height: 8px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.14);
}
@keyframes map-arrow-bounce {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.98);
  }
  10% {
    opacity: 1;
  }
  40% {
    transform: translateX(-50%) translateY(0) scale(1.02);
  }
  70% {
    transform: translateX(-50%) translateY(-4px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.98);
  }
}

@media (max-width: 992px) {
  .ba-item {
    flex: 0 0 calc(50% - 12px);
  }
}
@media (max-width: 576px) {
  .ba-item {
    flex: 0 0 calc(100% - 12px);
  }
}

/* Testimonios */
#testimonios .testimonial-card {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.98);
  padding: 1.6rem 1.8rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
#testimonios .testimonial-card img {
  border: 3px solid var(--gold);
}
#testimonios .testimonial-stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 2px;
}
#testimonios .testimonials-section {
  padding: 3.5rem 0;
}
.testimonials-hero {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.testimonials-hero .left {
  flex: 0 0 42%;
}
.testimonials-hero .left h2 {
  font-size: 2rem;
  line-height: 1.04;
  margin-bottom: 0.5rem;
}
.testimonials-hero .left p {
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.95rem;
}
.testimonials-hero .right {
  flex: 1;
}
.testimonial-card--large {
  background: var(--white);
  padding: 1.1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.testimonial-quote {
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.72);
  margin: 0 0 0.6rem;
  line-height: 1.4;
}
.testimonial-author {
  font-weight: 700;
  margin-bottom: 0.15rem;
  font-size: 0.98rem;
}
.testimonial-role {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
}
.testimonial-carousel-controls .carousel-indicators {
  position: static;
  margin-top: 0.8rem;
}
.testimonial-quote-icon {
  position: absolute;
  right: 5px;
  top: 48%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-size: 16px;
}

@media (max-width: 767px) {
  .testimonials-hero {
    flex-direction: column;
  }
  .testimonials-hero .left {
    flex: 0 0 auto;
  }
  .testimonials-hero .left h2 {
    font-size: 1.4rem;
  }
}
#testimonios .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
}
#testimonios .carousel-indicators .active {
  background: var(--gold);
}

@media (max-width: 576px) {
  #testimonios .testimonial-card {
    padding: 1rem;
  }
  #testimonios .testimonial-stars {
    font-size: 0.95rem;
  }
}
.partner-item {
  flex: 0 0 calc(25% - 10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 6px;
}
.partner-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(10%);
  opacity: 0.95;
}

@media (max-width: 992px) {
  .partner-item {
    flex: 0 0 calc(33.333% - 10px);
  }
}
@media (max-width: 576px) {
  .partner-item {
    flex: 0 0 calc(50% - 10px);
  }
}

/* Contact section enhancements */
.contact-section .form-card {
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.contact-section .detail-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

/* Enhanced styles for Misión / Visión / Valores cards */
.mvv-cards .card {
  border: none;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  background: linear-gradient(180deg, #fff, #fff);
}
.mvv-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
.mvv-cards .card .mb-3 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.12),
    rgba(212, 175, 55, 0.04)
  );
}
.mvv-cards .card .mb-3 i {
  color: var(--gold);
  font-size: 20px;
}
.mvv-cards .card h5 {
  margin-bottom: 8px;
}
.mvv-cards .card p {
  color: rgba(0, 0, 0, 0.7);
}

/* Value list items visual polish */
.value-list {
  gap: 18px;
}
.value-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 200px;
}
.value-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--black);
}
.value-item .small {
  text-align: left;
  color: rgba(0, 0, 0, 0.65);
}
.value-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
  .mvv-cards .card {
    padding: 1rem;
  }
  .value-item {
    min-width: 100%;
  }
}

/* Flip-card styles for value items */
.flip-card {
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 140px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.flip-card-front {
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.06),
    rgba(0, 0, 0, 0.02)
  );
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
  font-size: 1rem;
}
.flip-card-back {
  transform: rotateY(180deg);
  padding: 16px;
  text-align: left;
  background: #fff;
}

@media (max-width: 767px) {
  .flip-card-inner {
    min-height: 120px;
  }
}

/* Hide front title during transition and show only back content */
.flip-card-front,
.flip-card-back {
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}
.flip-card-front {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}
.flip-card-back {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
}

.flip-card:hover .flip-card-front,
.flip-card.flipped .flip-card-front {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.flip-card:hover .flip-card-back,
.flip-card.flipped .flip-card-back {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}
.contact-section .detail-card {
  align-items: center;
}
.contact-section .detail-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--black);
  font-size: 20px;
}
.contact-section .contact-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.contact-section .form-card h4 {
  margin-bottom: 10px;
}

/* Footer styles */
.site-footer {
  background: var(--black);
  color: var(--white);
}
.site-footer a {
  color: var(--white);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold);
}
.site-footer .footer-links li {
  margin-bottom: 8px;
}
.site-footer .footer-links a {
  color: black;
}
.site-footer .footer-brand .small-muted {
  color: rgba(255, 255, 255, 0.7);
}
.site-footer .footer-newsletter input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.site-footer .footer-newsletter .btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.site-footer .social-links a {
  opacity: 0.95;
  margin-right: 8px;
}

/* Back to top FAB */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 140px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  cursor: pointer;
}
.back-to-top:hover {
  transform: translateY(-3px);
}

/* Antes / Después gallery */
.ba-thumb {
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
}
.ba-thumb img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  display: block;
}
.ba-thumb .card-body {
  padding: 0.5rem 0.75rem;
  background: #fff;
  margin-top: 8px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  text-align: center;
}
.ba-compare-modal {
  position: relative;
  overflow: hidden;
  background: #000;
}
.ba-compare-modal img {
  display: block;
  width: 100%;
  height: auto;
}
.ba-compare-modal .ba-after {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  object-fit: cover;
}
.ba-range {
  position: relative;
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 767px) {
  .site-footer .footer-newsletter {
    display: flex;
    gap: 8px;
  }
  .site-footer .footer-newsletter input {
    flex: 1;
  }
}

/* Footer centered on mobile */
@media (max-width: 767px) {
  .site-footer .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer .footer-brand,
  .site-footer .footer-links,
  .site-footer .footer-newsletter,
  .site-footer .small-muted {
    text-align: center;
  }
  .site-footer .footer-links {
    padding-left: 0;
  }
  .site-footer .footer-links li {
    display: inline-block;
    margin: 6px 10px;
  }
  .site-footer .footer-newsletter {
    width: 100%;
    max-width: 420px;
    margin: 0.5rem auto;
  }
  .site-footer .social-links {
    justify-content: center;
    display: flex;
  }
}

/* Center footer logo specifically on mobile */
@media (max-width: 767px) {
  .site-footer .footer-logo {
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  /* on small screens keep it visible but not overlapping the WhatsApp CTA */
  .back-to-top {
    bottom: 110px;
  }
}

/* Logo sizing */
.navbar-logo {
  height: 100px;
  object-fit: contain;
}
.footer-logo {
  max-width: 190px;
  height: auto;
  display: block;
}

/* Responsive tweaks: keep logos reasonably sized on small screens */
@media (max-width: 576px) {
  .navbar-logo {
    height: 70px;
  }
  .footer-logo {
    max-width: 220px;
  }
}

/* Stack section headings (title + subtitle) vertically on small screens */
@media (max-width: 767.98px) {
  .d-flex.justify-content-between.align-items-center.mb-4,
  .d-flex.justify-content-between.align-items-center.mb-3,
  .partners-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem;
  }
  .d-flex.justify-content-between.align-items-center.mb-4 > h2,
  .d-flex.justify-content-between.align-items-center.mb-3 > h2,
  .d-flex.justify-content-between.align-items-center.mb-4 > h3,
  .d-flex.justify-content-between.align-items-center.mb-3 > h3,
  .partners-heading > h3 {
    margin-bottom: 0.25rem;
  }
  .d-flex.justify-content-between.align-items-center.mb-4 > p,
  .d-flex.justify-content-between.align-items-center.mb-3 > p,
  .d-flex.justify-content-between.align-items-center.mb-4 > small,
  .d-flex.justify-content-between.align-items-center.mb-3 > small,
  .partners-heading > small {
    margin-top: 0;
  }
}

/* On small screens show only the floating WhatsApp button and hide other floating UI */
@media (max-width: 767.98px) {
  .fixed-cta,
  .back-to-top,
  .cart-badge {
    display: none !important;
  }
  .floating-whatsapp {
    display: flex !important;
    right: 18px;
    bottom: 18px;
    z-index: 3000;
  }
}

/* Timeline single-field styling for Nosotros */
.timeline-field {
  background: linear-gradient(180deg, #fff, #fbfbfb);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.timeline-field p {
  margin: 0;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.45;
}

/* Certifications logos grid */
.cert-logos img {
  max-height: 90px;
  object-fit: contain;
  opacity: 0.95;
  filter: grayscale(10%);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}
.cert-logos a:hover img {
  transform: translateY(-6px);
  opacity: 1;
  filter: grayscale(0);
}

/* MVV cards spacing */
.mvv-cards .card {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.mvv-cards .card h5 {
  margin-top: 6px;
}

/* Reducir tamaño imagen de la sección Nosotros en homepage */
.nosotros-img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}
@media (max-width: 767px) {
  .nosotros-img {
    max-height: 220px;
  }
}
