/* ==========================================================================
   WOKINGHAM & BERKS - EBANISTERÍA TRADICIONAL & MUEBLES DE ESTILO
   Paleta: British Racing Green (#1B3B2B), Nogal (#2C1E17), Latón (#C5A059), Hueso (#FBF9F5)
   Cumplimiento: Google Ads Argentina v4.3, Zero Horizontal Overflow, Zero Template Footprint
   ========================================================================== */

:root {
  --wb-primary: #1B3B2B;
  --wb-primary-dark: #0F2218;
  --wb-primary-light: #2D5841;
  --wb-gold: #C5A059;
  --wb-gold-light: #DFBA73;
  --wb-gold-dark: #9C7730;
  --wb-wood: #2C1E17;
  --wb-bg-light: #FBF9F5;
  --wb-bg-cream: #F4EFE6;
  --wb-border: #E6DFD3;
  --wb-text-dark: #1E1A17;
  --wb-text-muted: #6B625B;
  --wb-shadow: 0 10px 25px -5px rgba(27, 59, 43, 0.08), 0 8px 10px -6px rgba(27, 59, 43, 0.05);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--wb-text-dark);
  background-color: var(--wb-bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--wb-wood);
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: var(--wb-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--wb-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Top Announcement Bar --- */
.site-top-bar {
  background-color: var(--wb-primary-dark);
  color: #D1D5DB;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.site-top-bar a {
  color: #E5E7EB;
}

.site-top-bar a:hover {
  color: var(--wb-gold-light);
}

/* --- Main Navigation Header --- */
.site-navbar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--wb-border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-brand img {
  border-radius: 8px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Georgia", serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--wb-primary);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-title span {
  color: var(--wb-gold);
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--wb-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wb-wood);
  padding: 6px 4px;
  position: relative;
}

.nav-links a.active, .nav-links a:hover {
  color: var(--wb-primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--wb-gold);
}

