/* ==========================================================================
   ARTE SÓLIDO · MICROCEMENTO & DISEÑO S.L.
   Diseño web editorial fiel al catálogo oficial de Microcemento y Cal
   ========================================================================== */

:root {
  /* Paleta extraída directamente del catálogo original */
  --bg-cream: #F5F0EC;
  --bg-cream-alt: #EDE6DF;
  --bg-stone-warm: #B0B2A7;
  --bg-sand-header: #C6BC94;
  --bg-petrol-deep: #091B25;
  --bg-petrol-mid: #102D3D;
  --bg-petrol-soft: #1B4254;
  --bg-slate-card: #2A3439;

  /* Textos */
  --text-dark: #1A2830;
  --text-body: #2C383E;
  --text-muted: #5A656A;
  --text-light: #F5F0EC;
  --text-light-muted: rgba(245, 240, 236, 0.78);

  /* Acentos minerales (bronce / terracota / cal) */
  --accent-bronze: #9E6E4E;
  --accent-terracotta: #B57552;
  --accent-line: rgba(26, 40, 48, 0.14);
  --accent-line-light: rgba(245, 240, 236, 0.2);

  /* Los 12 tonos oficiales de la Carta de Color (Pág. 18) */
  --tone-blanco-calido: #EDEEE6;
  --tone-marfil: #DED3C1;
  --tone-arena-clara: #CBBA9C;
  --tone-beige: #B6A48E;
  --tone-piedra: #9B9589;
  --tone-gris-suave: #B5B5B5;
  --tone-arcilla: #B88F79;
  --tone-terracota: #AB6E51;
  --tone-marron: #72655C;
  --tone-verde-grisaceo: #95968E;
  --tone-azul-grisaceo: #788C93;
  --tone-antracita: #3F464C;

  /* Tipografías del catálogo */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Espaciado y contenedor */
  --container-max: 1240px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 36px;
  --radius-editorial: 72px;
  --shadow-soft: 0 18px 45px rgba(9, 27, 37, 0.08);
  --shadow-card: 0 12px 32px rgba(9, 27, 37, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cream);
  color: var(--text-body);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.25rem);
}

/* ==========================================================================
   LOGOTIPO EDITORIAL ARTE SÓLIDO (Fiel a la cabecera del catálogo)
   ========================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  user-select: none;
}

.brand-logo .arte {
  font-weight: 400;
  letter-spacing: 0.14em;
  margin-right: 0.28em;
}

.brand-logo .solido {
  font-weight: 800;
  letter-spacing: 0.03em;
  position: relative;
}

/* ==========================================================================
   NAVEGACIÓN SUPERIOR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(16, 45, 61, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 240, 236, 0.12);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 240, 236, 0.82);
  position: relative;
  padding: 0.35rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-terracotta);
  transition: width 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

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

.btn-catalog-viewer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(245, 240, 236, 0.12);
  border: 1px solid rgba(245, 240, 236, 0.28);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-catalog-viewer:hover {
  background: rgba(245, 240, 236, 0.22);
  transform: translateY(-1px);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 1.15rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-terracotta);
  color: #fff;
  transition: all 0.25s ease;
}

.btn-header-cta:hover {
  background: #c7815b;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.4rem;
}

/* ==========================================================================
   PORTADA / HERO (Fiel a la Página 01 del Catálogo)
   ========================================================================== */
.hero-cover {
  position: relative;
  min-height: 100vh;
  padding-top: 76px;
  background: linear-gradient(
    175deg,
    #B0B2A7 0%,
    #9FA49C 28%,
    #2A4A56 54%,
    #102D3D 74%,
    #091B25 100%
  );
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 3.5rem;
  padding: 4.5rem 0 3.5rem;
  min-height: calc(100vh - 150px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow-line {
  display: inline-block;
  width: 64px;
  height: 3px;
  background-color: var(--accent-terracotta);
  margin-bottom: 1.1rem;
}

.hero-kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 236, 0.88);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 4.8vw, 4.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.6rem;
}

.hero-lead {
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.65;
  color: rgba(245, 240, 236, 0.9);
  max-width: 540px;
  margin-bottom: 2.4rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  background: var(--text-light);
  color: var(--bg-petrol-deep);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  background: rgba(245, 240, 236, 0.08);
  color: var(--text-light);
  border: 1px solid rgba(245, 240, 236, 0.35);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-light:hover {
  background: rgba(245, 240, 236, 0.18);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-QuickIndex {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 240, 236, 0.18);
}

.hero-QuickIndex a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(9, 27, 37, 0.36);
  border: 1px solid rgba(245, 240, 236, 0.14);
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(245, 240, 236, 0.92);
  transition: all 0.2s ease;
}

