:root {
  --plekari-success: #2f6f57;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0 !important;
  box-shadow: none;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-navbar .navbar-brand {
  color: #ffffff;
  letter-spacing: 0.03em;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: height 0.25s ease;
}

.site-navbar.is-compact .navbar-logo {
  height: 42px;
}

.site-navbar .navbar-brand:hover,
.site-navbar .navbar-brand:focus {
  color: #ffffff;
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.14);
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}

.site-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.site-navbar .nav-link {
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  text-shadow: 0 1px 2px rgba(9, 20, 39, 0.45);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, padding 0.25s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #12366a;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.site-navbar .nav-link.active {
  color: #12366a;
  background-color: #ffffff;
}

.site-navbar.is-compact {
  background: linear-gradient(90deg, rgba(36, 79, 143, 0.97), rgba(106, 149, 217, 0.97));
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 18px rgba(12, 25, 49, 0.32);
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

body.no-hero-page {
  padding-top: 82px;
  background: #f3f7fc;
}

.site-navbar.is-compact .nav-link {
  padding: 0.3rem 0.75rem;
  text-shadow: none;
}

.hero-fullscreen {
  min-height: 100vh;
  background-image: url("../img/hero-dormitorio-moderno.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  background: linear-gradient(120deg, rgba(10, 20, 35, 0.55), rgba(47, 111, 87, 0.35));
}

.hero-content {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-logo {
  width: clamp(180px, 24vw, 320px);
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.navbar-brand {
  letter-spacing: 0.03em;
}

.section-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12) !important;
}

.section-image {
  height: 240px;
  object-fit: cover;
}

.catalog-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 42, 80, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(20, 42, 80, 0.18);
}

.catalog-card__image {
  height: 280px;
  object-fit: cover;
  background: #dbe7f8;
}

.product-page-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 42, 80, 0.12);
}

.product-page-card--with-hero {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.product-hero-banner {
  margin: 0;
  line-height: 0;
  background: #e8f0fa;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 42, 80, 0.12);
}

.product-hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: scale-down;
}

.product-page-image {
  height: 280px;
  object-fit: cover;
  background: #dbe7f8;
}

.product-page-image--contain {
  height: auto;
  max-height: 320px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}

.product-page-image--hero {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  background: transparent;
}

.product-hero {
  min-height: 0;
  padding: 0;
  background: #e8f0fa;
}

.product-page-image--tall {
  height: 340px;
}

.product-gallery__detail {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fa;
  padding: 0.75rem;
}

.product-image--secondary,
.product-image--detail {
  max-height: 260px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
}

.product-image--cover-tall {
  object-fit: cover;
  min-height: 280px;
}

@media screen and (min-width: 768px) {
  .product-gallery__detail {
    min-height: 280px;
  }

  .product-page-image--tall + .product-gallery__detail,
  .product-gallery__detail:has(+ .product-page-image--tall) {
    min-height: 340px;
  }
}

.product-extra-fotos img {
  border: 1px solid rgba(36, 79, 143, 0.12);
}

.product-extra-fotos--half {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 768px) {
  .product-extra-fotos--half {
    width: 50%;
    max-width: 50%;
  }
}

.category-hero {
  background: linear-gradient(135deg, #244f8f, #6a95d9);
  color: #fff;
  border-radius: 1.25rem;
}

.product-tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.product-detail {
  max-width: 72rem;
}

.product-detail__crumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.product-detail__crumb a {
  color: #244f8f;
  font-weight: 600;
  text-decoration: none;
}

.product-detail__crumb a:hover {
  text-decoration: underline;
}

.product-detail h1 {
  font-size: clamp(1.75rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.product-detail h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.product-detail h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.product-spec-card {
  background: #fff;
  border: 1px solid rgba(36, 79, 143, 0.14);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  box-shadow: 0 0.35rem 1rem rgba(20, 42, 80, 0.08);
}

.product-spec-card__title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: #12366a;
}

.product-detail .product-spec-card__title {
  margin-top: 0;
}

.product-spec-card ul:last-child,
.product-spec-card ol:last-child,
.product-spec-card p:last-child {
  margin-bottom: 0;
}

.highlight-box {
  background: rgba(234, 179, 8, 0.1);
  border-left: 4px solid #ca8a04;
  padding: 1rem 1.25rem;
  border-radius: 0 0.75rem 0.75rem 0;
  margin: 1.5rem 0 2rem;
}

.highlight-box p {
  margin: 0;
  font-weight: 600;
  color: #12366a;
}

.product-shot {
  margin: 0 auto 2rem;
  max-width: 56rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(36, 79, 143, 0.14);
  background: #fff;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.product-shot figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #5a6578;
  background: #f7f9fc;
}

.product-shot--full {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 768px) {
  .product-shot--full {
    width: 60%;
    max-width: 60%;
  }
}

.product-detail blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 4px solid #6a95d9;
  font-style: italic;
  color: #5a6578;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.media-grid li {
  margin: 0;
}

.media-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(36, 79, 143, 0.12);
}

.media-grid-hint {
  margin: -1rem 0 0.75rem;
  color: #5a6578;
}

