/* ── OVERRIDES ───────────────────────────────── */
:root { --section-pad: 110px; }

h1 { font-size: clamp(52px, 6vw, 82px); margin-bottom: 28px; }
h2 { font-size: clamp(38px, 4.5vw, 58px); }
h3 { font-size: clamp(28px, 3vw, 38px); }

/* h1 oscuro en el hero */
#hero h1 { color: var(--black); text-shadow: 0 2px 20px rgba(255,255,255,0.55), 0 1px 8px rgba(255,255,255,0.4); }
#hero h1 em { color: var(--gold); }

/* ── HERO ────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #ddeaf5;
}
.hero-img-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero.jpeg');
  background-size: cover;
  background-position: center 40%;
  opacity: 1;
  z-index: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    #ddeaf5 0%,
    #ddeaf5 25%,
    rgba(221,234,245,0.85) 40%,
    rgba(221,234,245,0.4) 60%,
    transparent 75%
  );
  z-index: 1;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,148,90,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,148,90,0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, black 20%, transparent 80%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 48px 100px;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.hero-text { max-width: 560px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.5);
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

.hero-sub {
  font-size: 16px;
  color: var(--gray-dark);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 44px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.5);
}
.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  color: var(--gray-dark);
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(42,42,40,0.4);
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-outline:hover { color: var(--gold); border-color: var(--gold); }

.hero-showroom-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(184,148,90,0.35);
  padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s;
  text-shadow: 0 1px 8px rgba(255,255,255,0.5);
}
.hero-showroom-link:hover { gap: 14px; border-color: var(--gold); }

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.hero-img-placeholder {
  background: linear-gradient(135deg, #E8E4DC 0%, #D4CFBF 100%);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.hero-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.15));
  z-index: 1;
}
.hero-img-placeholder img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-img-label { z-index: 2; }
.hero-img-placeholder:first-child { grid-column: 1 / -1; min-height: 260px; }
.hero-img-label {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

/* ── SECTION HEADER ──────────────────────────── */
.section-header { margin-bottom: 72px; }
.section-desc { max-width: 600px; }

/* ── DIVIDER ─────────────────────────────────── */
.gold-divider { width: 48px; height: 1px; background: var(--gold); margin: 0 auto 28px; }

/* ── BRAZOS (TABS) ───────────────────────────── */
#brazos { background: var(--white); }