.hero-QuickIndex a:hover {
  background: rgba(245, 240, 236, 0.15);
  border-color: rgba(245, 240, 236, 0.38);
  transform: translateX(3px);
}

.hero-QuickIndex .num {
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-right: 0.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-arch-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: 340px 24px 24px 340px;
  overflow: hidden;
  box-shadow: 0 28px 65px rgba(5, 16, 23, 0.45);
  border: 1px solid rgba(245, 240, 236, 0.22);
}

.hero-arch-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-footer-bar {
  border-top: 1px solid rgba(245, 240, 236, 0.24);
  padding: 1.1rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 236, 0.8);
}

.hero-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   ESTRUCTURA DE LÁMINAS Y BLOQUES DEL CATÁLOGO
   ========================================================================== */
.catalog-block {
  position: relative;
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--accent-line);
}

.catalog-block.bg-alt {
  background-color: var(--bg-cream-alt);
}

/* Cabeceras superiores inspiradas en el degradado superior de cada página */
.block-banner-micro {
  background: linear-gradient(180deg, #102D3D 0%, #3E5866 55%, var(--bg-cream) 100%);
  padding: 4.5rem 0 3rem;
}

.block-banner-cal {
  background: linear-gradient(180deg, #B5AA78 0%, #DED6BE 58%, var(--bg-cream) 100%);
  padding: 4.5rem 0 3rem;
}

.page-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--accent-line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-meta-bar .meta-section {
  color: var(--accent-bronze);
  font-weight: 700;
}

.section-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--accent-line);
}

.section-footer-nav .footer-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-back-index {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-petrol-mid);
  background: rgba(16, 45, 61, 0.06);
  border: 1px solid rgba(16, 45, 61, 0.2);
  transition: all 0.22s ease;
}

.btn-back-index:hover {
  background: var(--bg-petrol-mid);
  color: #ffffff;
  border-color: var(--bg-petrol-mid);
  transform: translateY(-2px);
}

.btn-back-index.light {
  color: var(--text-light);
  background: rgba(245, 240, 236, 0.1);
  border-color: rgba(245, 240, 236, 0.3);
}

.btn-back-index.light:hover {
  background: var(--text-light);
  color: var(--bg-petrol-deep);
  border-color: var(--text-light);
}

.section-heading {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 1.35rem;
}

.section-lead {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.68;
  color: var(--text-body);
  max-width: 780px;
  margin-bottom: 2.75rem;
}

.serif-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   PÁGINA 02: 01 / ELEGIR LA SOLUCIÓN (Tabla editorial indexada)
   ========================================================================== */
.solution-index-list {
  border-top: 1px solid var(--accent-line);
  margin-bottom: 2.75rem;
}

.solution-index-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 60px;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.65rem 0.5rem;
  border-bottom: 1px solid var(--accent-line);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.solution-index-row:hover {
  background-color: rgba(158, 110, 78, 0.05);
  padding-left: 1rem;
}

.solution-index-row .serif-title {
  margin-bottom: 0;
}

.solution-index-desc {
  font-size: 1.04rem;
  color: var(--text-body);
}

.solution-index-page {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-bronze);
  text-align: right;
}

