/* Product Catalogue */
.section-title h2 {
  color: var(--dark);
  font-size: 2.25rem;
}

/* Product Catalogue Filters */
.product-filter-container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-btn {
  padding: 0.4rem 1.15rem;
  border: 1px solid var(--primario);
  border-radius: 50px;
  background-color: transparent;
  color: var(--primario);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.pill-btn:hover {
  background-color: rgba(0, 91, 127, 0.06);
  color: var(--primario);
}

.pill-btn.active {
  background-color: var(--primario) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 10px rgba(0, 91, 127, 0.15);
}

/* Search Box, Dropdown & Labels Custom styling matching clinic style */
.product-filter-container label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primario);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.search-box {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: none;
  border: none;
  min-height: 48px;
  display: flex;
}

.search-box .input-group-text {
  background-color: #ffffff !important;
  border: 1px solid rgba(13, 58, 71, 0.28);
  border-right: none;
  color: var(--primario);
  min-height: 48px;
  border-radius: 0.5rem 0 0 0.5rem;
  padding-left: 1rem;
}

.search-box input#search-input {
  border: 1px solid rgba(13, 58, 71, 0.28) !important;
  border-left: none !important;
  color: var(--primario);
  min-height: 48px;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  font-size: 1rem;
  line-height: 1.4;
  padding-left: 0.25rem;
  background-color: #ffffff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input#search-input::placeholder {
  color: rgba(13, 58, 71, 0.5);
  font-weight: 400;
}

.search-box:focus-within {
  outline: 3px solid rgba(20, 158, 183, 0.28);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.search-box:focus-within .input-group-text,
.search-box:focus-within input#search-input {
  border-color: var(--primario) !important;
}

.zone-select-dropdown {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 2.25rem 0.75rem 0.875rem;
  color: var(--primario);
  background-color: #ffffff !important;
  border: 1px solid rgba(13, 58, 71, 0.28);
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zone-select-dropdown:focus {
  outline: 3px solid rgba(20, 158, 183, 0.28);
  outline-offset: 2px;
  border-color: var(--primario);
  box-shadow: none;
}


/* Catalogue Grid */
.product-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.product-catalogue-item {
  position: relative;
  width: 100%;
  height: 420px;
  /* Altura fija para cuadrícula alineada */
  border-radius: 1rem;
  background-color: var(--primario);
  /* Color de respaldo oficial */
  box-shadow: 0 8px 24px rgba(13, 58, 71, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.product-catalogue-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(13, 58, 71, 0.2);
}

.product-catalogue-item-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  overflow: hidden;
}

.product-catalogue-item-img img.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-catalogue-item:hover .product-catalogue-item-img img.card-image {
  transform: scale(1.08);
}

/* Contenido superpuesto */
.card-overlay-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  background: linear-gradient(to top,
      rgba(13, 58, 71, 0.95) 0%,
      rgba(13, 58, 71, 0.5) 30%,
      rgba(13, 58, 71, 0.15) 100%);
  transition: background 0.4s ease;
}

.product-catalogue-item:hover .card-overlay-content {
  background: linear-gradient(to top,
      rgba(13, 58, 71, 0.98) 0%,
      rgba(13, 58, 71, 0.6) 30%,
      rgba(13, 58, 71, 0.2) 100%);
}

/* Cabecera de la tarjeta: Categoría y Duración */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-category-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 0;
}

.card-duration-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
}

/* Cuerpo de la tarjeta */
.card-body-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: auto;
  width: 100%;
}

.card-title-container {
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}

