/* ================================================
   Sensacioones — mejoras y microinteracciones
   ================================================ */

/* ---------- Global polish ---------- */
html,
body {
  scroll-behavior: smooth;
}

a,
button,
.btn-line,
.menu-item,
.de-review-app,
.social-icons a,
header,
#mainmenu > li > a,
figure,
img.img-fluid {
  transition: all 0.35s ease;
}

/* Custom scrollbar — mismo criterio que reseñas (.d-testi): carril #fff, pulgar gris suave */
html {
  color-scheme: light; /* con body.dark-scheme evita gutter/scrollbar del SO en tono oscuro */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.28) #ffffff;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  border: 2px solid #ffffff;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.45);
}

/* ---------- WOW reveal states ---------- */
.wow {
  visibility: visible;
}
.wow:not(.animated) {
  opacity: 0;
}
.wow.animated {
  opacity: 1;
}
.animated.fadeInUp,
.animated.fadeInDown,
.animated.fadeInLeft,
.animated.fadeInRight,
.animated.fadeIn,
.animated.zoomIn {
  animation-duration: 0.95s;
  animation-fill-mode: both;
}

/* ---------- Preloader ---------- */
#preloader {
  transition: opacity 0.6s ease;
}

/* ---------- Header ---------- */
header {
  transition: background 0.45s ease, box-shadow 0.45s ease,
    backdrop-filter 0.45s ease, height 0.45s ease;
}
header.header_center:not(.smaller) #mainmenu {
  transition: padding-top 0.45s ease;
}
header.header_center .logo_pos img {
  transition: height 0.45s ease, margin 0.45s ease, transform 0.45s ease;
}
header.smaller {
  transition: background 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
}

#mainmenu > li > a {
  position: relative;
}
#mainmenu > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--accent, #c9a96b);
  transition: width 0.35s ease, left 0.35s ease;
}
#mainmenu > li > a:hover::after,
#mainmenu > li.active > a::after {
  width: 60%;
  left: 20%;
}

/* Mobile menu button polish */
#menu-btn {
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn-line {
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 1.5px;
  transition: color 0.35s ease, border-color 0.35s ease,
    background-color 0.35s ease, transform 0.35s ease;
}
.btn-line::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.45s ease;
  z-index: -1;
}
.btn-line:hover {
  transform: translateY(-2px);
}
.btn-line:hover::before {
  width: 100%;
}

/* ---------- Section accents ---------- */
h2 {
  position: relative;
}
.uptitle {
  position: relative;
  display: inline-block;
}
.uptitle::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  margin-right: 10px;
  opacity: 0.6;
  vertical-align: middle;
}
.uptitle::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  margin-left: 10px;
  opacity: 0.6;
  vertical-align: middle;
}