.products-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 60px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 16px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gray-mid);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.tab-btn.active { color: var(--black); font-weight: 500; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover { color: var(--black); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── PRODUCT LAYOUT ──────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.product-layout.reverse { direction: rtl; }
.product-layout.reverse > * { direction: ltr; }

.product-img {
  background: linear-gradient(135deg, #EDEBE4 0%, #DEDAD0 100%);
  aspect-ratio: 4/3;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.product-img-placeholder-text {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-mid); opacity: 0.5;
}
.product-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  font-weight: 500;
}

/* ── VERTICALES ──────────────────────────────── */
#verticales { background: var(--off-white); }

.two-col-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
}
.two-col-intro-img {
  background: linear-gradient(135deg, #E0DDD4 0%, #CCC8BB 100%);
  aspect-ratio: 4/5;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.two-col-intro-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.vertical-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.vertical-card {
  background: var(--white);
  padding: 36px 32px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.vertical-card:hover { border-color: var(--gold); box-shadow: 0 8px 40px rgba(0,0,0,0.06); }
.vertical-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300;
  color: rgba(184,148,90,0.2);
  line-height: 1; margin-bottom: 12px;
}
.vertical-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; color: var(--black); margin-bottom: 12px;
}
.vertical-card p { font-size: 14px; color: var(--gray-mid); font-weight: 300; line-height: 1.7; }

.materials-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 300; color: var(--black); margin-bottom: 28px;
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
}
.material-item { background: var(--white); padding: 28px 24px; transition: background 0.2s; }
.material-item:hover { background: var(--gold-pale); }
.material-icon { width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px; }
.material-icon.crystal { background: linear-gradient(135deg, #C8E6F5, #A0C8DF); }
.material-icon.acrylic { background: linear-gradient(135deg, #D4C8A0, #B8A870); }
.material-icon.screen { background: linear-gradient(135deg, #A8B8A0, #7A9070); }
.material-name { font-size: 14px; font-weight: 500; color: var(--black); margin-bottom: 8px; }
.material-desc { font-size: 13px; color: var(--gray-mid); font-weight: 300; line-height: 1.65; }

/* ── PÉRGOLAS ────────────────────────────────── */
#pergolas { background: var(--white); }

.pergola-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-light);
  margin-bottom: 80px;
}
.pergola-card {
  background: var(--white);
  padding: 56px 48px;
  position: relative;
  transition: background 0.3s;
}
.pergola-card:hover { background: var(--off-white); }
.pergola-card-img {
  background: linear-gradient(135deg, #E8E4DC 0%, #D4CFBF 100%);
  aspect-ratio: 16/9;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.pergola-card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ── PRODUCT CARDS GRID ──────────────────────── */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.product-card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 32px 28px 36px; flex: 1; display: flex; flex-direction: column; }
.product-card-tag { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 12px; }
.product-card-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--black); margin-bottom: 12px; line-height: 1.2; }
.product-card-desc { font-size: 13px; color: var(--gray-mid); font-weight: 300; line-height: 1.7; margin-bottom: 24px; flex: 1; }
.product-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(184,148,90,0.3); padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s; align-self: flex-start;
}
.product-card-link:hover { gap: 12px; border-color: var(--gold); }

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.feature-card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.feature-card:hover .feature-card-img img { transform: scale(1.05); }
.feature-card-body { background: var(--white); padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; transition: background 0.25s; }
.feature-card:hover .feature-card-body { background: var(--off-white); }

/* ── TRABAJOS ────────────────────────────────── */
#trabajos { background: var(--off-white); }
.trabajos-placeholder { text-align: center; padding: 80px 0; }
.trabajos-placeholder p { font-size: 15px; color: var(--gray-mid); font-weight: 300; max-width: 440px; margin: 0 auto 28px; line-height: 1.7; }
.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 56px;
}
.trabajos-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 2px; transition: transform 0.4s ease, opacity 0.3s; }
.trabajos-grid img:hover { transform: scale(1.03); opacity: 0.92; }

/* ── CONTACTO ────────────────────────────────── */
#contacto { background: var(--black); }
#contacto .section-eyebrow { color: var(--gold-light); }
#contacto .section-eyebrow::before { background: var(--gold-light); }
#contacto h2 { color: var(--white); }
#contacto .section-desc { color: rgba(255,255,255,0.5); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
}
.contact-form { display: flex; flex-direction: column; }
.contact-form form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 400; }
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--gold); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { color: rgba(255,255,255,0.7); }
.form-field select option { background: var(--gray-dark); color: var(--white); }

.btn-submit {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--gold-light); }

.contact-info { padding-top: 8px; }
.contact-info-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.contact-info-value { font-size: 15px; color: rgba(255,255,255,0.75); font-weight: 300; }
.contact-info-value a { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-info-value a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ──────────────────────────────── */
/* ── SHOWROOM CTA HOME ───────────────────────── */
.showroom-home-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) {
  .showroom-home-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .showroom-home-cta-inner > div:last-child { align-items: center; }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px; }
  nav { padding: 0; }
  .hero-img-bg { background-position: right center; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; padding: 100px 24px 60px; }
  .hero-visual { display: none; }
  .product-layout { grid-template-columns: 1fr; gap: 36px; }
  .product-layout.reverse { direction: ltr; }
  .two-col-intro { grid-template-columns: 1fr; gap: 36px; }
  .two-col-intro-img { aspect-ratio: 16/9; }
  .vertical-cards { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr; }
  .pergola-split { grid-template-columns: 1fr; }
  .pergola-card { padding: 36px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .products-tabs { overflow-x: auto; }
  .tab-btn { padding: 14px 18px; font-size: 12px; }
  .trabajos-grid { grid-template-columns: repeat(2, 1fr); }
  .product-cards-grid { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card-img { aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
  .trabajos-grid { grid-template-columns: 1fr; }
  .product-cards-grid { grid-template-columns: 1fr; }
  .hero-bg {
    background: linear-gradient(
      to right,
      #ddeaf5 0%,
      #ddeaf5 15%,
      rgba(221,234,245,0.75) 35%,
      rgba(221,234,245,0.35) 60%,
      transparent 85%
    );
  }
}

/* ── ACLARAR COLORES HOME ─────────────────────── */
#hero { background: #ddeaf5; }
#brazos { background: var(--off-white) !important; }
#pergolas { background: var(--off-white); }
.product-card { box-shadow: 0 2px 16px rgba(184,148,90,0.1); }
.product-card:hover { box-shadow: 0 12px 48px rgba(184,148,90,0.18); }
.product-card-body { background: var(--white); }
.feature-card-body { background: var(--white); }

