/* Deco Rock Website 2.0 — SEO / conversion / AI-readable components */

.dr-cta-bar {
  background: linear-gradient(180deg, #3a3a3a 0%, #2c2c2c 100%);
  color: #f5f2eb;
  padding: 1.25rem 1rem;
  margin: 1.5rem 0 0;
  border-top: 3px solid #8a7355;
}

.dr-cta-bar .wrapper {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dr-cta-bar p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 36rem;
  color: #e8e4dc;
}

.dr-cta-bar strong {
  color: #fff;
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.dr-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dr-cta-actions a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dr-cta-actions a.dr-btn-primary {
  background: #8a7355;
  color: #fff;
}

.dr-cta-actions a.dr-btn-primary:hover {
  background: #9d8563;
}

.dr-cta-actions a.dr-btn-secondary {
  background: transparent;
  color: #f5f2eb;
  border-color: #a89880;
}

.dr-cta-actions a.dr-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dr-ai-summary {
  max-width: 1060px;
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  background: #f7f4ef;
  border-left: 4px solid #8a7355;
  color: #333;
}

.dr-ai-summary h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #2c2c2c;
}

.dr-ai-summary p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.dr-faq {
  max-width: 1060px;
  margin: 1.5rem auto;
  padding: 0 1rem 1.5rem;
}

.dr-faq h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: #2c2c2c;
}

.dr-faq details {
  border-bottom: 1px solid #ddd6cb;
  padding: 0.65rem 0;
}

.dr-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #333;
  list-style: none;
}

.dr-faq summary::-webkit-details-marker {
  display: none;
}

.dr-faq summary::before {
  content: "+ ";
  color: #8a7355;
  font-weight: 700;
}

.dr-faq details[open] summary::before {
  content: "– ";
}

.dr-faq p {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
}

.dr-home-authority {
  position: relative;
  z-index: 5;
  background: rgba(28, 28, 28, 0.88);
  color: #f5f2eb;
  padding: 1.75rem 1rem;
  border-top: 3px solid #8a7355;
}

.dr-home-authority .wrapper {
  max-width: 1060px;
  margin: 0 auto;
}

.dr-home-authority h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.dr-home-authority .lede {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #ddd6cb;
}

.dr-home-authority .dr-home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.dr-home-authority .dr-home-links a {
  color: #e8dcc8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
}

.dr-home-authority .dr-home-links a:hover {
  color: #fff;
}

.dr-related-links {
  max-width: 1060px;
  margin: 1rem auto 0;
  padding: 0 1rem 1rem;
}

.dr-related-links h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #2c2c2c;
}

.dr-related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dr-related-links a {
  color: #6b5538;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
}

.dr-related-links a:hover {
  color: #3a2f20;
}

@media (max-width: 700px) {
  .dr-cta-bar .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}

.dr-lang-switch {
  font-weight: 600;
  color: #8a7355 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dr-content-page section {
  margin: 1.5rem 0;
}

.dr-content-page h2 {
  font-size: 1.25rem;
  color: #2c2c2c;
  margin: 0 0 0.75rem;
}

.dr-content-page header h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #2c2c2c;
  margin: 0 0 0.75rem;
}

/* English site + knowledge pages: readable light layout (Spanish theme is black) */
body.dr-content-site {
  background: #f4f1ea;
  color: #2c2c2c;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dr-content-site .head {
  float: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #111;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  min-height: 0;
  width: 100%;
}

body.dr-content-site .head .wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  float: none;
  width: auto;
}

body.dr-content-site .logo {
  float: none;
  width: auto;
  padding: 0;
  flex-shrink: 0;
}

body.dr-content-site .top-nav {
  float: none;
  width: auto;
  flex: 1;
}

body.dr-content-site .top-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.15rem 1.15rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

