/* RC Muebles — shared styles */
:root {
  --gold: #B8894A;
  --gold-light: #D4AF77;
  --gold-dark: #8F6A35;
  --walnut: #5A3418;
  --walnut-deep: #3D2210;
  --cream: #FBF7F1;
  --cream-soft: #F3EBE0;
  --white: #FFFFFF;
  --ink: #1F140C;
  --muted: #6B5645;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(90, 52, 24, 0.12);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  border: 1.5px solid transparent; transition: 0.2s ease; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  background: transparent; color: var(--cream); border-color: var(--gold-light);
}
.btn-outline:hover { background: rgba(184,137,74,0.18); }
.btn-outline-dark {
  background: transparent; color: var(--walnut); border-color: var(--gold);
}
.btn-outline-dark:hover { background: rgba(184,137,74,0.12); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { filter: brightness(0.95); }
.section { padding: 4.5rem 0; }
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem); color: var(--walnut);
  text-align: center; margin-bottom: 0.4rem;
}
.section-sub {
  text-align: center; color: var(--muted); max-width: 40rem;
  margin: 0 auto 2.4rem; font-size: 0.98rem;
}
.gold-rule {
  width: 72px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem auto 0;
}
.pill {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark); background: rgba(184,137,74,0.14); padding: 0.35rem 0.7rem; border-radius: 999px;
  margin-bottom: 0.8rem;
}
.placeholder-tag {
  display: inline-block; margin-top: 0.4rem; font-size: 0.72rem; color: var(--gold-dark);
  background: #fff3df; border: 1px dashed var(--gold); padding: 0.2rem 0.5rem; border-radius: 6px;
}

/* Nav */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,241,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184,137,74,0.25);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { line-height: 1.1; }
.brand-text strong {
  display: block; font-family: "Cormorant Garamond", serif; font-size: 1.35rem;
  color: var(--walnut); letter-spacing: 0.08em;
}
.brand-text span { font-size: 0.7rem; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; }
.nav {
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-size: 0.88rem; font-weight: 500;
  align-items: center;
}
.nav a { color: var(--walnut); opacity: 0.85; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gold-dark); opacity: 1; }
.nav a.active { color: var(--gold-dark); opacity: 1; border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--gold);
  color: var(--walnut); border-radius: 10px; width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 760px);
  display: grid; align-items: end;
  color: var(--cream);
  background: var(--walnut-deep) center/cover no-repeat;
  background-image: linear-gradient(105deg, rgba(31,20,12,0.88) 18%, rgba(31,20,12,0.55) 55%, rgba(31,20,12,0.35) 100%), url("../img/hero.jpg");
}
.hero-content { padding: 5rem 0 4rem; max-width: 640px; }
.hero-logo {
  width: min(220px, 55vw); height: auto; margin-bottom: 1.4rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
  background: rgba(255,255,255,0.92); border-radius: 18px; padding: 0.6rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05;
  color: var(--cream); margin-bottom: 0.7rem;
}
.hero h1 span { color: var(--gold-light); }
.hero .slogan {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem); color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-style: italic; letter-spacing: 0.04em; margin-bottom: 0.55rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.footer-slogan {
  display: block; margin-top: 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
  font-size: 0.95rem; color: var(--gold-light); letter-spacing: 0.03em;
}
.brand-text .footer-slogan { text-transform: none; letter-spacing: 0.03em; }
.hero p { color: #e8dccb; max-width: 34rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.page-hero {
  background: linear-gradient(120deg, var(--walnut-deep), #6b3f1f 55%, var(--gold-dark));
  color: var(--cream); padding: 3.2rem 0 2.6rem;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--cream); }
.page-hero p { color: #e8d8c4; max-width: 36rem; margin-top: 0.6rem; }

/* Cards grids */
.cats, .teaser-grid, .promo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.cat-card, .teaser-card, .promo-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(184,137,74,0.18);
  transition: transform 0.2s ease;
}
.cat-card:hover, .teaser-card:hover { transform: translateY(-4px); }
.cat-card img, .teaser-card img, .promo-card img {
  width: 100%; height: 170px; object-fit: cover; background: var(--cream-soft);
}

