/*
 * inner.css — shared stylesheet for /materiales/* and /novedades/* pages
 * Self-contained: no dependency on the main site CSS files.
 */

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

:root {
  --ib-bg:           #0C0B09;
  --ib-surface:      #141210;
  --ib-cream:        #F2EDE4;
  --ib-accent:       #C8A96E;
  --ib-text:         #F0EBE2;
  --ib-muted:        #8A8178;
  --ib-text-dark:    #1A1714;
  --ib-dark-muted:   #6B6358;
  --ib-border:       rgba(255,255,255,0.07);
  --ib-border-cream: rgba(0,0,0,0.10);
  --font-h: 'Archivo', sans-serif;
  --font-b: 'Inter', sans-serif;
  --ease-gold: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--ib-bg);
  color: var(--ib-text);
  font-family: var(--font-b);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── HEADER ── */
.ib-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,11,9,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ib-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 2rem;
}

.ib-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ib-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ib-muted);
  transition: color 180ms ease;
}
.ib-back:hover { color: var(--ib-text); }
.ib-back svg { flex-shrink: 0; }

.ib-logo { height: 28px; width: auto; }

.ib-section-label {
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ib-muted);
}

.ib-cotizar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ib-accent);
  border: 1px solid var(--ib-accent);
  padding: 0.5rem 1.25rem;
  transition: background 180ms ease, color 180ms ease;
}
.ib-cotizar:hover {
  background: var(--ib-accent);
  color: var(--ib-bg);
}

/* ── HERO ── */
.ib-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 760px;
  overflow: hidden;
}

.ib-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ib-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,11,9,0.85) 0%, rgba(12,11,9,0.25) 55%, transparent 100%);
}

.ib-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2.5rem;
  z-index: 2;
}

.ib-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(240,235,226,0.55);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ib-breadcrumb a:hover { color: var(--ib-accent); }
.ib-breadcrumb-sep { color: rgba(240,235,226,0.3); }

.ib-hero-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ib-text);
}

/* ── LEDE ── */
.ib-lede {
  background: var(--ib-bg);
  padding: 3rem 2.5rem;
}
.ib-lede-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ib-lede p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
  color: rgba(240,235,226,0.9);
  font-weight: 300;
}

/* ── SPECS ── */
.ib-specs {
  background: var(--ib-cream);
  padding: 3.5rem 2.5rem;
}
.ib-specs-inner {
  max-width: 900px;
  margin: 0 auto;
}
.ib-section-tag {
  display: block;
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ib-accent);
  margin-bottom: 0.75rem;
}
.ib-h2-dark {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--ib-text-dark);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.ib-h2-light {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--ib-text);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.ib-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ib-border-cream);
  border-radius: 4px;
  overflow: hidden;
}
.ib-spec-row {
  display: contents;
}
.ib-spec-row dt,
.ib-spec-row dd {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--ib-border-cream);
  font-size: 0.9rem;
}
.ib-spec-row:last-child dt,
.ib-spec-row:last-child dd {
  border-bottom: none;
}
.ib-spec-row dt {
  font-family: var(--font-h);
  font-weight: 600;
  color: var(--ib-text-dark);
  border-right: 1px solid var(--ib-border-cream);
  background: rgba(0,0,0,0.04);
}
.ib-spec-row dd {
  color: #4a4540;
  font-weight: 300;
}

/* ── APLICACIONES ── */
.ib-aplicaciones {
  background: var(--ib-bg);
  padding: 3.5rem 2.5rem;
}
.ib-aplicaciones-inner {
  max-width: 960px;
  margin: 0 auto;
}
.ib-apl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.ib-apl-card {
  background: var(--ib-surface);
  border: 1px solid var(--ib-border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 250ms ease;
}
.ib-apl-card:hover { border-color: rgba(200,169,110,0.2); }
.ib-apl-num {
  display: block;
  font-family: var(--font-h);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ib-accent);
  margin-bottom: 0.75rem;
}
.ib-apl-card h3 {
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ib-text);
  margin-bottom: 0.5rem;
}
.ib-apl-card p {
  font-size: 0.875rem;
  color: var(--ib-muted);
  line-height: 1.65;
}