.card-title-link {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-catalogue-item:hover .card-title-link {
  color: #b4f1fc;
  /* Azul celeste brillante en hover para excelente contraste */
}

.card-zone {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-price-container {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.card-price-container .card-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-price-container .card-price-tax {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Revelado deslizante al pasar el mouse */
.product-catalogue-item-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.product-catalogue-item:hover .product-catalogue-item-cta {
  max-height: 48px;
  opacity: 1;
  margin-top: 0.85rem;
}

/* Mostrar botones por defecto en pantallas táctiles sin cursor */
@media (hover: none) {
  .product-catalogue-item-cta {
    max-height: 48px;
    opacity: 1;
    margin-top: 0.85rem;
  }
}

.product-catalogue-item-cta a {
  padding: 0.55rem 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.25s ease;
  line-height: 1.2;
}

.product-catalogue-item-cta .card-btn-reservar {
  background-color: var(--sales);
  color: var(--white);
  border: 1px solid var(--sales);
}

.product-catalogue-item-cta .card-btn-reservar:hover {
  background-color: #ffffff;
  color: var(--sales);
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 139, 120, 0.25);
}

.product-catalogue-item-cta .card-btn-ver-mas {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.product-catalogue-item-cta .card-btn-ver-mas:hover {
  background-color: #ffffff;
  color: var(--primario);
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

@media (max-width: 1200px) {
  .product-catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-catalogue-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Detalle Estetica Redesign */
/* Hero Section */
#detalle-estetica-hero {
  position: relative;
  background: linear-gradient(to top, rgba(0, 151, 172, 0.1) 0%, rgba(0, 151, 172, 0) 40%),
    radial-gradient(circle at 85% 30%, rgba(238, 249, 255, 0.95) 0%, transparent 60%),
    radial-gradient(circle at 15% 80%, rgba(51, 178, 194, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 75%, rgba(0, 151, 172, 0.08) 0%, transparent 50%),
    #ffffff;
  padding: 12rem 0 7rem 0;
  /* Reduced top padding for more compact and balanced clearance */
  border-bottom: 1px solid rgba(0, 151, 172, 0.06);
}

#detalle-estetica-hero .container {
  position: relative;
  z-index: 1;
}

#detalle-estetica-hero .row>.col-lg-5 {
  align-self: flex-end;
}

/* Category Badge */
.detalle-estetica-category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secundario);
  background-color: rgba(0, 151, 172, 0.06);
  border: 1px solid rgba(0, 151, 172, 0.15);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* Main Titles */
.detalle-estetica-hero-desc h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.detalle-estetica-hero-desc p.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(13, 58, 71, 0.75);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Dynamic Hero Image Frame */
.detalle-estetica-hero-img-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: -7rem;
}

.detalle-estetica-hero-img-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  /* Increased from 420px to look more proportionate */
  overflow: visible;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  aspect-ratio: 1 / 1;
}

.detalle-estetica-hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Contain to preserve cutout shape correctly */
  object-position: bottom center;
  transition: transform 0.6s ease;
}

.detalle-estetica-hero-img-frame:hover {
  transform: translateY(-6px) scale(1.02);
}

.detalle-estetica-hero-img-frame:hover img {
  transform: scale(1.04);
}

/* Bottom Overlapping Banner */
.detalle-estetica-hero-banner {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 960px;
  background-color: var(--primario);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 151, 172, 0.15);
  z-index: 5;
  overflow: hidden;
}

@media (min-width: 1200px) {
  .detalle-estetica-hero-banner {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .detalle-estetica-hero-banner {
    max-width: 1320px;
  }
}

.detalle-estetica-hero-banner-info {
  padding: 1.5rem 3rem;
  color: #ffffff;
  font-size: 1.15rem;
  font-family: var(--fontFamilyBody);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.detalle-estetica-hero-banner-info span {
  font-weight: 500;
}

.detalle-estetica-hero-banner-info span:nth-child(2) {
  opacity: 0.6;
  font-weight: 300;
}

.detalle-estetica-hero-banner-cta {
  display: flex;
  align-self: stretch;
}

.detalle-estetica-hero-banner-cta a {
  padding: 1.5rem 3rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sales);
  border-radius: 0 50px 50px 0;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
}

.detalle-estetica-hero-banner-cta a:hover {
  background-color: #ff5252;
  color: #ffffff;
}

/* Hero responsive overrides */
@media (max-width: 991px) {
  #detalle-estetica-hero {
    padding: 9rem 0 3rem 0;
    /* Increased top padding on mobile to clear mobile navbar */
    text-align: center;
  }

  .detalle-estetica-hero-desc h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
  }

  #detalle-estetica-hero .row>.col-lg-5 {
    align-self: auto;
  }

  .detalle-estetica-hero-img-container {
    margin-bottom: 0;
  }

  .detalle-estetica-hero-img-frame {
    margin-inline: auto;
  }

  .detalle-estetica-hero-banner {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 90%;
    margin: -2.5rem auto 0 auto;
    border-radius: 24px;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 151, 172, 0.1);
    z-index: 5;
  }

  .detalle-estetica-hero-banner-info {
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .detalle-estetica-hero-banner-info span:nth-child(2) {
    display: none;
  }

  .detalle-estetica-hero-banner-cta {
    width: 100%;
  }

  .detalle-estetica-hero-banner-cta a {
    width: 100%;
    padding: 1.25rem;
    border-radius: 0 0 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Ultra-wide Screen Adaptive Layout Sizing */
@media (min-width: 1600px) {
  .detalle-estetica-hero-img-frame {
    max-width: 580px;
    /* Scale up hero image on large desktops */
  }

  #detalle-estetica-desc .col-lg-6 img {
    max-width: 580px;
    /* Proportional scaling for description image */
  }
}

@media (min-width: 2000px) {
  .detalle-estetica-hero-img-frame {
    max-width: 640px;
    /* Target extra large desktops (e.g. 2560px) */
  }

  #detalle-estetica-desc .col-lg-6 img {
    max-width: 640px;
  }
}