body.dr-content-site .top-nav ul li {
  float: none;
  display: block;
  width: auto;
  text-align: left;
  font-style: normal;
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.dr-content-site .top-nav ul li a {
  display: inline-block;
  float: none;
  width: auto;
  color: #fff;
  padding: 0.35rem 0;
}

body.dr-content-site .top-nav ul li a .sub,
body.dr-content-site span.sub {
  float: none;
  width: auto;
  display: inline;
}

body.dr-content-site .top-nav ul li a:hover,
body.dr-content-site .top-nav ul li a.on {
  background: none;
  color: #c4a574;
}

body.dr-content-site .dr-lang-switch {
  color: #c4a574 !important;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

body.dr-content-site .dr-page-hero {
  height: 240px;
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid #8a7355;
}

body.dr-content-site .dr-content-page {
  flex: 1;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  background: #fff;
  color: #2c2c2c;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.dr-content-site .dr-content-page p,
body.dr-content-site .dr-content-page li {
  color: #333;
  line-height: 1.65;
}

body.dr-content-site .inner-bread {
  color: #6b6358;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

body.dr-content-site .inner-bread a {
  color: #8a7355;
}

body.dr-content-site footer.fix,
body.dr-content-site footer.dr-site-footer {
  position: relative;
  float: none;
  left: auto;
  bottom: auto;
  width: 100%;
  background: #1a1a1a;
  color: #d8d2c8;
  padding: 1.25rem 1rem;
  margin: 0;
}

body.dr-content-site footer a {
  color: #c4a574;
}

body.dr-content-site .dr-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

body.dr-content-site a.dr-card {
  display: block;
  background: #f7f4ef;
  border: 1px solid #e4ddd2;
  text-decoration: none;
  color: #2c2c2c;
}

body.dr-content-site a.dr-card:hover {
  border-color: #8a7355;
}

body.dr-content-site a.dr-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

body.dr-content-site a.dr-card span {
  display: block;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  body.dr-content-site .head .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  body.dr-content-site .top-nav ul {
    justify-content: flex-start;
  }

  body.dr-content-site .dr-page-hero {
    height: 160px;
  }
}

/* ===== Icon-font fallback (icomoon .woff/.ttf/.eot asset is missing) =====
   Only .icon-list (hamburger, 436 uses) and .icon-facebook (184 uses) are
   actually used in markup. Render both with fonts/assets that exist so no
   custom font file is required. Loaded after style.css, so these win. */
.icon-list:before{
  content:"\2630";                 /* ☰ trigram — present in system fonts */
  font-family:"Segoe UI Symbol","Apple Color Emoji","Noto Sans Symbols",Arial,sans-serif;
  speak:none;font-style:normal;font-weight:400;line-height:1;
  -webkit-font-smoothing:antialiased;
}
/* .icon-facebook spans also carry .icon-list; defined after so it wins */
.icon-facebook{
  display:inline-block;width:1.3em;height:1.3em;line-height:1.3em;
  border-radius:4px;background:#1877F2;color:#fff;text-align:center;
  vertical-align:middle;
}
.icon-facebook:before{
  content:"f";
  font-family:Georgia,"Times New Roman",serif;font-weight:700;
}

/* ===== Home authority polish ===== */
/* Chip-style the quick links (was plain underlined text) */
.dr-home-authority .dr-home-links a{
  display:inline-block;
  padding:0.34rem 0.8rem;
  border:1px solid rgba(232,220,200,0.38);
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  text-decoration:none;
  line-height:1.2;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.dr-home-authority .dr-home-links a:hover{
  background:#8a7355;
  border-color:#8a7355;
  color:#fff;
}
/* Clear the fixed footer so the CTA row never sits behind "Sobre Deco Rock" */
body.dr-home-page .dr-home-authority{
  margin-top:64vh;               /* push the band down so only the H1 shows over the image; scroll for intro + links. KNOB: smaller vh = H1 higher/more visible, bigger = lower. */
  padding-bottom:4rem;
}
body.dr-home-page .dr-home-authority h1{
  font-size:1.45rem;             /* smaller so the headline fits one line on desktop */
  line-height:1.25;
}
body.dr-home-page footer.fix{
  z-index:6;                     /* MENU / Catalog / social bar stays fixed at the bottom */
  background:rgba(20,20,20,0.82);
}
body.dr-home-page footer.fix .wrapper{
  padding:6px 10px;
}

/* Homepage: slimmer fixed bottom bar (MENU + social) */
body.dr-home-page footer.fix{ padding:3px 10px; }
body.dr-home-page footer.fix .wrapper{ padding:2px 10px; }
body.dr-home-page footer.fix .toggleMenu{ padding:4px 14px; }
body.dr-home-page footer.fix img{ height:22px; }
body.dr-home-page footer.fix{ background:#141414; }
body.dr-home-page footer.fix .toggleMenu{ background:transparent; }
body.dr-home-page footer.fix .wrapper{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
body.dr-home-page footer.fix .toggleMenu{ margin:0; }
body.dr-home-page footer.fix .wrapper > div{ display:flex; align-items:center; gap:6px; white-space:nowrap; flex-shrink:0; }

/* ============================================================
   Site-wide fixed bottom bar (same as homepage) — all Spanish
   product/category pages. Excludes English/knowledge (dr-content-site).
   ============================================================ */
body:not(.dr-content-site) footer.fix{ padding:3px 10px; background:#141414; }
body:not(.dr-content-site) footer.fix .wrapper{ padding:2px 10px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
body:not(.dr-content-site) footer.fix .toggleMenu{ padding:4px 14px; background:transparent; margin:0; }
body:not(.dr-content-site) footer.fix img{ height:22px; }
body:not(.dr-content-site) footer.fix .wrapper > div{ display:flex; align-items:center; gap:6px; white-space:nowrap; flex-shrink:0; }

/* ============================================================
   Spanish dark-theme pages: make bottom sections readable + add
   scroll clearance above the fixed footer bar. Excludes the light
   English/knowledge (dr-content-site) pages and the homepage hero.
   ============================================================ */
body:not(.dr-content-site) .dr-faq h2,
body:not(.dr-content-site) .dr-faq summary,
body:not(.dr-content-site) .dr-faq p{ color:#f0ece3; }
body:not(.dr-content-site) .dr-related-links h2{ color:#f0ece3; }
body:not(.dr-content-site) .dr-related-links a{ color:#e8dcc8; }
/* bottom breathing room so the last CTA bar clears the fixed MENU bar */
body:not(.dr-content-site):not(.dr-home-page){ padding-bottom:4.5rem; }

/* ============================================================
   Product pages: keep image+details in the 2-column top, but send
   the gallery ("details-masonry") + all sections below it to full
   content width. + dark readable panels for the bottom text sections.
   ============================================================ */
.row-fluid .span6 .details-masonry{
  width:205.4%;
  margin-left:-105.7%;
  box-sizing:border-box;
}
@media (max-width:767px){            /* columns stack on mobile -> no breakout */
  .row-fluid .span6 .details-masonry{ width:100%; margin-left:0; }
}
/* mobile: keep embedded maps/videos from forcing horizontal scroll */
iframe{ max-width:100%; }
/* colour/type thumbnail grid used on guide/landing pages */
.dr-color-grid{ display:flex; flex-wrap:wrap; gap:16px; margin:1rem 0 1.75rem; }
.dr-color-grid figure{ width:200px; margin:0; }
.dr-color-grid a{ display:block; }
.dr-color-grid img{ width:200px; height:150px; object-fit:cover; border-radius:6px; display:block; border:0; }
.dr-color-grid figcaption{ margin-top:.45rem; font-size:.95rem; line-height:1.35; }
.dr-color-grid figcaption strong{ display:block; }
@media (max-width:480px){ .dr-color-grid figure{ width:46%; } .dr-color-grid img{ width:100%; } }
/* contain the floated gallery figures so following text can't overlap them,
   and leave a clear gap before the "Más colores" / FAQ sections */
.my-gallery{ overflow:hidden; margin-bottom:2rem; }
.my-gallery::after{ content:""; display:block; clear:both; }
body:not(.dr-content-site) .dr-related-links,
body:not(.dr-content-site) .dr-faq{
  background:rgba(28,28,28,0.92);
  border:1px solid rgba(138,115,85,0.4);
  border-radius:8px;
  padding:1rem 1.25rem;
  margin:1rem auto;
}
body:not(.dr-content-site) .dr-faq h2,
body:not(.dr-content-site) .dr-faq summary,
body:not(.dr-content-site) .dr-faq p,
body:not(.dr-content-site) .dr-related-links h2{ color:#ffffff; }
body:not(.dr-content-site) .dr-related-links a{ color:#e8c9a0; }