/* ── INSTALACION ── */
.ib-instalacion {
  background: var(--ib-cream);
  padding: 3.5rem 2.5rem;
}
.ib-instalacion-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ib-instalacion p {
  font-size: 0.95rem;
  color: var(--ib-text-dark);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.ib-instalacion ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.ib-instalacion li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ib-dark-muted);
}
.ib-instalacion li::before {
  content: '—';
  color: var(--ib-accent);
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── FAQ ── */
.ib-faq {
  background: var(--ib-bg);
  padding: 3.5rem 2.5rem;
}
.ib-faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ib-faq details {
  border-bottom: 1px solid var(--ib-border);
}
.ib-faq details:first-of-type {
  border-top: 1px solid var(--ib-border);
}
.ib-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ib-text);
  transition: color 150ms ease;
  user-select: none;
}
.ib-faq summary::-webkit-details-marker { display: none; }
.ib-faq summary::marker { display: none; }
.ib-faq summary:hover { color: var(--ib-accent); }
.ib-faq summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ib-accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 250ms var(--ease-gold);
}
.ib-faq details[open] > summary::after {
  transform: rotate(45deg);
}
.ib-faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ib-muted);
}

/* ── RELATED MATERIALS ── */
.ib-related {
  background: var(--ib-surface);
  padding: 3.5rem 2.5rem;
  border-top: 1px solid var(--ib-border);
}
.ib-related-inner {
  max-width: 960px;
  margin: 0 auto;
}
.ib-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.ib-related-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: var(--ib-bg);
}
.ib-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-gold);
}
@media (hover: hover) {
  .ib-related-card:hover img { transform: scale(1.04); }
  .ib-related-card:hover .ib-related-label { opacity: 1; }
}
.ib-related-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(12,11,9,0.85) 0%, transparent 60%);
  opacity: 0.82;
  transition: opacity 300ms ease;
}
.ib-related-label span {
  font-family: var(--font-h);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ib-text);
}

/* ── CTA BLOCK ── */
.ib-cta {
  background: var(--ib-bg);
  padding: 3.5rem 2.5rem;
  border-top: 1px solid var(--ib-border);
}
.ib-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.ib-cta h2 {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.ib-cta p {
  font-size: 0.95rem;
  color: var(--ib-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.ib-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ib-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #25D366;
  color: #fff;
  font-family: var(--font-h);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: filter 150ms ease;
}
.ib-btn-wa:hover { filter: brightness(1.1); }
.ib-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.28);
  color: var(--ib-text);
  font-family: var(--font-h);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 150ms ease;
}
.ib-btn-ghost:hover { border-color: rgba(255,255,255,0.65); }

/* ── FOOTER ── */
.ib-footer {
  background: #080706;
  border-top: 1px solid var(--ib-border);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ib-footer-logo { height: 22px; opacity: 0.65; }
.ib-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ib-footer-links a {
  font-size: 0.8rem;
  color: var(--ib-muted);
  transition: color 150ms ease;
}
.ib-footer-links a:hover { color: var(--ib-text); }
.ib-footer-copy {
  font-size: 0.75rem;
  color: var(--ib-muted);
  opacity: 0.7;
}

/* ── ARTICLE HEADER ── */
.ib-article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2rem;
}
.ib-article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.ib-article-date {
  font-size: 0.78rem;
  font-family: var(--font-h);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ib-accent);
}
.ib-article-tag {
  font-size: 0.73rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--ib-border);
  color: var(--ib-muted);
  border-radius: 100px;
}
.ib-article-title {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.ib-article-lede {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(240,235,226,0.8);
  font-weight: 300;
}

/* ── ARTICLE BODY ── */
.ib-article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2.5rem 4rem;
}
.ib-article-body h2 {
  font-family: var(--font-h);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--ib-text);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  padding-top: 1rem;
  border-top: 1px solid var(--ib-border);
}
.ib-article-body h3 {
  font-family: var(--font-h);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ib-accent);
  margin: 1.5rem 0 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ib-article-body p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(240,235,226,0.82);
  margin-bottom: 1.25rem;
}
.ib-article-body ul,
.ib-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.ib-article-body li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(240,235,226,0.82);
  margin-bottom: 0.4rem;
}
.ib-article-body li strong,
.ib-article-body p strong {
  font-weight: 600;
  color: var(--ib-text);
}

/* Article comparison table */
.ib-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--ib-border);
}
.ib-compare-table th {
  background: var(--ib-surface);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ib-accent);
  border-bottom: 1px solid var(--ib-border);
}
.ib-compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ib-border);
  color: rgba(240,235,226,0.82);
  vertical-align: top;
}
.ib-compare-table tr:last-child td { border-bottom: none; }
.ib-compare-table .ib-winner {
  color: var(--ib-accent);
  font-weight: 600;
}