/* Description Section Restructure */
#detalle-estetica-desc {
  padding: 5rem 0;
  position: relative;
}

#detalle-estetica-desc .col-lg-6 img {
  width: 100%;
  max-width: 540px;
  /* Balanced size on wide screens */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 151, 172, 0.12), 0 20px 40px rgba(13, 58, 71, 0.08);
  display: block;
  margin-inline: auto;
  background: linear-gradient(135deg, var(--light) 0%, var(--primario) 100%);
  padding: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  /* Centered in column */
}

#detalle-estetica-desc .col-lg-6 img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 151, 172, 0.22), 0 30px 60px rgba(13, 58, 71, 0.15);
}

#detalle-estetica-desc .section-title h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark);
}

#detalle-estetica-desc .detalle-precio-block {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-top: 0.5rem;
}

#detalle-estetica-desc .detalle-precio-symbol,
#detalle-estetica-desc .detalle-precio-val {
  font-family: var(--fontFamilyBody);
  font-size: 2rem !important;
  font-weight: 500 !important;
  color: var(--primario);
}

#detalle-estetica-desc .detalle-precio-tax {
  font-family: var(--fontFamilyBody);
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  color: #888888 !important;
  margin-left: 0.5rem;
  user-select: none;
}

.detalle-estetica-desc-benficios {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0 2.5rem 0;
}

.detalle-estetica-desc-benficios span {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.detalle-estetica-desc-benficios span::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primario);
  font-size: 1rem;
  background-color: rgba(0, 151, 172, 0.1);
  padding: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detalle-estetica-cta {
  margin-top: 0;
}

.detalle-estetica-cta a {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primario);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 151, 172, 0.2);
}

.detalle-estetica-cta a:hover {
  background-color: var(--cuarto);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 151, 172, 0.3);
  color: #ffffff;
}

/* Medical Details Tabs Section */
.medical-details-section {
  padding: 3rem 0 5rem 0;
}

.medical-details-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(13, 58, 71, 0.05);
  padding: 2.5rem;
  border: 1px solid rgba(13, 58, 71, 0.05);
}

.medical-tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid rgba(0, 151, 172, 0.1);
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.medical-tabs-nav button.nav-link {
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(13, 58, 71, 0.6);
  padding: 0.85rem 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.medical-tabs-nav button.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primario);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: bottom center;
}

.medical-tabs-nav button.nav-link:hover {
  color: var(--primario);
}

.medical-tabs-nav button.nav-link.active {
  color: var(--primario);
}

.medical-tabs-nav button.nav-link.active::after {
  transform: scaleX(1);
}

.medical-tab-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark);
  font-weight: 300;
}

.medical-tab-pane {
  display: none;
}

.medical-tab-pane.active {
  display: block;
}

/* Bullet list format for tabs */
.tab-list-items {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tab-list-items li {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 400;
}

.tab-list-items li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #33b2c2;
  font-size: 1.1rem;
}

/* Q&A Accordion Style inside Tab */
.faq-accordion-item {
  border-bottom: 1px solid rgba(13, 58, 71, 0.1);
  padding: 1.25rem 0;
}

.faq-accordion-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--primario);
}

.faq-accordion-item.active .faq-question {
  color: var(--primario);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding-top 0.3s ease;
  color: rgba(13, 58, 71, 0.7);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

.faq-accordion-item.active .faq-answer {
  max-height: 250px;
  padding-top: 0.75rem;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primario);
}

.faq-accordion-item.active .faq-question i {
  transform: rotate(180deg);
}

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

  .medical-tabs-nav {
    gap: 0.5rem;
  }

  .medical-tabs-nav button.nav-link {
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
  }
}