/* Tarjeta degradada oscura del catálogo ("También en este catálogo", etc.) */
.catalog-gradient-banner {
  background: linear-gradient(95deg, #091B25 0%, #1B3B4B 48%, #8F999C 100%);
  color: #ffffff;
  padding: 2rem 2.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.catalog-gradient-banner h3 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.catalog-gradient-banner p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.catalog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.catalog-pills a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.84rem;
  font-weight: 500;
  color: #fff;
}

.catalog-pills a:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   GRIDS EDITORIALES DE 2 COLUMNAS (Páginas 03, 04, 05, 06, 07, 10, 11, 12)
   ========================================================================== */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.editorial-split.reverse {
  direction: ltr;
}

.editorial-text-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.editorial-item p {
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* Marcos de fotografías fieles a las siluetas del catálogo */
.photo-frame {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #e2dcd5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-frame:hover img {
  transform: scale(1.03);
}

/* Curva inferior izquierda (como Pág. 03) */
.shape-curve-bl {
  border-radius: 6px 6px 6px 96px;
}

/* Curva inferior derecha (como Pág. 16 y 17) */
.shape-curve-br {
  border-radius: 6px 6px 96px 6px;
}

/* Curva superior derecha (como Pág. 15) */
.shape-curve-tr {
  border-radius: 6px 96px 6px 6px;
}

/* Arco arquitectónico superior completo (como Pág. 06, 10 y 20) */
.shape-arch-top {
  border-radius: 999px 999px 8px 8px;
}

/* Franja horizontal con reflexión (Pág. 04, 09, 11, 12) */
.wide-strip-photo {
  margin: 2.75rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.wide-strip-photo img {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
}

/* ==========================================================================
   TARJETAS DE PRESTACIONES (Pág. 04: Base poliuretano / Base epoxi)
   ========================================================================== */
.dual-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.num-tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-bronze);
  margin-bottom: 0.5rem;
}

.perf-card {
  padding: 2.1rem 2.2rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.perf-card.polyurethane {
  background: linear-gradient(165deg, #1E2427 0%, #575E61 55%, #9CA19E 100%);
}

.perf-card.epoxy {
  background: linear-gradient(165deg, #07131A 0%, #0E2B3A 65%, #173F52 100%);
}

.perf-card .serif-title {
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.perf-card p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

/* Nota técnica al pie de página como en el catálogo */
.technical-footnote {
  margin-top: 2.5rem;
  padding: 1.15rem 1.5rem;
  border-left: 3px solid var(--accent-bronze);
  background: rgba(16, 45, 61, 0.04);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   LISTA DE USO COMERCIAL Y SOPORTES (Págs. 07 y 08)
   ========================================================================== */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-dark);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bronze);
}

/* Pág. 08: Numeración grande en serif para Estabilidad, Humedad, Adherencia, Juntas */
.numbered-steps-vertical {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  margin-bottom: 3.5rem;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
}

.step-big-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-bronze);
  min-width: 48px;
}

/* Banda de ejecución en 4 capas (Pág. 08 inferior) */
.execution-layers-box {
  background: linear-gradient(155deg, rgba(16, 45, 61, 0.08) 0%, rgba(16, 45, 61, 0.18) 100%);
  border: 1px solid rgba(16, 45, 61, 0.14);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.layers-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.layer-card {
  background: rgba(245, 240, 236, 0.85);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--accent-bronze);
}

/* ==========================================================================
   REVESTIMIENTOS DE CAL (Págs. 10–13)
   ========================================================================== */
.textures-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.75rem;
}

.texture-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.texture-card-img {
  height: 190px;
  overflow: hidden;
}

.texture-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texture-card-body {
  padding: 1.65rem;
  position: relative;
}

.badge-dark-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 12px 12px 12px 2px;
  background: linear-gradient(135deg, #091B25 0%, #2B4C5E 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Pág. 13: Del concepto a la obra (4 pasos con pestaña degradada oscura como el catálogo) */
.concept-steps-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.concept-step-card {
  position: relative;
  padding: 2rem 2rem 2rem 2.25rem;
  border-radius: 22px 12px 12px 12px;
  background: linear-gradient(135deg, rgba(16, 45, 61, 0.12) 0%, rgba(255, 255, 255, 0.75) 45%);
  border: 1px solid var(--accent-line);
  box-shadow: var(--shadow-soft);
}

.concept-step-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg-petrol-mid);
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   NUESTRO TRABAJO · GALERÍA DE PROYECTOS REALES (Págs. 14–17)
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 45, 61, 0.22);
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--bg-petrol-mid);
  border-color: var(--bg-petrol-mid);
  color: #ffffff;
}

.portfolio-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #dcd6ce;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  group: portfolio;
}

.portfolio-item.span-5 { grid-column: span 5; height: 520px; }
.portfolio-item.span-7 { grid-column: span 7; height: 520px; }
.portfolio-item.span-8 { grid-column: span 8; height: 440px; }
.portfolio-item.span-4 { grid-column: span 4; height: 440px; }
.portfolio-item.span-6 { grid-column: span 6; height: 420px; }

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.5rem 1.25rem;
  background: linear-gradient(0deg, rgba(9, 27, 37, 0.88) 0%, rgba(9, 27, 37, 0.45) 60%, transparent 100%);
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  transition: opacity 0.3s ease;
}

