/* ==========================================================================
   DEMO 1: ROBLE REAL - CARPINTERÍA & COCINAS A MEDIDA
   Aesthetic: Warm Walnut & Dark Earth Tones, High-End Craftsmanship
   ========================================================================== */

:root {
  --wood-dark: #100d0a;
  --wood-surface: #1a1410;
  --wood-card: rgba(32, 24, 18, 0.9);
  --wood-accent: #d97706;
  --wood-accent-light: #f59e0b;
  --wood-amber: #b45309;
  
  --text-main: #fef3c7;
  --text-sub: #d4beaa;
  --text-dim: #8c735a;
  
  --border-wood: rgba(217, 119, 6, 0.25);
  --border-focus: rgba(245, 158, 11, 0.55);

  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--wood-dark);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 80px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Demo Return Bar */
.demo-banner-top {
  background: #070910;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
}

.demo-banner-top a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
}

/* Header */
.demo-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-wood);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand span {
  color: var(--wood-accent-light);
}

.header-contact {
  font-size: 0.88rem;
  color: var(--text-sub);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-wood);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.lang-opt {
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  border-radius: 9999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-opt.active {
  background: var(--wood-accent);
  color: #100d0a;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.lang-opt:not(.active):hover {
  color: var(--text-main);
}

@media (max-width: 640px) {
  .header-contact {
    display: none;
  }
}

/* Hero with Photo Background */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 3rem;
  padding: 4.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(rgba(16, 13, 10, 0.84), rgba(16, 13, 10, 0.94)), url('../../assets/images/demos/carpinteria-hero.jpg') center/cover no-repeat;
  border: 1px solid var(--border-wood);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
}

.hero p {
  color: var(--text-sub);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.badge-wood {
  display: inline-block;
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid var(--wood-accent);
  color: var(--wood-accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

/* Filter Nav */
.catalog-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cat-btn {
  background: var(--wood-surface);
  border: 1px solid var(--border-wood);
  color: var(--text-sub);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
}

.cat-btn.active, .cat-btn:hover {
  background: var(--wood-accent);
  color: #100d0a;
  border-color: var(--wood-accent-light);
  font-weight: 700;
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.8rem;
  margin-bottom: 4rem;
}

.catalog-card {
  background: var(--wood-card);
  border: 1px solid var(--border-wood);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s transform, 0.3s border-color;
}

.catalog-card:hover {
  transform: translateY(-5px);
  border-color: var(--wood-accent-light);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.catalog-card:hover .card-photo {
  transform: scale(1.06);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(16, 13, 10, 0.85);
  border: 1px solid var(--wood-accent);
  color: var(--wood-accent-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.card-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 1.3rem;
  line-height: 1.55;
  flex-grow: 1;
}

.card-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--wood-accent);
  color: var(--wood-accent-light);
  padding: 0.65rem 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s;
}

.card-btn:hover {
  background: var(--wood-accent);
  color: #100d0a;
}

/* Qualifier Form Box */
.qualifier-section {
  background: var(--wood-surface);
  border: 1px solid var(--border-wood);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.qualifier-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.qualifier-sub {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #100c08;
  border: 1px solid var(--border-wood);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--wood-accent-light);
}

.btn-submit-wood {
  width: 100%;
  background: #25D366;
  color: #052112;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: 0.2s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-submit-wood:hover {
  background: #2fe073;
  transform: translateY(-2px);
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #052112;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .hero { padding: 3rem 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .demo-banner-top { flex-direction: column; gap: 0.5rem; text-align: center; }
}