/* Antes y Despues Section Redesign */
#antes-despues {
  padding: 6rem 0;
  background-color: #f6fafb;
  /* Soft light background to frame the comparison card */
  border-top: 1px solid rgba(0, 151, 172, 0.05);
  border-bottom: 1px solid rgba(0, 151, 172, 0.05);
  position: relative;
}

.antes-despues-card-centered {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  border-radius: 24px;
  background-color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 30px rgba(13, 58, 71, 0.08);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  /* Keep it square to match typical facial cutouts */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.antes-despues-card-centered:hover {
  transform: translateY(-4px) scale(1.01);
}


.twentytwenty-wrapper {
  height: 100%;
}

/* Customizing TwentyTwenty Slider Styles */
.twentytwenty-container {
  background-color: #f7f9fa;
}

.twentytwenty-handle {
  border: 3px solid #ffffff !important;
  background-color: var(--primario) !important;
  box-shadow: 0 0 12px rgba(0, 151, 172, 0.3) !important;
}

.twentytwenty-left-arrow,
.twentytwenty-right-arrow {
  border: none !important;
  width: 14px !important;
  height: 14px !important;
  font-family: 'bootstrap-icons' !important;
  font-size: 14px !important;
  color: #ffffff !important;
  line-height: 1 !important;
  top: 50% !important;
  margin-top: -7px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.twentytwenty-left-arrow {
  left: 5px !important;
}

.twentytwenty-right-arrow {
  right: 5px !important;
}

.twentytwenty-left-arrow::before {
  content: "\f22d" !important; /* bi-caret-left-fill */
}

.twentytwenty-right-arrow::before {
  content: "\f231" !important; /* bi-caret-right-fill */
}

.twentytwenty-before-label:before,
.twentytwenty-after-label:before {
  content: "Antes" !important;
  font-family: var(--fontFamilyBody) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.75rem !important;
  letter-spacing: 1px;
  padding: 0.4rem 0.8rem !important;
  border-radius: 50px !important;
  background-color: rgba(13, 58, 71, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  top: 1.5rem !important;
  transition: opacity 0.3s ease;
}

.twentytwenty-after-label:before {
  content: "Después" !important;
}

/* Ocultar botones CTA en el carrusel de otros servicios para un diseño más limpio y click general en la tarjeta */
#otros-servicios-carousel .product-catalogue-item-cta {
  display: none !important;
}

#otros-servicios-carousel .product-catalogue-item:hover .product-catalogue-item-cta {
  max-height: 0 !important;
  margin-top: 0 !important;
  opacity: 0 !important;
}

/* Evitar que se corten los bordes y la sombra de las tarjetas en hover dentro del carrusel */
#otros-servicios-carousel .splide__track {
  padding-top: 15px;
  padding-bottom: 25px;
  margin-top: -15px;
  margin-bottom: -25px;
}





/* About Section Redesign */
#about {
  padding: 6rem 0;
  position: relative;
  background-color: transparent;
}

.about-img-frame {
  max-width: 480px;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(13, 58, 71, 0.08);
  border: 4px solid #ffffff;
  margin-inline: auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.about-img-frame:hover {
  transform: translateY(-6px) scale(1.02);
}

.about-img-frame:hover img {
  transform: scale(1.04);
}

/* ========================================================
   HERO ESTÉTICA FACIAL - REDESIGN & RESPONSIVENESS
   ======================================================== */
.hero-estetica-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #0d2c37;
}

#hero-estetica-carousel {
  position: relative;
}

#hero-estetica-carousel .carousel-item {
  position: relative;
  min-height: 680px;
  height: 82vh;
  max-height: 850px;
}

#hero-estetica-carousel .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Subtle luxury gradient overlay ensuring text legibility */
#hero-estetica-carousel .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 36, 46, 0.88) 0%,
    rgba(10, 36, 46, 0.72) 45%,
    rgba(10, 36, 46, 0.25) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

