/* MS MULTISERVICES v3 - navbar, 3D carousel, reviews, dialogs, accessibility, legal pages.
   Loaded LAST so it can refine the original styles without rewriting them. */

/* ---------- Accessibility base ---------- */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:8px;left:8px;z-index:100000;background:#0A101D;color:#fff;padding:12px 18px;border-radius:8px;font-weight:700;text-decoration:none;transform:translateY(-200%);transition:transform .2s}
.skip-link:focus{transform:translateY(0);outline:3px solid #E5C888}
:focus-visible{outline:3px solid #0A101D;outline-offset:3px;box-shadow:0 0 0 6px rgba(229,200,136,.9);border-radius:6px}
.navbar :focus-visible,.footer :focus-visible,.cookie-banner :focus-visible,.mobile-bottom-bar :focus-visible,.nav-links :focus-visible{outline-color:#E5C888;box-shadow:0 0 0 5px rgba(10,16,29,.9)}
main:focus{outline:none}
body.no-scroll{overflow:hidden}
html{scroll-padding-top:90px}
a{text-underline-offset:3px}

/* ---------- Contrast fixes (WCAG AA) ----------
   Gold text on light backgrounds: #9A7632 was 4.0:1 -> #7F6023 is >= 5.1:1 on every light background used.
   White text on the gold gradient was 2.5:1 -> dark navy text is >= 4.5:1 across the whole gradient. */
:root{--color-gold-dark:#7F6023;--color-text-muted:#566478;--color-emerald-dark:#065F46}
.btn-gold,.lang-btn.active,.mobile-bottom-btn-call,.mobile-quick-call,.step-num,.cookie-btn-accept,.carousel-arrow:hover{color:#0A101D!important}
.mobile-bottom-btn-wa,.step-num[style*="25D366"]{color:#0A101D!important}
.floating-whatsapp{color:#0A101D}
.btn-outline-gold{color:var(--color-gold-dark)}
.star-rating,.pillar-features-list li svg,.checklist-items li::before{color:#7F6023}
.lang-btn{color:#CBD5E1}
.navbar .lang-btn{color:#334155}
.navbar .lang-btn.active{color:#0A101D}
.navbar .nav-links .lang-btn{color:#E2E8F0}
.navbar .nav-links .lang-btn.active{color:#0A101D}
@media (min-width:992px){.mobile-lang-item{display:none}}
.lang-switcher .lang-btn.active{color:#0A101D}
.cookie-btn-decline{color:#E2E8F0;border-color:#94A3B8}
.security-badge{color:#6EE7B7}
.subtitle-badge{color:#6B4F1B}
.top-bar{color:#CBD5E1}
.footer{color:#CBD5E1}
.footer a{color:#CBD5E1}
.footer a:hover{color:#E5C888}

/* ---------- NAVBAR ---------- */
.navbar{background:rgba(255,255,255,.88);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid rgba(197,160,89,.28);padding:14px 0;transition:padding .3s,box-shadow .3s,background .3s}
.navbar.is-scrolled{padding:7px 0;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(15,23,42,.10)}
.navbar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,#C5A059 20%,#EAD49B 50%,#C5A059 80%,transparent);opacity:.9}
.nav-progress{position:absolute;left:0;top:0;height:3px;width:100%;background:linear-gradient(90deg,#B88E3E,#EAD49B,#C5A059);transform:scaleX(0);transform-origin:left;will-change:transform}
.nav-logo-img{transition:height .3s,transform .3s}
.navbar.is-scrolled .nav-logo-img{height:44px}
@media (min-width:992px){.navbar.is-scrolled .nav-logo-img{height:50px}}
.nav-links{background:#0A101D}
.mobile-lang-item{padding-top:10px}
.nav-link{transition:color .2s}
@media (min-width:992px){
  .nav-links{gap:4px;background:transparent}
  .nav-link{padding:8px 10px;border-radius:999px;font-size:.85rem;color:#1E293B;transition:background .25s,color .25s;white-space:nowrap}
  .nav-link::after{left:10px;right:10px;bottom:3px;width:auto;transform:scaleX(0);transform-origin:center;transition:transform .3s}
  .nav-link:hover{background:rgba(197,160,89,.12);color:#0A101D}
  .nav-link:hover::after,.nav-link[aria-current="true"]::after{width:auto;transform:scaleX(1)}
  .nav-link[aria-current="true"]{color:#0A101D;background:rgba(197,160,89,.16)}
  .desktop-cta{box-shadow:0 8px 22px rgba(197,160,89,.35)}
}
@media (max-width:991px){
  .nav-links{top:var(--nav-h,68px)}
  .nav-link{font-size:1.25rem;padding:14px 4px}
  .nav-link[aria-current="true"]{color:#E5C888}
}
/* animated burger -> X */
.mobile-toggle{border-radius:12px;background:#fff}
.burger{display:flex;flex-direction:column;gap:5px;width:20px}
.burger span{display:block;height:2px;width:100%;background:#0A101D;border-radius:2px;transition:transform .3s,opacity .2s}
.navbar.menu-open .burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.navbar.menu-open .burger span:nth-child(2){opacity:0}
.navbar.menu-open .burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ---------- FAQ as real buttons ---------- */
.faq-header{width:100%;background:none;border:0;text-align:left;font:inherit;color:inherit;cursor:pointer;border-radius:var(--radius-md)}
.faq-icon{transition:transform .25s}
.faq-header[aria-expanded="true"] .faq-icon{transform:rotate(180deg)}

/* ---------- 3D COVERFLOW CAROUSEL ---------- */
.coverflow{position:relative;max-width:1100px;margin:0 auto;outline-offset:6px}
.coverflow[hidden]{display:none}
.coverflow-stage{position:relative;height:430px;perspective:1400px;perspective-origin:50% 45%;overflow:hidden;padding:10px 0}
@media (min-width:768px){.coverflow-stage{height:500px}}
.coverflow-track{list-style:none;position:absolute;inset:0;transform-style:preserve-3d;margin:0;padding:0}
.coverflow-item{position:absolute;top:50%;left:50%;width:min(78vw,300px);height:min(100%,400px);margin:0;transform-style:preserve-3d;
  transform:translate(-50%,-50%) translateX(var(--tx,0)) translateZ(var(--tz,0)) rotateY(var(--ry,0deg)) scale(var(--sc,1));
  opacity:var(--op,1);filter:brightness(var(--br,1));z-index:var(--z,1);
  transition:transform .7s cubic-bezier(.22,1,.36,1),opacity .5s,filter .5s;cursor:pointer;will-change:transform}
@media (min-width:768px){.coverflow-item{width:340px;height:min(100%,450px)}}
.coverflow-item[data-pos="0"]{--tx:0px;--tz:60px;--ry:0deg;--sc:1;--op:1;--br:1;--z:5;cursor:default}
.coverflow-item[data-pos="1"]{--tx:58%;--tz:-120px;--ry:-38deg;--sc:.86;--op:.95;--br:.8;--z:4}
.coverflow-item[data-pos="-1"]{--tx:-58%;--tz:-120px;--ry:38deg;--sc:.86;--op:.95;--br:.8;--z:4}
.coverflow-item[data-pos="2"]{--tx:104%;--tz:-260px;--ry:-46deg;--sc:.72;--op:.55;--br:.6;--z:3}
.coverflow-item[data-pos="-2"]{--tx:-104%;--tz:-260px;--ry:46deg;--sc:.72;--op:.55;--br:.6;--z:3}
.coverflow-item[data-pos="3"],.coverflow-item[data-pos="-3"]{--tx:0px;--tz:-400px;--sc:.5;--op:0;--z:1;pointer-events:none}
@media (max-width:640px){
  .coverflow-item[data-pos="1"]{--tx:46%;--ry:-34deg}
  .coverflow-item[data-pos="-1"]{--tx:-46%;--ry:34deg}
  .coverflow-item[data-pos="2"],.coverflow-item[data-pos="-2"]{--op:0;pointer-events:none}
}
.gallery-fig{position:relative;margin:0;height:100%;border-radius:20px;overflow:hidden;background:#0A101D;box-shadow:0 25px 50px rgba(15,23,42,.28),0 0 0 1px rgba(197,160,89,.4)}
.gallery-fig img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-fig figcaption{position:absolute;left:0;right:0;bottom:0;padding:44px 18px 18px;background:linear-gradient(180deg,rgba(10,16,29,0),rgba(10,16,29,.92));color:#fff;display:flex;flex-direction:column;gap:4px}
.gallery-fig figcaption strong{font-family:var(--font-heading);font-size:1.25rem;line-height:1.2}
.coverflow-item:not(.is-active) .gallery-fig::after,.coverflow-item:not(.is-active) .review-card::after{content:"";position:absolute;inset:0;background:rgba(10,16,29,.12);pointer-events:none;border-radius:inherit}
.coverflow-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px}
.coverflow-dots{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
.coverflow-controls .carousel-arrow{position:static;transform:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%}
.coverflow-controls [hidden]{display:none}
.carousel-dot{width:12px;height:12px;min-width:12px;border-radius:50%;border:2px solid #7F6023;background:transparent;padding:0;cursor:pointer;position:relative}
.carousel-dot::before{content:"";position:absolute;inset:-12px}
.carousel-dot.active{background:#7F6023;width:28px;border-radius:999px}
/* flat fallback: reduced motion or fewer than 3 items */
.coverflow.is-flat .coverflow-stage{perspective:none;height:auto;min-height:0;overflow:visible}
.coverflow.is-flat .coverflow-track{position:static;display:block;transform:none}
.coverflow.is-flat .coverflow-item{position:relative;top:auto;left:auto;transform:none;opacity:1;filter:none;width:min(100%,520px);height:auto;margin:0 auto;transition:none}
.coverflow.is-flat .coverflow-item:not([data-pos="0"]){display:none}
.coverflow.is-flat .gallery-fig{aspect-ratio:4/5;height:auto}
.coverflow.is-flat .review-card{min-height:0}
@media (prefers-reduced-motion:reduce){
  .coverflow-item{transition:none}
  .gold-glow-pulse,.floating-element,.shimmer-text{animation:none!important}
  html{scroll-behavior:auto!important}
  *{transition-duration:.01ms!important}
}

/* ---------- REVIEWS ---------- */
.reviews-summary{text-align:center;font-weight:700;color:#0F172A;margin:-10px 0 18px;min-height:1.4em}
.review-card{position:relative;height:100%;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:30px 26px;background:#fff;border:1px solid rgba(197,160,89,.45);border-radius:20px;box-shadow:0 25px 50px rgba(15,23,42,.16)}
.review-card .quote-mark{font-family:var(--font-heading);font-size:3.6rem;line-height:.6;color:#7F6023;height:26px}
.review-card .star-rating{font-size:1.25rem;letter-spacing:2px}
.review-text{font-size:1rem;line-height:1.65;color:#1E293B;overflow:auto;max-height:200px;overflow-wrap:anywhere}
.review-author{font-size:.9rem;color:#334155}
.review-author strong{color:#0F172A}
.review-meta{color:#566478;font-size:.82rem}
.reviews-empty{max-width:520px;margin:0 auto 20px;text-align:center;padding:26px;background:#fff;border:1px dashed rgba(127,96,35,.55);border-radius:16px;color:#334155}
.reviews-empty[hidden]{display:none}
.reviews-empty-title{font-family:var(--font-heading);font-size:1.5rem;color:#0F172A;font-weight:700;margin-bottom:6px}
.reviews-actions{text-align:center;margin-top:26px}

/* ---------- DIALOGS ---------- */
dialog.site-dialog{border:1px solid rgba(197,160,89,.6);border-radius:20px;padding:26px 22px;width:min(94vw,620px);max-height:90vh;overflow:auto;background:#fff;color:#334155;box-shadow:0 30px 70px rgba(0,0,0,.4)}
dialog.site-dialog-wide{width:min(94vw,820px);padding:0}
dialog.site-dialog::backdrop{background:rgba(10,16,29,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
dialog.site-dialog:not([open]){display:none}
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.dialog-head h2{font-size:1.7rem}
.dialog-close{background:#F1F5F9;border:0;width:44px;height:44px;border-radius:50%;font-size:1.1rem;cursor:pointer;color:#0F172A;flex-shrink:0}
.dialog-close:hover{background:#E2E8F0}
dialog.site-dialog-wide .dialog-close{position:absolute;top:12px;right:12px;z-index:2}
dialog.site-dialog-wide .modal-content-box{position:static;border:0;box-shadow:none;max-height:none;width:auto;max-width:none;padding:30px 22px}
.dialog-intro{font-size:.9rem;margin-bottom:14px}
.dialog-intro a,.form-check a,.reviews-empty a{color:#6B4F1B;text-decoration:underline}
.dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:8px}
.form-msg{min-height:1.3em;margin-bottom:10px;font-size:.92rem;font-weight:600}
.form-msg.is-error{color:#B91C1C}
.form-msg.is-ok{color:#065F46;background:#ECFDF5;border:1px solid #10B981;border-radius:10px;padding:12px}
.field-error{color:#B91C1C;font-size:.85rem;font-weight:600;margin:-6px 0 12px}
.field-error[hidden]{display:none}
.field-hint{font-size:.8rem;color:#566478;display:flex;justify-content:space-between;gap:10px}
[aria-invalid="true"]{border-color:#B91C1C!important;box-shadow:0 0 0 3px rgba(185,28,28,.18)!important}
.form-field label{color:#0F172A}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:3px solid #0A101D;outline-offset:2px}
.form-check{display:flex;gap:12px;align-items:flex-start;margin:6px 0 16px;font-size:.88rem;line-height:1.5;color:#334155}
.form-check input{width:22px;height:22px;min-width:22px;margin-top:2px;accent-color:#7F6023}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.rating-field{border:0;margin:0 0 16px;padding:0}
.rating-field legend{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:#0F172A;font-weight:700;margin-bottom:6px}
.rating-stars{display:flex;gap:4px}
.rating-stars label.star{font-size:2.1rem;line-height:1;cursor:pointer;color:#94A3B8;padding:2px 3px;border-radius:8px}
.rating-stars label.star.on{color:#7F6023}
.rating-stars input:focus-visible + label.star{outline:3px solid #0A101D;outline-offset:2px}

/* ---------- Map consent ---------- */
.map-frame-container{position:relative;min-height:320px}
.map-consent{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;text-align:center;padding:24px;background:linear-gradient(135deg,#FCFAF6,#F1F5F9);color:#334155}
.map-consent[hidden]{display:none}
.map-consent-title{font-family:var(--font-heading);font-size:1.5rem;font-weight:700;color:#0F172A}
.map-frame-container iframe{width:100%;height:100%;min-height:320px;border:0;display:block}

/* ---------- Footer legal links ---------- */
.footer-legal-links{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
.footer-legal-links a,.link-btn{color:#E2E8F0;text-decoration:underline;background:none;border:0;font:inherit;cursor:pointer;padding:6px 0}
.footer-legal-links a:hover,.link-btn:hover{color:#E5C888}
.footer-bottom{display:flex;flex-direction:column;gap:14px}
@media (min-width:992px){.footer-bottom{flex-direction:row;justify-content:space-between;align-items:flex-start}}
.cookie-desc a{color:#E5C888}

/* ---------- Legal pages ---------- */
.legal-header{background:#fff;border-bottom:1px solid rgba(197,160,89,.3);padding:12px 0}
.legal-header .container{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.legal-header img{height:48px;width:auto}
.legal-back{color:#6B4F1B;font-weight:700}
.legal-page{max-width:820px;margin:0 auto;padding:40px 16px 70px}
.legal-page h1{font-size:clamp(2rem,5vw,3rem);margin-bottom:6px}
.legal-page .legal-meta{color:#566478;font-size:.9rem;margin-bottom:28px}
.legal-page h2{font-size:1.55rem;margin:30px 0 8px}
.legal-page h3{font-size:1.2rem;margin:18px 0 6px}
.legal-page p,.legal-page li{font-size:1rem;line-height:1.75;color:#1E293B}
.legal-page p{margin:0 0 12px}
.legal-page ul{margin:0 0 14px 22px}
.legal-page a{color:#6B4F1B;text-decoration:underline}
.legal-page table{width:100%;border-collapse:collapse;margin:12px 0 18px;font-size:.92rem}
.legal-page th,.legal-page td{border:1px solid #CBD5E1;padding:10px;text-align:left;vertical-align:top}
.legal-page th{background:#F8FAFC;color:#0F172A}
.table-scroll{overflow-x:auto}
.legal-note{background:#FFFBEB;border:1px solid #D97706;border-radius:12px;padding:14px 16px;margin:0 0 18px;color:#78350F}
body.legal{padding-bottom:0}
@media (max-width:991px){body.legal{padding-bottom:0}}

/* ---------- Contrast: text over photos and gradient headline ---------- */
.gallery-fig figcaption{padding-top:64px;background:linear-gradient(180deg,rgba(10,16,29,0) 0,rgba(10,16,29,.86) 40%,rgba(10,16,29,.96) 100%)}
.real-result-tag{color:#E5C888}
/* Gradient headline text: the original light stop (#EAD49B) was ~1.5:1 on white. Same golden look, all stops >= 4:1. */
.text-gold-gradient{background:linear-gradient(135deg,#7F6023 0%,#9A7632 45%,#8A6A28 70%,#6B4F1B 100%);-webkit-background-clip:text;background-clip:text}

/* ---------- HOLIDAY POPUP ---------- */
dialog.holiday-dialog {
  border: none;
  border-radius: 24px;
  padding: 0;
  width: min(92vw, 560px);
  background: #FFFFFF;
  color: #334155;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin: auto; /* Centers the dialog native element perfectly */
}

dialog.holiday-dialog::backdrop {
  background: rgba(10, 16, 29, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.holiday-content {
  padding: 50px 30px;
  text-align: center;
  position: relative;
  background: linear-gradient(160deg, #FFFFFF 0%, #FDFAF4 60%, #F5E6CD 100%);
}

.holiday-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l4.5 12.5h13l-10.5 7.5 4 12.5-11-8-11 8 4-12.5-10.5-7.5h13z' fill='%23C5A059' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.holiday-icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #DFB96E 0%, #C5A059 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 12px 24px rgba(197, 160, 89, 0.35);
  font-size: 3rem;
  line-height: 1;
  border: 4px solid #FFFFFF;
  z-index: 2;
}

.holiday-badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.15);
  color: #8C6A29;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.holiday-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #0A101D;
  margin-bottom: 16px;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.holiday-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.holiday-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #0A101D;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.holiday-close-btn:hover {
  background: #FFFFFF;
  transform: scale(1.08);
}

dialog.holiday-dialog[open] {
  animation: holidayPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes holidayPop {
  0% { opacity: 0; transform: scale(0.85) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 639px) {
  .holiday-content {
    padding: 40px 20px;
  }
  .holiday-title {
    font-size: 1.8rem;
  }
  .holiday-desc {
    font-size: 0.95rem;
  }
}
