/* ==========================================================
   Prestige Window Treatments - capa premium (v2)
   Se carga después de improvements.css.
   ========================================================== */

:root {
  --pwt-navy: #14283a;
  --pwt-navy-2: #1d3a52;
  --pwt-gold: #b8934a;
  --pwt-gold-soft: #e7d6b0;
  --pwt-cream: #f7f4ef;
  --pwt-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --pwt-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pwt-ease: cubic-bezier(.2,.7,.2,1);
}

body { font-family: var(--pwt-sans); background: #fff; }
h1, h2, h3, h4 { font-family: var(--pwt-serif); font-weight: 600; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }

/* ---------- Brand accents ---------- */
.pwt-kicker { color: var(--pwt-gold); letter-spacing: .22em; }
.pwt-kicker::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--pwt-gold); vertical-align: middle; margin-right: 10px;
}
.pwt-btn-primary { background: var(--pwt-navy); color: #fff !important; border-color: var(--pwt-navy); }
.pwt-btn-primary:hover { background: var(--pwt-gold); border-color: var(--pwt-gold); }
.pwt-btn-outline { border-color: rgba(255,255,255,.85); }
.pwt-btn-dark { border-color: var(--pwt-navy); color: var(--pwt-navy) !important; }
.pwt-btn-dark:hover { background: var(--pwt-navy); color: #fff !important; }
.pwt-btn-gold { background: var(--pwt-gold); color: #fff !important; border-color: var(--pwt-gold); }
.pwt-btn-gold:hover { background: #a07f3b; border-color: #a07f3b; }
.pwt-btn { box-shadow: 0 6px 18px rgba(20,40,58,.12); }
.pwt-btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--pwt-gold); outline-offset: 3px;
}

/* ---------- Header: crisp logo, refined bar ---------- */
header.site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #ebe6dc;
  transition: box-shadow .3s var(--pwt-ease), padding .3s var(--pwt-ease);
}
header.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(20,40,58,.12); }
.site-header .header-inner { padding-top: 8px; padding-bottom: 8px; min-height: 76px; }
.site-header .brand { display: block; line-height: 0; }
.site-header .brand img {
  height: 46px; width: auto; max-width: 230px;
  image-rendering: -webkit-optimize-contrast;
  transition: height .3s var(--pwt-ease);
}
.site-header.is-scrolled .brand img { height: 40px; }
.site-header .main-nav ul li a { color: var(--pwt-navy); letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; font-weight: 600; }
.site-header .main-nav ul li a { position: relative; }
@media (min-width: 992px) {
  .site-header .main-nav ul li a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px;
    background: var(--pwt-gold); transform: scaleX(0); transition: transform .3s var(--pwt-ease);
  }
  .site-header .main-nav ul li a:hover::after, .site-header .main-nav ul li a.active::after { transform: scaleX(1); }
  .site-header .main-nav ul li a:hover, .site-header .main-nav ul li a.active { color: var(--pwt-navy); }
  .site-header .brand img { height: 56px; }
  .site-header.is-scrolled .brand img { height: 46px; }
  .site-header .btn-quote { background: var(--pwt-navy); border-color: var(--pwt-navy); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
}
@media (max-width: 991.98px) {
  .site-header .header-inner { min-height: 66px; }
  .site-header .brand img { height: 40px; }
  .site-header .nav-toggle { width: 44px; height: 44px; }
  .site-header .main-nav.is-open ul li a { font-size: 14px; padding: 14px 4px; }
}
/* logo sits on dark surfaces too (footer keeps a white plate) */
.pwt-footer .foot-logo { height: 62px; padding: 10px 16px; background: #fff; border-radius: 10px; }

/* ---------- Hero: cinematic slideshow + Ken Burns ---------- */
.hero { min-height: 88vh; min-height: 88svh; background: var(--pwt-navy); }
.hero .hero-stack { position: absolute; inset: 0; z-index: 0; }
.hero .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  animation: pwtKenBurns 36s linear infinite;
}
.hero .hero-slide:nth-child(1) { animation-delay: 0s; }
.hero .hero-slide:nth-child(2) { animation-delay: 4s; }
.hero .hero-slide:nth-child(3) { animation-delay: 8s; }
.hero .hero-slide:nth-child(4) { animation-delay: 12s; }
.hero .hero-slide:nth-child(5) { animation-delay: 16s; }
.hero .hero-slide:nth-child(6) { animation-delay: 20s; }
.hero .hero-slide:nth-child(7) { animation-delay: 24s; }
.hero .hero-slide:nth-child(8) { animation-delay: 28s; }
.hero .hero-slide:nth-child(9) { animation-delay: 32s; }
@keyframes pwtKenBurns {
  0%   { opacity: 0; transform: scale(1.12) translate3d(0,0,0); }
  4%   { opacity: 1; }
  12%  { opacity: 1; }
  16%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.02) translate3d(-1.5%,-1%,0); }
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10,22,33,.88) 0%, rgba(10,22,33,.55) 50%, rgba(10,22,33,.25) 100%),
    linear-gradient(0deg, rgba(10,22,33,.55) 0%, rgba(10,22,33,0) 40%);
}
.hero-content { padding-top: clamp(90px, 14vh, 150px); padding-bottom: clamp(70px, 10vh, 110px); }
.hero .eyebrow { color: var(--pwt-gold-soft); font-weight: 600; }
.hero h1 { font-weight: 500; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { font-style: italic; color: var(--pwt-gold-soft); font-weight: 500; }
.hero .lead { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: #e6edf3; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  color: #fff; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .85;
  text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span.line { width: 1px; height: 36px; background: linear-gradient(#fff, rgba(255,255,255,0)); animation: pwtDrip 2.2s var(--pwt-ease) infinite; }
@keyframes pwtDrip { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- Trust bar as animated metrics ---------- */
.trust-bar { background: var(--pwt-cream); border-bottom: 1px solid #ebe6dc; }
.trust-bar .trust-num { font-family: var(--pwt-serif); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--pwt-navy); font-weight: 600; }
.trust-bar .trust-label { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: #7a6a4f; }
.trust-bar .trust-item + .trust-item { border-left: 1px solid #e3dccd; }
@media (max-width: 767.98px) { .trust-bar .trust-item:nth-child(odd) { border-left: 0; } }

/* ---------- Product cards: premium hover ---------- */
.product-card { border-radius: 16px; box-shadow: 0 14px 40px rgba(20,40,58,.10); }
.product-card .img-wrap { overflow: hidden; }
.product-card img { transition: transform 1.2s var(--pwt-ease); }
.product-card:hover img { transform: scale(1.06); }
.product-card h3 { font-family: var(--pwt-serif); font-size: 1.6rem; }
.product-card .more { color: var(--pwt-gold); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }

/* ---------- Steps ---------- */
.step { border-top: 1px solid var(--pwt-gold); }
.step .num { background: var(--pwt-navy); font-family: var(--pwt-serif); font-size: 18px; }
.step h3 { font-family: var(--pwt-serif); font-size: 1.5rem; }

/* ---------- Gallery: ken-burns on hover + caption ---------- */
.gallery-grid { gap: 12px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 10px; }
.gallery-grid figure img { transition: transform 1.4s var(--pwt-ease); }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px;
  background: linear-gradient(0deg, rgba(10,22,33,.7), rgba(10,22,33,0));
  color: #fff; font-size: 13px; letter-spacing: .04em; transform: translateY(6px); opacity: 0;
  transition: all .4s var(--pwt-ease);
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- Quote band (replaces plain final CTA look) ---------- */
.final-cta { background: linear-gradient(135deg, var(--pwt-navy) 0%, var(--pwt-navy-2) 100%); position: relative; overflow: hidden; }
.final-cta::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(184,147,74,.35); pointer-events: none;
}
.final-cta h2 { font-family: var(--pwt-serif); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); font-weight: 500; }
.final-cta p { color: #cfdbe6; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--pwt-ease), transform .9s var(--pwt-ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 0 0); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Forms: premium ---------- */
.formContacto { background: linear-gradient(160deg, var(--pwt-navy) 0%, var(--pwt-navy-2) 100%) !important; box-shadow: 0 24px 60px rgba(20,40,58,.25); }
.formContacto .form-control { background: #fff; }
.formContacto .btn-contacto { background: var(--pwt-gold); }
.formContacto .btn-contacto:hover { background: #a07f3b; }

/* ---------- Footer ---------- */
footer.pwt-footer { background: #0e1b27; }
.pwt-footer h4 { font-family: var(--pwt-serif); font-size: 1.25rem; text-transform: none; letter-spacing: .02em; color: var(--pwt-gold-soft); }

/* ---------- Mobile polish ---------- */
@media (max-width: 767.98px) {
  .hero { min-height: 82vh; }
  .hero-content { padding-top: 96px; }
  .pwt-section { padding: 52px 0; }
  .final-cta::after { display: none; }
  .pwt-btn { padding: 13px 20px; }
  .hero-actions .pwt-btn { width: 100%; text-align: center; }
  .pwt-section .container, .page-intro .container { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 380px) { .site-header .brand img { height: 36px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero .hero-slide:first-child { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 6px 20px rgba(20,40,58,.06); border: 1px solid #ece7dc; }
.faq-item summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; color: var(--pwt-navy); list-style: none; position: relative; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--pwt-gold); transition: transform .3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 18px; margin: 0; color: var(--pwt-muted); }

/* ---------- Hero contrast fixes ---------- */
.hero .pwt-btn-primary { background: var(--pwt-gold); border-color: var(--pwt-gold); }
.hero .pwt-btn-primary:hover { background: #a07f3b; border-color: #a07f3b; }
.hero .hero-slide { animation-fill-mode: both; }