.portfolio-caption h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.portfolio-caption span {
  font-size: 0.8rem;
  color: rgba(245, 240, 236, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-zoom-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   CARTA DE COLOR · 12 TONOS MINERALES (Página 18)
   ========================================================================== */
.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.65rem;
  margin-bottom: 2.25rem;
}

.swatch-card {
  background: #ffffff;
  border-radius: 10px 10px 16px 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(9, 27, 37, 0.07);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.swatch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(9, 27, 37, 0.13);
}

.swatch-card.selected {
  border-color: var(--bg-petrol-mid);
  box-shadow: 0 12px 30px rgba(16, 45, 61, 0.22);
}

.swatch-color-block {
  height: 165px;
  width: 100%;
  position: relative;
  /* Sutil textura mineral superpuesta */
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 0),
                    radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.swatch-info {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.swatch-name {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-dark);
}

.swatch-hex {
  font-size: 0.78rem;
  font-family: monospace;
  color: var(--text-muted);
  text-transform: uppercase;
}

.selected-tone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--accent-line);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.75rem;
}

.selected-tone-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tone-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.disclaimer-small {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   PLANIFICACIÓN Y CONTACTO (Páginas 19 y 20)
   ========================================================================== */
.audience-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  margin-bottom: 3rem;
}

.audience-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}

.audience-pill-header {
  display: inline-block;
  background: #ffffff;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.audience-card.constructors .audience-pill-header {
  color: #5C5549;
}

.audience-card.clients .audience-pill-header {
  color: var(--bg-petrol-mid);
}

.checklist-start-box {
  background: linear-gradient(180deg, #091B25 0%, #173747 38%, rgba(245, 240, 236, 0.9) 100%);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--accent-line);
  box-shadow: var(--shadow-card);
}

.checklist-start-box h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

.start-steps-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.start-step-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-dark);
}

.start-step-item .num {
  font-weight: 700;
  color: var(--accent-bronze);
  font-size: 0.95rem;
}

/* ==========================================================================
   CIERRE / CONTRAPORTADA Y FORMULARIO DE PROYECTO (Fiel a la Página 20)
   ========================================================================== */
.closing-backcover {
  background: linear-gradient(160deg, #173A4A 0%, #102D3D 52%, #081821 100%);
  color: var(--text-light);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.closing-headline {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.closing-sub {
  font-size: 1.15rem;
  color: rgba(245, 240, 236, 0.86);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

/* Formulario interactivo basado en "Qué necesitamos para empezar" (Pág. 19) */
.project-inquiry-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 240, 236, 0.18);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.project-inquiry-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.project-inquiry-card > p {
  font-size: 0.9rem;
  color: rgba(245, 240, 236, 0.78);
  margin-bottom: 1.4rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 236, 0.85);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(245, 240, 236, 0.24);
  background: rgba(9, 27, 37, 0.55);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 240, 236, 0.45);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-terracotta);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.btn-whatsapp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: #25D366;
  color: #072312;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background: #2ee673;
  transform: translateY(-2px);
}

.btn-email {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: var(--text-light);
  color: var(--bg-petrol-deep);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-email:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.closing-arch-wrap {
  display: flex;
  justify-content: center;
}

.closing-arch-wrap .photo-frame {
  max-width: 420px;
  width: 100%;
  height: 620px;
  border: 1px solid rgba(245, 240, 236, 0.22);
}

.contact-direct-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(245, 240, 236, 0.2);
  border-bottom: 1px solid rgba(245, 240, 236, 0.2);
  margin-bottom: 2rem;
}

.contact-direct-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-direct-item span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 236, 0.65);
}

.contact-direct-item a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.contact-direct-item a:hover {
  color: var(--accent-terracotta);
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(245, 240, 236, 0.68);
}

/* ==========================================================================
   MODAL VISOR DEL CATÁLOGO ORIGINAL (20 PÁGINAS) Y LIGHTBOX
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 18, 25, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.catalog-modal-box {
  width: 100%;
  max-width: 980px;
  max-height: 94vh;
  background: #102632;
  border: 1px solid rgba(245, 240, 236, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.catalog-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(245, 240, 236, 0.12);
}

.catalog-modal-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: auto;
  min-height: 65vh;
}

.catalog-modal-body img {
  max-height: 75vh;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.catalog-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(9, 27, 37, 0.75);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.catalog-nav-btn:hover {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
}

.catalog-nav-btn.prev { left: 1.25rem; }
.catalog-nav-btn.next { right: 1.25rem; }

.catalog-thumbs-strip {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(245, 240, 236, 0.12);
}

.catalog-thumb {
  width: 46px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.catalog-thumb.active,
.catalog-thumb:hover {
  opacity: 1;
  border-color: var(--accent-terracotta);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Múltiples resoluciones: 4K/Desktop, Tablet, Móvil)
   ========================================================================== */