/* Promo banners: show full image (no cover crop) */
.promo-card img,
.teaser-card img[src*="promo"] {
  object-fit: contain;
  background: var(--cream-soft);
}

/* Booth photos: keep key content (top of piece) in frame */
.cat-card img[src*="producto-booth"],
.teaser-card img[src*="producto-booth"],
.promo-card img[src*="producto-booth"],
.g-card img[src*="producto-booth"],
.g-card img[src*="hero"] {
  object-position: center 30%;
}
.cat-card .body, .teaser-card .body, .promo-card .body { padding: 1rem 1.1rem 1.2rem; }
.cat-card h3, .teaser-card h3, .promo-card h3 { font-size: 1.45rem; color: var(--walnut); }
.cat-card p, .teaser-card p, .promo-card p { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }

/* Nosotros */
.nosotros-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
.nosotros-card {
  background: var(--white); border-radius: var(--radius); padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow); border: 1px solid rgba(184,137,74,0.2);
  position: relative; overflow: hidden;
}
.nosotros-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.nosotros-card .icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 0.9rem;
  background: rgba(184,137,74,0.14); color: var(--gold-dark);
  border: 1px solid rgba(184,137,74,0.35);
}
.nosotros-card .icon svg { width: 22px; height: 22px; }
.nosotros-card h3 { font-size: 1.85rem; color: var(--walnut); margin-bottom: 0.75rem; }
.nosotros-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem;
}
.g-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(184,137,74,0.16);
  grid-column: span 4; cursor: zoom-in;
}
.g-card.featured { grid-column: span 8; }
.g-card img { width: 100%; height: 240px; object-fit: cover; background: #eee; }
.g-card.featured img { height: min(420px, 52vw); object-fit: contain; background: #f7f7f7; padding: 0.5rem; }
.g-card .body { padding: 1rem 1.15rem 1.25rem; }
.g-card h3 { font-size: 1.35rem; color: var(--walnut); }
.g-card p { font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }
.g-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(20,12,6,0.88); padding: 1.2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative; max-width: min(960px, 100%); max-height: 90vh;
  background: var(--cream); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.lightbox-inner img {
  max-height: min(72vh, 720px); width: 100%; object-fit: contain; background: #111;
}
.lightbox-caption { padding: 0.9rem 1.1rem; color: var(--walnut); font-size: 0.95rem; }
.lightbox-close {
  position: absolute; top: 0.55rem; right: 0.55rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.92); color: var(--walnut);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.4rem;
}
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); border: 1px solid rgba(184,137,74,0.18);
}
.contact-card h3 { font-size: 1.8rem; color: var(--walnut); margin-bottom: 1rem; }
.contact-row { margin-bottom: 1rem; }
.contact-row .label {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 0.2rem;
}
.contact-row .value { color: var(--ink); font-weight: 500; }
.map-frame {
  border: 0; width: 100%; min-height: 360px; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--cream-soft);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

/* Footer */
footer {
  background: var(--walnut-deep); color: #e8d8c4; padding: 2.4rem 0 1.6rem;
  margin-top: 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center;
}
footer .brand img { width: 64px; height: 64px; background: #fff; border-radius: 12px; padding: 0.25rem; }
footer .copy { font-size: 0.85rem; color: #c9b49a; }
footer .copy a { color: var(--gold-light); }
.note-bar {
  background: #fff8ec; border-top: 1px solid rgba(184,137,74,0.35);
  color: var(--muted); font-size: 0.78rem; padding: 0.7rem 0; text-align: center;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.05); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.wa-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

@media (max-width: 860px) {
  .g-card, .g-card.featured { grid-column: span 12; }
  .g-card.featured img { height: auto; max-height: 360px; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(251,247,241,0.98); border-bottom: 1px solid rgba(184,137,74,0.25);
    padding: 0.6rem 1rem 1rem; box-shadow: 0 12px 24px rgba(90,52,24,0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0.2rem; border-bottom: 1px solid rgba(184,137,74,0.12); }
  .nav a.active { border-bottom-color: var(--gold); }
  .topbar-inner { position: relative; }
}