.btn-wb-gold {
  background: linear-gradient(135deg, var(--wb-gold) 0%, var(--wb-gold-dark) 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 6px;
  border: 1px solid var(--wb-gold);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wb-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
  color: #FFFFFF !important;
}

.btn-wb-outline {
  background: transparent;
  color: var(--wb-primary) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1.5px solid var(--wb-primary);
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wb-outline:hover {
  background: var(--wb-primary);
  color: #FFFFFF !important;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--wb-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--wb-primary);
}

/* --- Mobile Navigation Drawer --- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1099;
  transition: right 0.3s ease;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--wb-wood);
  margin-bottom: 20px;
}

.mobile-nav-drawer a {
  padding: 12px 0;
  border-bottom: 1px solid var(--wb-border);
  font-weight: 600;
  color: var(--wb-wood);
}

/* --- Breadcrumb Navigation --- */
.breadcrumb-wb {
  background-color: var(--wb-bg-cream);
  padding: 12px 0;
  border-bottom: 1px solid var(--wb-border);
}

.breadcrumb-wb .breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.breadcrumb-wb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding-right: 8px;
  color: var(--wb-text-muted);
}

.breadcrumb-wb .breadcrumb-item.active {
  color: var(--wb-text-muted);
}

/* --- Hero Section --- */
.hero-wb {
  background: linear-gradient(135deg, #1B3B2B 0%, #0D2017 100%);
  color: #FFFFFF;
  padding: 70px 0 80px 0;
  position: relative;
}

.hero-wb h1 {
  color: #FFFFFF;
  font-size: 2.7rem;
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-wb h1 span {
  color: var(--wb-gold-light);
}

.hero-wb p.lead {
  font-size: 1.15rem;
  color: #E2E8F0;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-media img {
  border-radius: 12px;
  border: 2px solid rgba(223, 186, 115, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* --- Ticker Bar (STRICTLY PURE WHITE BACKGROUND #FFFFFF) --- */
.info-ticker-bar {
  background-color: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  padding: 16px 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-badge {
  background-color: #ECFDF5;
  color: var(--wb-primary);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(27, 59, 43, 0.15);
}

.ticker-text {
  font-size: 0.88rem;
  color: #4B5563;
  line-height: 1.35;
}

.ticker-text strong {
  display: block;
  color: var(--wb-text-dark);
  font-size: 0.94rem;
}

/* --- Sections --- */
.section-wb {
  padding: 70px 0;
}

.section-bg-cream {
  background-color: var(--wb-bg-cream);
}

.section-title-wrap {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  background-color: #FEF3C7;
  color: var(--wb-gold-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.15rem;
  color: var(--wb-wood);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--wb-text-muted);
  line-height: 1.6;
}

/* --- Elastic Cards (flexbox, aspect-ratio: 16/10) --- */
.card-wb {
  background-color: #FFFFFF;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--wb-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-wb:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -6px rgba(27, 59, 43, 0.12);
}

.card-wb-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
}

.card-wb h3, .card-wb h4 {
  font-size: 1.3rem;
  color: var(--wb-wood);
  margin-bottom: 10px;
}

.card-wb p {
  color: var(--wb-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--wb-primary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: var(--wb-gold);
}

/* --- Interactive Archetype 3/4 Calculator --- */
.calc-box-wb {
  background: #FFFFFF;
  border: 1px solid var(--wb-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--wb-shadow);
}

.form-label-wb {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--wb-wood);
  margin-bottom: 6px;
}

.form-control-wb, .form-select-wb {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--wb-border);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--wb-text-dark);
  background-color: #FFFFFF;
  transition: border-color 0.2s ease;
}

.form-control-wb:focus, .form-select-wb:focus {
  outline: none;
  border-color: var(--wb-primary);
}

.calc-result-panel {
  background: linear-gradient(145deg, #1B3B2B 0%, #0F2218 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1.5px solid var(--wb-gold);
}

.res-metric {
  margin-bottom: 18px;
}

.res-label {
  font-size: 0.8rem;
  color: var(--wb-gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.res-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.res-val-big {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--wb-gold-light);
  font-family: "Georgia", serif;
  margin-top: 4px;
}

.calc-disclaimer {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.45;
  margin-top: 20px;
}

/* --- Counter Stepper Group --- */
.counter-group {
  display: flex;
  align-items: center;
}

.counter-btn {
  background-color: var(--wb-bg-cream);
  border: 1.5px solid var(--wb-border);
  padding: 8px 14px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--wb-wood);
  font-weight: bold;
}

.counter-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.counter-btn:last-child {
  border-radius: 0 6px 6px 0;
}

.counter-group input {
  border-radius: 0 !important;
  border-left: none;
  border-right: none;
}

/* --- Footer --- */
.site-footer {
  background-color: #12100E;
  color: #A8A29E;
  padding: 60px 0 25px 0;
  font-size: 0.9rem;
  border-top: 3px solid var(--wb-gold);
}

.site-footer h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 18px;
  font-family: "Georgia", serif;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul li a {
  color: #D6D3D1;
  font-size: 0.88rem;
}

.site-footer ul li a:hover {
  color: var(--wb-gold-light);
}

.data-fiscal-thumb {
  border-radius: 4px;
  background-color: #FFFFFF;
  padding: 2px;
}

.footer-bottom-bar {
  border-top: 1px solid #292524;
  margin-top: 40px;
  padding-top: 25px;
  font-size: 0.8rem;
  color: #78716C;
}

/* --- Botón de Arrepentimiento Modal (Res. 424/2020) --- */
.modal-wb-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 16, 14, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-wb-backdrop.active {
  display: flex;
}

.modal-wb-card {
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 580px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #78716C;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991px) {
  .nav-links, .nav-cta-wrap {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .hero-wb h1 {
    font-size: 2.1rem;
  }
  .hero-media {
    margin-top: 30px;
  }
}