/* Pantallas grandes / Monitores panorámicos (1440px+) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1340px;
  }

  .hero-grid {
    gap: 4.5rem;
  }

  .hero-arch-frame img {
    height: 620px;
  }
}

/* Portátiles compactos y Tabletas en horizontal (hasta 1140px) */
@media (max-width: 1140px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(9, 27, 37, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem clamp(1.1rem, 4vw, 2.25rem) 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    font-size: 0.96rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(245, 240, 236, 0.08);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .editorial-split,
  .closing-grid {
    gap: 2.75rem;
  }

  .layers-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tabletas en vertical y pantallas medianas (hasta 960px) */
@media (max-width: 960px) {
  .catalog-block {
    padding: 4.25rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0 2.5rem;
    min-height: auto;
  }

  .hero-lead {
    max-width: 100%;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-arch-frame {
    max-width: 100%;
    border-radius: 220px 220px 20px 20px;
  }

  .hero-arch-frame img {
    height: 420px;
  }

  .editorial-split,
  .closing-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .closing-arch-wrap .photo-frame {
    max-width: 520px;
    height: 460px;
  }

  .textures-trio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .color-palette-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .portfolio-item.span-5,
  .portfolio-item.span-7,
  .portfolio-item.span-8,
  .portfolio-item.span-4,
  .portfolio-item.span-6 {
    grid-column: span 6;
    height: 350px;
  }

  .contact-direct-bar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Móviles grandes y Tabletas pequeñas (hasta 768px) */
@media (max-width: 768px) {
  .header-inner {
    height: 68px;
  }

  .main-nav {
    top: 68px;
  }

  .hero-cover {
    padding-top: 68px;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

  .catalog-block {
    padding: 3.4rem 0;
  }

  .block-banner-micro,
  .block-banner-cal {
    padding: 3rem 0 2rem;
  }

  .page-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 1.75rem;
  }

  .solution-index-row {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1rem;
    padding: 1.25rem 0.25rem;
  }

  .solution-index-desc {
    grid-column: 1 / -1;
    order: 3;
    font-size: 0.96rem;
  }

  .solution-index-page {
    text-align: right;
  }

  .dual-cards-grid,
  .numbered-steps-vertical,
  .layers-grid-4,
  .textures-trio-grid,
  .concept-steps-stack,
  .audience-cards-grid,
  .start-steps-list,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .execution-layers-box,
  .checklist-start-box,
  .catalog-gradient-banner,
  .audience-card,
  .project-inquiry-card {
    padding: 1.5rem;
  }

  .shape-curve-bl {
    border-radius: 8px 8px 8px 56px;
  }

  .shape-curve-br {
    border-radius: 8px 8px 56px 8px;
  }

  .shape-curve-tr {
    border-radius: 8px 56px 8px 8px;
  }

  .portfolio-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .portfolio-item.span-5,
  .portfolio-item.span-7,
  .portfolio-item.span-8,
  .portfolio-item.span-4,
  .portfolio-item.span-6 {
    grid-column: span 12;
    height: 310px;
  }

  .color-palette-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .swatch-color-block {
    height: 125px;
  }

  .catalog-modal-box {
    max-height: 96vh;
  }

  .catalog-modal-body {
    padding: 0.75rem;
    min-height: 55vh;
  }

  .catalog-nav-btn {
    width: 40px;
    height: 40px;
  }

  .catalog-nav-btn.prev { left: 0.5rem; }
  .catalog-nav-btn.next { right: 0.5rem; }
}

/* Smartphones estándar y compactos (hasta 540px) */
@media (max-width: 540px) {
  .btn-catalog-viewer span {
    display: none;
  }

  .btn-catalog-viewer::after {
    content: 'Catálogo';
  }

  .btn-header-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: clamp(2.15rem, 8.5vw, 2.75rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline-light {
    width: 100%;
    justify-content: center;
  }

  .hero-QuickIndex {
    grid-template-columns: 1fr;
  }

  .hero-arch-frame {
    border-radius: 150px 150px 14px 14px;
  }

  .hero-arch-frame img {
    height: 300px;
  }

  .selected-tone-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem;
  }

  .selected-tone-bar .btn-header-cta {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-whatsapp,
  .btn-email {
    width: 100%;
  }

  .closing-arch-wrap .photo-frame {
    height: 360px;
  }
}

/* Móviles muy pequeños (hasta 360px) */
@media (max-width: 360px) {
  .color-palette-grid {
    grid-template-columns: 1fr;
  }

  .swatch-color-block {
    height: 110px;
  }
}