#hero-estetica-carousel .hero-estetica-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.hero-text-col {
  padding-left: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ed8e8;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.25rem;
  font-weight: 300;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--sales);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(234, 100, 95, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-cta:hover {
  background-color: #d94f49;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(234, 100, 95, 0.55);
  color: #ffffff !important;
}

.btn-hero-cta i {
  transition: transform 0.3s ease;
  font-size: 0.95rem;
}

.btn-hero-cta:hover i {
  transform: translateY(4px);
}

/* Mobile Responsiveness for Hero */
@media (max-width: 991.98px) {
  #hero-estetica-carousel .carousel-item {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    max-height: none;
  }

  #hero-estetica-carousel .hero-bg-img {
    min-height: 100vh;
    min-height: 100svh;
    height: 100%;
    object-fit: cover;
    object-position: center bottom; /* Preserves the model full face, chin, hands and natural framing */
  }

  /* Editorial gradient: dark at the top for crisp white typography, fading to 100% TRANSPARENT over the model */
  #hero-estetica-carousel .carousel-item::after {
    background: linear-gradient(
      180deg,
      rgba(10, 36, 46, 0.94) 0%,
      rgba(10, 36, 46, 0.88) 32%,
      rgba(10, 36, 46, 0.45) 48%,
      rgba(10, 36, 46, 0.08) 58%,
      transparent 66%,
      transparent 100%
    );
  }

  #hero-estetica-carousel .hero-estetica-caption {
    align-items: flex-start;
    padding-top: 6.5rem; /* Generous breathing room below the fixed navbar */
    padding-bottom: 2.5rem;
    padding-left: 1.25rem;
    padding-right: 4.25rem; /* Safe clearance for right-side floating action buttons */
  }

  .hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    color: #4ed8e8;
    font-weight: 700;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.25rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-bottom: 0.95rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.55rem;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 300;
    max-width: 350px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  }

  .btn-hero-cta {
    font-size: 1rem;
    padding: 0.9rem 2.1rem;
    box-shadow: 0 10px 26px rgba(234, 100, 95, 0.5);
  }
}

@media (max-width: 575.98px) {
  #hero-estetica-carousel .hero-estetica-caption {
    padding-top: 6.25rem; /* Comfortable ~35px clearance below navbar on small screens */
    padding-left: 1.15rem;
    padding-right: 3.85rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.18;
    margin-bottom: 0.8rem;
  }

  .hero-description {
    font-size: 0.88rem;
    line-height: 1.54;
    margin-bottom: 1.35rem;
    max-width: 310px;
  }

  .btn-hero-cta {
    width: auto;
    padding: 0.82rem 1.75rem;
    font-size: 0.92rem;
  }
}


/* ========================================================
   PILARES ESTÉTICA FACIAL - LUXURY EDITORIAL REDESIGN
   ======================================================== */
.pilares-section {
  position: relative;
  background: linear-gradient(180deg, #f7fafb 0%, #ffffff 60%, #f7fafb 100%);
  padding: 5.5rem 0;
  border-bottom: 1px solid rgba(13, 58, 71, 0.07);
}

.pilares-quote-container {
  padding: 1rem 1rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.pilares-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primario);
  margin-bottom: 1.25rem;
  background: rgba(0, 91, 127, 0.06);
  padding: 0.4rem 1.15rem;
  border-radius: 50px;
}

.pilares-quote-text {
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.42;
  color: #0f323e;
  font-style: italic;
  letter-spacing: -0.015em;
  margin: 0 auto 1.5rem;
}

.pilares-divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 280px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 91, 127, 0.25), transparent);
}

.ornament-icon {
  color: var(--primario);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Luxury Pillar Cards */
.pilar-luxury-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(13, 58, 71, 0.08);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(13, 58, 71, 0.03);
  overflow: hidden;
}

.pilar-luxury-card:hover {
  transform: translateY(-8px);
  border-color: rgba(20, 158, 183, 0.35);
  box-shadow: 0 20px 40px rgba(13, 58, 71, 0.08);
}

.pilar-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pilar-index {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(0, 91, 127, 0.15);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}

.pilar-luxury-card:hover .pilar-index {
  color: var(--primario);
}

.pilar-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 91, 127, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primario);
  font-size: 1.35rem;
  transition: all 0.35s ease;
}

.pilar-luxury-card:hover .pilar-icon-badge {
  background: var(--primario);
  color: #ffffff;
  transform: scale(1.06);
}

.pilar-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sales);
  margin-bottom: 0.4rem;
}

.pilar-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0d2c37;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.pilar-body {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #4b636e;
  margin-bottom: 0;
}

.pilar-card-border-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primario), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pilar-luxury-card:hover .pilar-card-border-glow {
  opacity: 1;
}

/* Section scroll-margin for smooth anchor jumping */
#catalogo-estetica {
  scroll-margin-top: 85px;
}