/* Article callout */
.ib-callout {
  background: var(--ib-surface);
  border-left: 3px solid var(--ib-accent);
  padding: 1.375rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}
.ib-callout p {
  margin-bottom: 0.875rem;
  color: rgba(240,235,226,0.9);
}
.ib-callout p:last-child { margin-bottom: 0; }
.ib-callout a {
  color: var(--ib-accent);
  font-weight: 600;
}

/* ── NOVEDADES INDEX ── */
.ib-index-hero {
  background: var(--ib-bg);
  padding: 3.5rem 2.5rem 2.5rem;
  border-bottom: 1px solid var(--ib-border);
}
.ib-index-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.ib-index-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.ib-index-hero p {
  font-size: 0.95rem;
  color: var(--ib-muted);
}

.ib-novedades-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.ib-article-card {
  display: flex;
  flex-direction: column;
  background: var(--ib-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ib-border);
  transition: border-color 250ms ease, transform 250ms var(--ease-gold);
}
@media (hover: hover) {
  .ib-article-card:hover {
    border-color: rgba(200,169,110,0.25);
    transform: translateY(-3px);
  }
}
.ib-article-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.ib-article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-gold);
}
@media (hover: hover) {
  .ib-article-card:hover .ib-article-card-img img { transform: scale(1.04); }
}
.ib-article-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ib-card-date {
  font-size: 0.73rem;
  font-family: var(--font-h);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ib-accent);
  margin-bottom: 0.5rem;
}
.ib-card-title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ib-text);
  line-height: 1.4;
  margin-bottom: 0.625rem;
}
.ib-card-excerpt {
  font-size: 0.875rem;
  color: var(--ib-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.ib-card-link {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ib-accent);
  transition: opacity 150ms ease;
}
.ib-card-link:hover { opacity: 0.7; }

/* ── RESPONSIVE ── */

/* ── GALLERY SECTION (brochure / project photos) ── */
.ib-gallery {
  padding: 5rem 2rem;
  background: var(--ib-bg);
}
.ib-gallery .ib-section-label {
  color: var(--ib-muted);
}
.ib-gallery .ib-section-title {
  color: var(--ib-cream);
}
.ib-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
}
.ib-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}
.ib-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-gold), filter 0.6s var(--ease-gold);
  will-change: transform;
}
.ib-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,11,9,0.45) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ib-gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}
.ib-gallery-item:hover::after {
  opacity: 1;
}
.ib-gallery-item--tall {
  grid-row: span 2;
}
.ib-gallery-item--wide {
  grid-column: span 2;
}
.ib-gallery-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  right: 1rem;
  font-family: var(--font-b);
  font-size: 0.75rem;
  color: rgba(242,237,228,0.85);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.ib-gallery-item:hover .ib-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .ib-header { padding: 0.75rem 1.25rem; }
  .ib-section-label { display: none; }
  .ib-hero { height: 55vh; min-height: 380px; }
  .ib-hero-content { padding: 2rem 1.5rem; }

  .ib-lede,
  .ib-specs,
  .ib-aplicaciones,
  .ib-instalacion,
  .ib-faq,
  .ib-related,
  .ib-cta,
  .ib-index-hero,
  .ib-novedades-grid { padding-left: 1.25rem; padding-right: 1.25rem; }

  .ib-specs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ib-spec-row dt {
    border-right: none;
    border-bottom: none;
    padding-bottom: 0.25rem;
  }
  .ib-spec-row dd {
    border-bottom: 1px solid var(--ib-border-cream);
    padding-top: 0.25rem;
  }
  .ib-spec-row:last-child dd { border-bottom: none; }

  .ib-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ib-footer { flex-direction: column; text-align: center; gap: 1.25rem; }

  .ib-article-header,
  .ib-article-body { padding-left: 1.25rem; padding-right: 1.25rem; }

  .ib-compare-table { font-size: 0.8rem; }
  .ib-compare-table th,
  .ib-compare-table td { padding: 0.625rem 0.75rem; }

  .ib-gallery { padding: 3rem 1.25rem; }
  .ib-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .ib-gallery-item--tall { grid-row: span 1; }
  .ib-gallery-item--wide { grid-column: span 1; }
}

@media (max-width: 480px) {
  .ib-related-grid { grid-template-columns: minmax(0, 1fr); }
  .ib-novedades-grid { grid-template-columns: minmax(0, 1fr); }
  .ib-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
}