.media-grid--lightbox .media-grid__open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 0.5rem;
  font: inherit;
  color: inherit;
}

.media-grid--lightbox .media-grid__open:focus-visible {
  outline: 2px solid #6a95d9;
  outline-offset: 3px;
}

.media-grid--lightbox .media-grid__open img {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.media-grid--lightbox .media-grid__open:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

.price-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(36, 79, 143, 0.14);
  border-radius: 0.75rem;
  background: #fff;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.price-table th,
.price-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(36, 79, 143, 0.1);
}

.price-table th {
  background: #e8f0fa;
  font-weight: 600;
  color: #12366a;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.image-lightbox {
  padding: 0;
  margin: auto;
  border: none;
  max-width: none;
  max-height: none;
  width: min(96vw, 1200px);
  background: transparent;
  overflow: visible;
}

.image-lightbox::backdrop {
  background: rgba(6, 10, 12, 0.92);
}

.image-lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
}

.image-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: #fff;
  color: #12366a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  border-color: #6a95d9;
  color: #244f8f;
}

.image-lightbox__close:focus-visible {
  outline: 2px solid #6a95d9;
  outline-offset: 2px;
}

.image-lightbox__img {
  display: block;
  width: auto;
  max-width: min(96vw, 1200px);
  max-height: min(85vh, 900px);
  height: auto;
  margin: 0 auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.image-lightbox__caption {
  margin: 0;
  max-width: min(96vw, 48rem);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.contact-footer {
  background: linear-gradient(135deg, #244f8f 0%, #6a95d9 45%, #9fc0f0 100%);
}

.contact-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(17, 38, 72, 0.22);
  backdrop-filter: blur(3px);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(17, 38, 72, 0.28);
}

.contact-icon {
  width: 86px;
  height: 86px;
  color: #4d7fcb;
  background-color: rgba(106, 149, 217, 0.14);
  border: 2px solid rgba(106, 149, 217, 0.34);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.contact-icon svg {
  width: 44px;
  height: 44px;
}

.contact-icon--whatsapp {
  color: #ffffff;
  background-color: #25d366;
  border-color: rgba(18, 140, 126, 0.45);
}

.contact-icon--whatsapp svg {
  width: 44px;
  height: 44px;
}

.contact-whatsapp-note {
  color: #5a6578;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-card .contact-whatsapp-btn {
  background-color: #25d366;
  border: 1px solid rgba(18, 140, 126, 0.55);
  color: #fff;
  box-shadow: 0 6px 16px rgba(18, 140, 126, 0.28);
  padding-inline: 1.5rem;
}

.contact-card .contact-whatsapp-btn:hover {
  background-color: #20bd5a;
  border-color: #128c7e;
  color: #fff;
}

.contact-card .contact-whatsapp-btn:focus-visible {
  background-color: #25d366;
  color: #fff;
  outline: 3px solid rgba(37, 211, 102, 0.55);
  outline-offset: 3px;
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.contact-link {
  color: #3669b8;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  color: #234b88;
}

.contact-footer .text-secondary {
  color: rgba(255, 255, 255, 0.92) !important;
}

.btn-success {
  background-color: var(--plekari-success);
  border-color: var(--plekari-success);
}

.btn-success:hover,
.btn-success:focus {
  background-color: #245844;
  border-color: #245844;
}

.btn-outline-success {
  color: var(--plekari-success);
  border-color: var(--plekari-success);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background-color: var(--plekari-success);
  border-color: var(--plekari-success);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  width: min(460px, calc(100vw - 2rem));
  background: linear-gradient(135deg, rgba(21, 51, 96, 0.97), rgba(36, 79, 143, 0.97));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 20px 38px rgba(8, 18, 38, 0.38);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.cookie-banner__content {
  padding: 1rem;
}

.cookie-banner__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.cookie-banner__text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cookie-banner__config {
  margin: 0 0 0.8rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.11);
}

.cookie-banner__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.cookie-banner__check:last-child {
  margin-bottom: 0;
}

.site-footer-corporate {
  border-top: 1px solid rgba(36, 79, 143, 0.16);
  background-color: #f7f9fc;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: 0.65rem 1rem;
}

.footer-links a {
  color: #244f8f;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #12366a;
  text-decoration: underline;
}

@media screen and (max-width: 991.98px) {
  .site-navbar .navbar-nav {
    margin-top: 0.75rem;
    gap: 0.35rem;
    background-color: rgba(10, 32, 67, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.65rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

@media screen and (min-width: 992px) {
  .footer-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.35rem;
  }
}

.back-to-top {
  --back-to-top-size: 3rem;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1180;
  width: var(--back-to-top-size);
  height: var(--back-to-top-size);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--plekari-success), #245844);
  color: #fff;
  box-shadow: 0 8px 22px rgba(12, 25, 49, 0.38);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease,
    box-shadow 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 12px 28px rgba(12, 25, 49, 0.45);
  color: #fff;
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(106, 149, 217, 0.95);
  outline-offset: 3px;
}

@media screen and (max-width: 991.98px) {
  .back-to-top {
    bottom: 5.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