/* ---------- Feature cards (home icons) ---------- */
.jarallax .jarallax-img {
  border-radius: 12px;
}
.memorable-cards .p-4 {
  text-align: center;
}
.memorable-cards .col-lg-3 .p-4 > img.memorable-card-icon {
  display: block;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 3;
}
.memorable-cards .col-lg-3 .p-4 > img.jarallax-img {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Equal height: row stretches to tallest card; link sits at bottom */
.memorable-cards {
  align-items: stretch;
}
.memorable-cards > [class*="col-"] {
  display: flex;
}
.memorable-cards > [class*="col-"] > .p-4.jarallax {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.memorable-cards .col-lg-3 .p-4 > a.btn-line {
  margin-top: auto;
}

section .row.g-4.text-center .col-lg-3 .p-4,
.memorable-cards .p-4 {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.5s ease, box-shadow 0.5s ease,
    border-color 0.4s ease;
}
section .row.g-4.text-center .col-lg-3 .p-4::before,
.memorable-cards .col-lg-3 .p-4::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}
section .row.g-4.text-center .col-lg-3 .p-4 > *:not(img.jarallax-img),
.memorable-cards .col-lg-3 .p-4 > *:not(img.jarallax-img) {
  position: relative;
  z-index: 2;
}
section .row.g-4.text-center .col-lg-3:hover .p-4,
.memorable-cards .col-lg-3:hover .p-4 {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
section .row.g-4.text-center .col-lg-3:hover .p-4::before,
.memorable-cards .col-lg-3:hover .p-4::before {
  opacity: 0.75;
}

/* ---------- Review cards ---------- */
.de-review-app {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.de-review-app::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
}
.de-review-app:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ---------- Menu items (drinks, foods, menu page) ---------- */
.menu-item {
  border-radius: 8px;
  transition: background-color 0.3s ease, padding-left 0.3s ease,
    padding-right 0.3s ease;
}
.menu-item:not(.thead) {
  cursor: default;
}
.menu-item:not(.thead):hover {
  padding-left: 14px;
  padding-right: 14px;
  background-color: rgba(255, 255, 255, 0.04);
}
.menu-item .c1 span {
  display: block;
  opacity: 0.7;
  font-size: 13px;
  margin-top: 3px;
}

/* ---------- Chef cards ---------- */
.col-lg-3 .position-relative.overflow-hidden.mb20 {
  border-radius: 16px;
  isolation: isolate;
}
.col-lg-3 .position-relative.overflow-hidden.mb20 img {
  transition: transform 1.1s ease, filter 0.6s ease;
  filter: saturate(0.92);
}
.col-lg-3 .position-relative.overflow-hidden.mb20::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0.55;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}
.col-lg-3:hover .position-relative.overflow-hidden.mb20 img {
  transform: scale(1.08);
  filter: saturate(1.15) brightness(1.05);
}
.col-lg-3:hover .position-relative.overflow-hidden.mb20::after {
  opacity: 0.85;
}

/* ---------- Social icons ---------- */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin: 0 4px;
  color: inherit;
}
.social-icons a:hover {
  background: #c9a96b;
  border-color: #c9a96b;
  color: #111 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(201, 169, 107, 0.35);
}
.social-icons.s2 a {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

/* ---------- Subheader ---------- */
#subheader {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
}
#subheader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}
#subheader .container {
  position: relative;
  z-index: 2;
}
#subheader h2 {
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -1px;
  margin: 6px 0 14px;
}
#subheader .breadcrumb {
  justify-content: center;
  background: transparent;
  padding: 0;
  margin: 0;
}
#subheader .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(255, 255, 255, 0.55);
  padding: 0 10px;
}
#subheader .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}
#subheader .breadcrumb-item.active {
  color: #c9a96b;
}

/* ---------- Gallery ---------- */
#gallery .item,
.zoom-gallery .item figure {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
#gallery .item img,
.zoom-gallery figure img {
  width: 100%;
  display: block;
  transition: transform 1.1s ease, filter 0.5s ease;
}
#gallery .item:hover img,
.zoom-gallery figure:hover img {
  transform: scale(1.1);
  filter: brightness(0.85);
}
.zoom-gallery figure .d-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.zoom-gallery figure:hover .d-hover {
  opacity: 1;
}
.zoom-gallery figure .d-cap {
  display: inline-block;
  padding: 10px 26px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease,
    background-color 0.35s ease;
}
.zoom-gallery figure:hover .d-cap {
  transform: translateY(0);
  opacity: 1;
}
.zoom-gallery figure .d-cap:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Blog cards ---------- */
.bloglist article,
.blog-item,
.blog-list .blog-item {
  transition: transform 0.4s ease;
}
.post-image,
.blog-item .post-image {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}
.post-image img,
.blog-item .post-image img {
  width: 100%;
  display: block;
  transition: transform 1s ease;
}
.bloglist article:hover .post-image img,
.blog-item:hover .post-image img {
  transform: scale(1.07);
}

/* ---------- Forms ---------- */
.form-control,
input[type="text"]:not(.de-datepicker),
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  transition: border-color 0.3s ease, background 0.3s ease,
    box-shadow 0.3s ease !important;
}
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #c9a96b !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 0 0 3px rgba(201, 169, 107, 0.15) !important;
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- CTA ---------- */
#cta {
  background: linear-gradient(
    135deg,
    rgba(201, 169, 107, 0.15) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 !important;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 0 !important;
  background: rgba(0, 0, 0, 0.4);
}

/* ---------- Misc utility overrides ---------- */
.spacer-single {
  height: 30px;
}

/* Blog card gold hover for read-more */
.blog-item a.btn-line,
.bloglist a.btn-line {
  margin-top: 10px;
}

/* Smooth image swap on hover everywhere */
figure img {
  backface-visibility: hidden;
}

/* Fix potential visibility after wow animated */
.animated.wow {
  visibility: visible !important;
}

/* Menu page tabs hover */
.de_tab .de_nav li {
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}
.de_tab .de_nav li:hover {
  transform: translateY(-2px);
}
