/* ============================================================
   SOFIC — Estilo MDD v1.0
   Colores y tipografía oficiales SOFIC
   Inspiración visual: mdd.eu
   ============================================================ */

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

:root {
  --cream:       #F4F1EC;
  --grey:        #DAD1C8;
  --grey-blue:   #9BACD8;
  --space-blue:  #223382;
  --navy:        #111144;
  --terra:       #F98513;
  --white:       #FFFFFF;
  --text:        #111144;
  --text-light:  #6B7280;
  --border:      #E8E4DF;
  --font:        'DM Sans', system-ui, sans-serif;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--terra); }

/* ─── CURSOR ─── */
.cursor {
  width: 1px; height: 1px;
  background: transparent;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor::before, .cursor::after {
  content: ''; position: absolute; background: var(--terra);
  transition: all 0.15s ease;
}
.cursor::before { width: 12px; height: 1px; top: 0; left: -6px; }
.cursor::after  { width: 1px; height: 12px; top: -6px; left: 0; }
.cursor .cursor-dot { position: absolute; width: 2px; height: 2px; background: var(--terra); top: -1px; left: -1px; }
.cursor.expand::before { width: 22px; left: -11px; }
.cursor.expand::after  { height: 22px; top: -11px; }

/* ─── NAV ─── */
#sofic-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#sofic-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img, .nav-logo .custom-logo, .site-logo-img { height: 30px; width: auto; display: block; }
.nav-center { display: flex; gap: 0; list-style: none; }
.nav-center a {
  display: block; padding: 0 18px; height: 64px; line-height: 64px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--text); transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-center a:hover { color: var(--terra); border-bottom-color: var(--terra); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta-btn {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--space-blue);
  padding: 10px 24px; border: none; display: inline-block;
  transition: background 0.3s;
}
.nav-cta-btn:hover { background: var(--terra); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--navy); }

/* MOBILE NAV */
.mobile-nav {
  position: fixed; inset: 0; background: var(--navy); z-index: 850;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 28px;
  transform: translateX(100%); transition: transform 0.5s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-size: clamp(28px, 6vw, 48px); font-weight: 800;
  color: var(--white); transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--terra); }

/* ─── HERO ─── */
#hero {
  position: relative;
  height: calc(100vh - 64px);
  min-height: 600px;
  margin-top: 64px;
  overflow: hidden;
  background: var(--navy);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(17,17,68,0.75) 0%,
    rgba(17,17,68,0.4) 50%,
    transparent 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 64px 64px 80px;
  max-width: 800px;
}
.hero-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 24px; display: block;
}
.hero-h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.03em; color: var(--white);
  margin-bottom: 28px;
}
.hero-h1 em { font-style: normal; color: var(--terra); }
.hero-sub {
  font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,0.7); line-height: 1.7;
  max-width: 440px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); background: var(--terra); border: none;
  padding: 16px 36px; display: inline-block; transition: background 0.3s, transform 0.3s;
}
.btn-primary:hover { background: var(--space-blue); transform: translateY(-2px); }
.btn-outline {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 15px 34px; display: inline-block; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ─── MARQUEE ─── */
.marquee-strip {
  background: var(--space-blue); padding: 12px 0;
  overflow: hidden; white-space: nowrap;
}
.marquee-inner {
  display: inline-flex; align-items: center;
  animation: marquee 30s linear infinite;
}
.marquee-inner span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); padding: 0 28px;
}
.marquee-inner .sep { color: var(--terra); padding: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECCIÓN INTRO — estilo MDD fullwidth ─── */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.intro-text {
  padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}
.intro-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--terra);
  margin-bottom: 24px; display: block;
}
.intro-title {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--navy);
  margin-bottom: 24px;
}
.intro-title em { font-style: normal; color: var(--terra); }
.intro-body {
  font-size: 15px; font-weight: 300;
  color: var(--text-light); line-height: 1.85;
  margin-bottom: 16px; max-width: 420px;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy);
  margin-top: 20px; transition: gap 0.3s, color 0.3s;
}
.link-arrow:hover { gap: 16px; color: var(--terra); }
.link-arrow::after { content: '→'; font-size: 14px; }
.intro-media {
  position: relative; overflow: hidden; min-height: 500px;
  background: var(--grey);
}
.intro-media video, .intro-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.intro-media-tag {
  position: absolute; bottom: 0; left: 0;
  background: var(--space-blue); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 10px 20px; z-index: 2;
}

/* ─── STATS ─── */
.stats-section {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  padding: 48px 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.stat-item:last-child { border-right: none; }
.stat-item::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px; background: var(--terra);
  transition: width 0.9s var(--ease);
}
.stat-item.visible::after { width: 100%; }
.stat-num {
  font-size: clamp(40px, 4.5vw, 60px); font-weight: 800;
  color: var(--white); line-height: 1; margin-bottom: 8px; display: block;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
}

/* ─── PRODUCTOS — Grid estilo MDD ─── */
.products-section {
  padding: 80px 0;
  background: var(--white);
}
.products-header {
  padding: 0 48px 48px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.section-title {
  font-size: clamp(28px, 3vw, 44px); font-weight: 800;
  letter-spacing: -0.025em; color: var(--navy); line-height: 1.1;
}
.section-title em { font-style: normal; color: var(--terra); }
.link-terra {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--terra);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s;
}
.link-terra:hover { gap: 14px; }
.link-terra::after { content: '→'; }

/* MDD-style grid: drag scroll horizontal */
.products-track {
  display: flex; gap: 2px; overflow-x: auto;
  padding: 0 48px 4px;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; user-select: none;
}
.products-track:active { cursor: grabbing; }
.products-track::-webkit-scrollbar { display: none; }
.product-card {
  flex: 0 0 320px; height: 480px;
  position: relative; overflow: hidden;
  background: var(--cream); transition: flex-basis 0.4s var(--ease);
}
.product-card:hover { flex-basis: 400px; }
.pc-visual {
  position: absolute; inset: 0;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .pc-visual { transform: scale(1.04); }
.pc-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
}
.pc-img-ph svg { opacity: 0.2; }
.pc-img-ph span {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(17,17,68,0.2);
}
.pc-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(17,17,68,0.92) 70%);
  padding: 48px 24px 24px;
  transform: translateY(6px); transition: transform 0.4s var(--ease);
}
.product-card:hover .pc-overlay { transform: translateY(0); }
.pc-cat { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.pc-name { font-size: 26px; font-weight: 800; color: var(--white); letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 12px; }
.pc-desc {
  font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s;
}
.product-card:hover .pc-desc { max-height: 80px; opacity: 1; margin-bottom: 14px; }
.pc-link { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); display: inline-flex; align-items: center; gap: 6px; }
.pc-link::after { content: '→'; }

/* ─── INTERLUDE fullwidth ─── */
.interlude {
  position: relative; height: 60vh; min-height: 420px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-video.interlude-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.interlude-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(34,51,130,0.65);
}
.interlude-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 48px; max-width: 800px;
}
.interlude-quote {
  font-size: clamp(26px, 4vw, 52px); font-weight: 800;
  color: var(--white); line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.interlude-quote em { font-style: normal; color: var(--terra); }
.interlude-author {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ─── PROYECTOS — Grid asimétrico MDD ─── */
.projects-section { padding: 80px 48px; background: var(--white); }
.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px;
}
/* Grid asimétrico tipo MDD */
.projects-grid-mdd {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 340px 260px;
  gap: 3px;
}
.proj-card { position: relative; overflow: hidden; cursor: pointer; }
.proj-card--hero { grid-row: span 2; }
.proj-card-bg {
  position: absolute; inset: 0;
  background: var(--grey);
  transition: transform 0.6s var(--ease);
}
.proj-card:hover .proj-card-bg { transform: scale(1.04); }
.proj-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.proj-ph-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(17,17,68,0.12); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px dashed rgba(17,17,68,0.1);
  width: 40%; aspect-ratio: 1; justify-content: center;
}
.proj-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(17,17,68,0.88));
  padding: 40px 24px 24px;
  transform: translateY(10px); transition: transform 0.4s var(--ease);
}
.proj-card:hover .proj-overlay { transform: translateY(0); }
.proj-loc { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--terra); margin-bottom: 6px; }
.proj-name { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -0.01em; line-height: 1.2; }
.proj-card--hero .proj-name { font-size: 28px; }
.proj-detail { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 5px; }

/* ─── FULLWIDTH BANNER — estilo MDD ─── */
.fullwidth-banner {
  position: relative; height: 480px; overflow: hidden;
  display: flex; align-items: center;
}
.fullwidth-banner-bg {
  position: absolute; inset: 0;
  background: var(--space-blue);
}
.fullwidth-banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.3;
}
.fullwidth-banner-content {
  position: relative; z-index: 2;
  padding: 0 48px; max-width: 640px;
}
.fullwidth-banner-title {
  font-size: clamp(36px, 5vw, 72px); font-weight: 800;
  color: var(--white); line-height: 0.95;
  letter-spacing: -0.03em; margin-bottom: 28px;
}
.fullwidth-banner-title em { font-style: normal; color: var(--terra); }
.fullwidth-banner-text {
  font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 32px;
}

/* ─── CATEGORÍAS — Grid tipo MDD ─── */
.categories-section { padding: 80px 48px; background: var(--cream); }
.cat-card {
  position: relative;
  overflow: hidden; cursor: pointer;
  background: var(--grey);
}
.cat-card-bg { position: absolute; inset: 0; transition: transform 0.5s var(--ease); }
.cat-card:hover .cat-card-bg { transform: scale(1.05); }
.cat-card-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,68,0.7) 0%, transparent 60%);
  transition: background 0.4s;
}
.cat-card:hover .cat-card-overlay {
  background: linear-gradient(to top, rgba(17,17,68,0.85) 0%, rgba(17,17,68,0.2) 100%);
}
.cat-card-label {
  position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2;
}
.cat-card-name {
  font-size: 18px; font-weight: 800; color: var(--white);
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.cat-card-count {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.cat-card-arrow {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 14px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.cat-card:hover .cat-card-arrow { opacity: 1; transform: translateY(0); }

/* ─── TESTIMONIAL ─── */
.testi-section {
  padding: 80px 48px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.testi-inner { max-width: 840px; margin: 0 auto; text-align: center; }
.testi-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 40px;
}
.testi-quote {
  font-size: clamp(22px, 3vw, 36px); font-weight: 300;
  color: var(--navy); line-height: 1.45; margin-bottom: 28px;
}
.testi-author { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); }
.testi-author strong { color: var(--space-blue); }
/* Clientes logos */
.clients-bar {
  display: flex; justify-content: center; align-items: center;
  gap: 48px; flex-wrap: wrap; margin-top: 56px;
  padding-top: 40px; border-top: 1px solid var(--border);
  opacity: 0.4;
}
.client-name {
  font-size: 16px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
}

/* ─── HOME CTA ─── */
.home-cta {
  padding: 100px 48px;
  background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.home-cta-title {
  font-size: clamp(36px, 4.5vw, 64px); font-weight: 800;
  color: var(--white); line-height: 0.95; letter-spacing: -0.03em;
}
.home-cta-title em { font-style: normal; color: var(--terra); display: block; }
.home-cta-right {}
.home-cta-text {
  font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,0.55); line-height: 1.85; margin-bottom: 36px;
}
.home-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-terra {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); background: var(--terra); border: none;
  padding: 16px 36px; display: inline-block; transition: background 0.3s;
}
.btn-terra:hover { background: var(--space-blue); }
.btn-ghost-white {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); border: 1.5px solid rgba(255,255,255,0.2);
  padding: 15px 34px; display: inline-block; transition: all 0.3s;
}
.btn-ghost-white:hover { border-color: var(--white); color: var(--white); }

/* ─── FOOTER ─── */
footer { background: var(--navy); padding: 64px 48px 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}
.footer-brand-logo { display: block; margin-bottom: 14px; }
.footer-brand-logo img, .footer-brand-logo .custom-logo, .footer-logo-img {
  height: 28px; width: auto; display: block;
  filter: brightness(0) invert(1);
}
.footer-brand-baseline {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 14px;
}
.footer-brand-text {
  font-size: 13px; color: rgba(255,255,255,0.28); line-height: 1.85; max-width: 240px; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(255,255,255,0.3); font-weight: 700;
  transition: all 0.3s; text-decoration: none;
}
.footer-socials a:hover { border-color: var(--terra); color: var(--terra); }
.footer-col-title {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--terra); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p, .footer-bottom a { font-size: 11px; color: rgba(255,255,255,0.15); letter-spacing: 0.04em; }
.footer-bottom a:hover { color: var(--terra); }

/* ─── PÁGINAS INTERIORES ─── */
.page-hero {
  position: relative; height: 60vh; min-height: 440px; max-height: 680px;
  margin-top: 64px; overflow: hidden; background: var(--navy);
  display: flex; align-items: flex-end;
}
.page-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(17,17,68,0.85) 0%, rgba(17,17,68,0.3) 60%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; padding: 0 48px 56px; }
.page-hero-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 14px;
}
.page-hero-title {
  font-size: clamp(40px, 6vw, 80px); font-weight: 800;
  color: var(--white); line-height: 0.95; letter-spacing: -0.03em;
}
.page-hero-title em { font-style: normal; color: var(--terra); }
/* Hero estático sin vídeo */
.page-hero-static {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--space-blue) 100%);
}

/* ─── CONTACT ─── */
.contact-section {
  padding: 80px 48px; background: var(--white);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start;
}
.contact-title {
  font-size: clamp(32px, 4vw, 56px); font-weight: 800;
  color: var(--navy); line-height: 0.95; letter-spacing: -0.025em; margin-bottom: 36px;
}
.contact-title em { font-style: normal; color: var(--terra); display: block; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.ci-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); min-width: 58px; padding-top: 2px; }
.ci-val { font-size: 14px; color: var(--navy); line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.full { grid-column: span 2; }
.fg label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); }
.fg input, .fg select, .fg textarea {
  background: var(--cream); border: 1.5px solid var(--border);
  color: var(--navy); padding: 12px 14px; font-family: var(--font);
  font-size: 13px; outline: none; transition: border-color 0.25s;
  resize: none; appearance: none; -webkit-appearance: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--terra); }
.fg select option { background: var(--white); }
.form-footer { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.btn-form-submit {
  font-family: var(--font); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); background: var(--space-blue); border: none;
  padding: 16px 36px; transition: background 0.3s;
}
.btn-form-submit:hover { background: var(--terra); }
.form-note { font-size: 11px; color: var(--text-light); }

/* ─── MAPS ─── */
.map-section { height: 400px; border-top: 1px solid var(--border); }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ─── MATERIALES ─── */
.mat-section { padding: 80px 48px; background: var(--white); }
.mat-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.mat-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 3px; margin-bottom: 48px; }
.mat-item { cursor: pointer; }
.mat-swatch { height: 100px; margin-bottom: 10px; transition: transform 0.3s var(--ease); }
.mat-item:hover .mat-swatch { transform: translateY(-4px); }
.mat-name { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 2px; }
.mat-sub { font-size: 11px; color: var(--text-light); }
.mat-cta { text-align: center; }
.mat-category { margin-bottom: 56px; }
.mat-category-title { font-size: clamp(22px,2.5vw,34px); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 28px; }
.mat-category-title em { font-style: normal; color: var(--terra); }

/* ─── CONFIGURADOR ─── */
.config-page-wrap { padding: 80px 48px; background: var(--white); }
.config-page-header { text-align: center; max-width: 540px; margin: 0 auto 48px; }
.config-page-header .eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 16px;
}
.config-page-header .display-title {
  font-size: clamp(28px,3.5vw,48px); font-weight: 800;
  letter-spacing: -0.025em; color: var(--navy); line-height: 1.05; margin-bottom: 16px;
}
.config-page-header p { font-size: 15px; color: var(--text-light); line-height: 1.8; }
.config-tabs { display: flex; justify-content: center; border-bottom: 2px solid var(--border); margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.config-tabs::-webkit-scrollbar { display: none; }
.ctab {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); padding: 14px 24px; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; transition: all 0.3s;
}
.ctab.active { color: var(--navy); border-bottom-color: var(--terra); }
.ctab:hover { color: var(--navy); }
.config-wrap { display: grid; grid-template-columns: 280px 1fr; border: 1.5px solid var(--border); min-height: 600px; }
.config-side { border-right: 1.5px solid var(--border); overflow-y: auto; max-height: 600px; }
.cside-block { border-bottom: 1px solid var(--border); }
.cside-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: none; border: none; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); cursor: pointer; transition: color 0.2s; }
.cside-toggle:hover { color: var(--navy); }
.cside-toggle .ico { font-size: 18px; color: var(--border); transition: transform 0.3s; }
.cside-block.open .ico { transform: rotate(45deg); color: var(--terra); }
.cside-body { padding: 4px 20px 18px; display: none; }
.cside-block.open .cside-body { display: block; }
.cfield-label { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 5px; margin-top: 12px; }
.cfield-label:first-child { margin-top: 0; }
.cfield-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfield-select { width: 100%; background: var(--cream); border: 1.5px solid var(--border); padding: 9px 12px; font-family: var(--font); font-size: 12px; color: var(--navy); outline: none; transition: border-color 0.2s; appearance: none; -webkit-appearance: none; }
.cfield-select:focus { border-color: var(--terra); }
.swatch-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-top: 2px; }
.sw { aspect-ratio: 1; border-radius: 2px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s; }
.sw:hover { transform: scale(1.1); }
.sw.sel { border-color: var(--space-blue); }
.sw-name { font-size: 8px; color: var(--text-light); text-align: center; margin-top: 3px; }
.finish-list { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.finish-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--border); cursor: pointer; transition: all 0.2s; }
.finish-item.sel { border-color: var(--space-blue); background: rgba(34,51,130,0.04); }
.finish-item:hover { border-color: var(--navy); }
.fi-dot { width: 22px; height: 22px; border-radius: 2px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.08); }
.fi-label { font-size: 12px; color: var(--navy); }
.acc-list { display: flex; flex-direction: column; gap: 9px; }
.acc-item { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 12px; color: var(--navy); }
.acc-item input[type="checkbox"] { accent-color: var(--space-blue); width: 15px; height: 15px; }
.config-preview { display: flex; flex-direction: column; }
.config-canvas { flex: 1; background: var(--cream); display: flex; align-items: center; justify-content: center; position: relative; min-height: 400px; }
.config-canvas svg { max-width: 380px; width: 90%; }
.canvas-tools { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 7px; }
.canvas-btn { width: 32px; height: 32px; background: var(--white); border: 1.5px solid var(--border); font-size: 11px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: var(--navy); font-weight: 700; }
.canvas-btn:hover { border-color: var(--space-blue); background: var(--space-blue); color: var(--white); }
.config-meta { padding: 9px 18px; background: var(--white); border-top: 1px solid var(--border); }
.config-meta span { font-size: 10px; color: var(--text-light); font-style: italic; }
.config-bar { background: var(--navy); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.config-bar-items { display: flex; gap: 24px; flex-wrap: wrap; }
.cbi-label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 3px; }
.cbi-value { font-size: 16px; color: var(--white); font-weight: 700; }
.config-bar-actions { display: flex; gap: 8px; }
.cbtn-sec { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); background: none; border: 1.5px solid rgba(255,255,255,0.15); padding: 10px 18px; transition: all 0.3s; font-family: var(--font); font-weight: 600; }
.cbtn-sec:hover { border-color: var(--white); color: var(--white); }
.cbtn-pri { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); background: var(--terra); border: none; padding: 10px 22px; font-family: var(--font); font-weight: 700; transition: background 0.3s; }
.cbtn-pri:hover { background: var(--space-blue); }

/* ─── SOBRE SOFIC ─── */
.sobre-origen { padding: 80px 48px; background: var(--white); }
.sobre-origen-inner { max-width: 1100px; margin: 0 auto; }
.sobre-origen-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 36px; }
.sobre-timeline { padding: 80px 48px; background: var(--cream); }
.sobre-timeline-inner { max-width: 780px; margin: 0 auto; position: relative; }
.timeline-line { position: absolute; left: 66px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { display: flex; gap: 36px; margin-bottom: 52px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 59px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--terra); z-index: 1; }
.ti-year { font-size: 24px; font-weight: 800; color: var(--terra); min-width: 84px; line-height: 1.2; letter-spacing: -0.02em; }
.ti-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.ti-text { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.sobre-valores { padding: 80px 48px; background: var(--space-blue); }
.sobre-valores-header { margin-bottom: 48px; }
.sobre-valores-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.valor-card { padding: 36px 28px; border: 1px solid rgba(255,255,255,0.08); transition: all 0.3s; background: transparent; }
.valor-card:hover { background: rgba(255,255,255,0.05); border-color: var(--terra); }
.vc-icon { margin-bottom: 20px; }
.vc-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.vc-text { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.8; }
.sobre-instalaciones { padding: 80px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; background: var(--white); }
.si-img-main { height: 440px; background: var(--cream); position: relative; overflow: hidden; }
.si-img-main .img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--text-light); }
.si-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 16px; border: 1.5px solid var(--border); }
.si-stat { padding: 18px 14px; border-right: 1px solid var(--border); text-align: center; }
.si-stat:last-child { border-right: none; }
.si-num { display: block; font-size: 24px; font-weight: 800; color: var(--space-blue); line-height: 1; margin-bottom: 3px; letter-spacing: -0.02em; }
.si-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }

/* ─── PRODUCTOS PAGE ─── */
.productos-page { padding: 80px 48px; background: var(--white); }
.prod-filter-bar { display: flex; gap: 0; margin-bottom: 40px; border-bottom: 2px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.prod-filter-bar::-webkit-scrollbar { display: none; }
.pfbtn { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); background: none; border: none; border-bottom: 2px solid transparent; padding: 12px 20px; margin-bottom: -2px; white-space: nowrap; cursor: pointer; transition: all 0.3s; font-family: var(--font); }
.pfbtn.active { color: var(--navy); border-bottom-color: var(--terra); }
.pfbtn:hover { color: var(--navy); }
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.prod-item { overflow: hidden; transition: transform 0.3s var(--ease); background: var(--cream); }
.prod-item:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(17,17,68,0.1); }
.prod-item-img { height: 240px; overflow: hidden; position: relative; }
.prod-item-info { padding: 20px 20px 24px; }
.prod-item-cat { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); display: block; margin-bottom: 6px; }
.prod-item-name { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 10px; line-height: 1.15; letter-spacing: -0.01em; }
.prod-item-desc { font-size: 13px; color: var(--text-light); line-height: 1.75; margin-bottom: 16px; }

/* ─── PROYECTOS PAGE ─── */
.proyectos-page { padding: 80px 48px; background: var(--white); }
.proyectos-intro { margin-bottom: 36px; }

/* ─── ESPECIFICACIONES ─── */
.descargas-section { padding: 80px 48px; background: var(--cream); }
.descargas-header { margin-bottom: 48px; }
.descargas-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.descarga-item { background: var(--white); padding: 32px 24px; transition: all 0.3s; }
.descarga-item:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(17,17,68,0.1); }
.di-icon { margin-bottom: 18px; }
.di-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 9px; }
.di-text { font-size: 13px; color: var(--text-light); line-height: 1.75; margin-bottom: 18px; }

/* ─── PAGE CTA ─── */
.page-cta-section { padding: 80px 48px; background: var(--navy); }
.page-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.page-cta-title { font-size: clamp(32px,4vw,56px); font-weight: 800; color: var(--white); letter-spacing: -0.025em; margin-bottom: 20px; }
.page-cta-title em { font-style: normal; color: var(--terra); }
.page-cta-text { font-size: 15px; color: rgba(255,255,255,0.4); margin-bottom: 36px; line-height: 1.8; }

/* ─── ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* Entrada lateral desde los bordes */
.reveal-left, .reveal-right { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-left { transform: translateX(-56px); }
.reveal-right { transform: translateX(56px); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  #sofic-nav { padding: 0 24px; }
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
  #hero { height: 70vh; }
  .hero-content { padding: 0 24px 48px; }
  .intro-section { grid-template-columns: 1fr; }
  .intro-media { height: 320px; min-height: 320px; }
  .intro-text { padding: 56px 24px; }
  .stats-section { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .products-header { padding: 0 24px 36px; }
  .products-track { padding: 0 24px 24px; }
  .projects-section { padding: 60px 24px; }
  .projects-grid-mdd { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 260px 260px; }
  .proj-card--hero { grid-row: span 1; }
  .categories-section { padding: 60px 24px; }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .testi-section { padding: 60px 24px; }
  .home-cta { grid-template-columns: 1fr; padding: 60px 24px; }
  footer { padding: 56px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .interlude { height: 50vh; }
  .sobre-origen { padding: 60px 24px; }
  .sobre-origen-cols { grid-template-columns: 1fr; }
  .sobre-timeline, .sobre-valores, .sobre-instalaciones { padding: 60px 24px; }
  .sobre-valores-grid { grid-template-columns: repeat(2,1fr); }
  .sobre-instalaciones { grid-template-columns: 1fr; }
  .productos-page, .proyectos-page, .config-page-wrap, .mat-section { padding: 60px 24px; }
  .prod-grid { grid-template-columns: repeat(2,1fr); }
  .descargas-section { padding: 60px 24px; }
  .descargas-grid { grid-template-columns: repeat(2,1fr); }
  .page-cta-section { padding: 60px 24px; }
  .contact-section { grid-template-columns: 1fr; padding: 60px 24px; }
  .mat-grid { grid-template-columns: repeat(3,1fr); }
  .config-wrap { grid-template-columns: 1fr; }
  .config-side { border-right: none; border-bottom: 1.5px solid var(--border); max-height: none; }
  .fullwidth-banner { height: 360px; }
  .fullwidth-banner-content { padding: 0 24px; }
}
@media (max-width: 640px) {
  .stats-section { grid-template-columns: 1fr 1fr; }
  .prod-grid, .sobre-valores-grid { grid-template-columns: 1fr; }
  .descargas-grid, .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .projects-grid-mdd { grid-template-columns: 1fr; grid-template-rows: 320px 240px 240px 240px; }
  .form-grid { grid-template-columns: 1fr; }
  .fg.full { grid-column: span 1; }
  .mat-grid { grid-template-columns: repeat(2,1fr); }
}

/* ─── ESQUINAS REDONDEADAS ESTILO MDD ─── */

/* Cards de producto */
.product-card {
  border-radius: 16px;
  overflow: hidden;
}

/* Grid de categorías — layout asimétrico controlado */
.categories-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 340px 280px;
  gap: 12px;
  margin-top: 40px;
}
.cat-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.cat-card--tall {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: 20px;
}
.cat-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.cat-card:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}
.cat-card--wide {
  grid-column: 2 / 4;
  grid-row: 2;
  border-radius: 20px;
}
.cat-card:nth-child(5) { display: none; }

/* Grid proyectos */
.projects-grid-mdd {
  gap: 12px;
}
.proj-card {
  border-radius: 16px;
  overflow: hidden;
}
.proj-card--hero {
  border-radius: 20px;
}

/* Cards de productos página */
.prod-item {
  border-radius: 16px;
  overflow: hidden;
}
.prod-item-img {
  border-radius: 0;
}

/* Interlude */
.interlude {
  border-radius: 20px;
  margin: 0 48px;
}

/* Banner fullwidth */
.fullwidth-banner {
  border-radius: 20px;
  margin: 0 48px;
  overflow: hidden;
}

/* Stats */
.stats-section {
  border-radius: 16px;
  overflow: hidden;
  margin: 0 48px;
}

/* Intro media */
.intro-media {
  border-radius: 0 20px 20px 0;
}

/* Hero */
#hero {
  border-radius: 0 0 20px 20px;
}

/* Page hero */
.page-hero {
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

/* Descarga items */
.descarga-item {
  border-radius: 14px;
  overflow: hidden;
}

/* Valor cards */
.valor-card {
  border-radius: 14px;
}

/* Botones más redondeados */
.btn-primary, .btn-terra, .btn-form-submit {
  border-radius: 8px;
}
.btn-outline, .btn-ghost-white, .nav-cta-btn {
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .interlude, .fullwidth-banner, .stats-section { margin: 0 24px; border-radius: 16px; }
  .intro-media { border-radius: 0 0 16px 16px; }
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px 240px;
  }
  .cat-card:nth-child(1) { grid-row: span 1; border-radius: 16px; }
  .cat-card:nth-child(4) { grid-column: span 1; border-radius: 16px; }
  .cat-card:nth-child(5),
  .cat-card:nth-child(6) { display: block; }
}

/* ─── DROPDOWN NAV ─── */
.nav-center li { position: relative; }
.nav-arrow { font-size: 10px; opacity: 0.6; margin-left: 2px; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--terra);
  min-width: 220px; list-style: none;
  box-shadow: 0 8px 32px rgba(17,17,68,0.1);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease);
  z-index: 910;
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li a {
  display: block; padding: 12px 20px;
  font-size: 13px; font-weight: 500;
  color: var(--navy); border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  height: auto; line-height: 1.4; border-bottom-width: 0;
}
.nav-dropdown li:not(:last-child) a { border-bottom: 1px solid var(--border); }
.nav-dropdown li a:hover { background: var(--cream); color: var(--terra); }

/* ─── CARDS SERVICIOS HOME ─── */
.svc-mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(17,17,68,0.18);
}
.svc-mini-card:hover .svc-mini-line {
  width: 72px;
}

/* ============================================================
   SOFIC — RESPONSIVE COMPLETO
   Mobile first: breakpoints 1100px y 640px
   ============================================================ */

@media (max-width: 1100px) {

  /* ── NAV ── */
  #sofic-nav { padding: 0 24px; }
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta-btn { display: none; }

  /* ── HERO ── */
  #hero { height: 80vh; margin-top: 64px; }
  .hero-content { padding: 0 24px 48px; }
  .hero-h1 { font-size: clamp(36px, 8vw, 64px); }
  .hero-sub { font-size: 16px; }

  /* ── PAGE HERO ── */
  .page-hero { height: 45vh; min-height: 320px; }
  .page-hero-content,
  section[style*="padding:0 48px 56px"],
  div[style*="padding:0 48px 56px"] { padding-left: 24px !important; padding-right: 24px !important; }

  /* ── MARQUEE ── */
  .marquee-strip { }

  /* ── SECCIONES — padding general ── */
  section[style*="padding:80px 48px"],
  section[style*="padding:72px 48px"],
  section[style*="padding:64px 48px"],
  section[style*="padding:48px 48px"],
  section[style*="padding:0 48px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  div[style*="padding:80px 48px"],
  div[style*="padding:72px 48px"],
  div[style*="padding:64px 48px"],
  div[style*="padding:0 48px 12px"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ── INTRO SECTION ── */
  .intro-section { grid-template-columns: 1fr !important; }
  .intro-media { min-height: 320px; border-radius: 0 0 16px 16px !important; }
  .intro-text { padding: 48px 24px !important; }

  /* ── STATS ── */
  .stats-section {
    grid-template-columns: 1fr 1fr !important;
    margin: 0 24px !important;
  }
  .stat-item:nth-child(2) { border-right: none; }

  /* ── PRODUCTS TRACK ── */
  .products-header { padding: 0 24px 36px !important; flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .products-track { padding: 0 24px 24px !important; }
  .product-card { flex: 0 0 260px !important; height: 380px !important; }

  /* ── INTERLUDE ── */
  .interlude { border-radius: 16px !important; margin: 0 24px !important; height: 50vh !important; }
  .interlude-content { padding: 0 24px !important; }
  .interlude-quote { font-size: clamp(20px, 5vw, 36px) !important; }

  /* ── CATEGORIES GRID ── */
  .categories-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    gap: 10px !important;
  }
  .cat-card--tall { grid-row: span 1 !important; border-radius: 16px !important; }
  .cat-card--wide { grid-column: span 2 !important; border-radius: 16px !important; }

  /* ── PROJECTS GRID ── */
  .projects-section { padding: 60px 24px !important; }
  .projects-grid-mdd {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 280px 280px 280px !important;
    gap: 10px !important;
  }
  .proj-card--hero { grid-row: span 1 !important; grid-column: span 2 !important; }

  /* ── SERVICIOS — alternado ── */
  .svc-card {
    grid-template-columns: 1fr !important;
    margin: 0 24px 10px !important;
    min-height: auto !important;
  }
  .svc-card > div:first-child,
  .svc-card > div:last-child {
    min-height: 280px !important;
  }

  /* ── PROFESIONALES — fullwidth cards ── */
  section.reveal[style*="min-height:520px"] {
    min-height: 480px !important;
    margin: 0 24px 10px !important;
    border-radius: 16px !important;
  }

  /* ── FULLWIDTH BANNER ── */
  .fullwidth-banner { border-radius: 16px !important; margin: 0 24px !important; height: 360px !important; }
  .fullwidth-banner-content { padding: 0 24px !important; }

  /* ── HOME CTA ── */
  .home-cta { grid-template-columns: 1fr !important; padding: 60px 24px !important; gap: 32px !important; }

  /* ── FOOTER ── */
  footer { padding: 48px 24px 24px !important; }
  footer > div[style*="grid-template-columns:2fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  /* ── QUIÉNES SOMOS ── */
  div[style*="grid-template-columns:1fr 1fr;gap:80px"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  div[style*="grid-template-columns:1fr 1fr;gap:64px"] { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* ── MOBILIARIO catálogo mockup ── */
  div[style*="grid-template-columns:0.9fr 1.1fr;gap:72px"] { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* ── PROYECTOS intro ── */
  div[style*="grid-template-columns:1.05fr 0.95fr"] { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* ── CONFIGURADOR swatches ── */
  div[style*="grid-template-columns:repeat(5,1fr)"] { grid-template-columns: repeat(3,1fr) !important; }

  /* ── CONFIGURADOR sidebar ── */
  div[style*="grid-template-columns:300px 1fr"] { grid-template-columns: 1fr !important; }
  #cfgSidebar { max-height:320px !important; border-right:none !important; border-bottom:1.5px solid var(--border); }

  /* ── RECURSOS ── */
  div[style*="grid-template-columns:1fr 1fr;gap:12px"] { grid-template-columns: 1fr !important; }

  /* ── CONFIGURADOR ── */
  .config-wrap { grid-template-columns: 1fr !important; }
  .config-side { border-right: none !important; border-bottom: 1.5px solid var(--border) !important; max-height: none !important; }

  /* ── CONTACTO ── */
  .contact-section { grid-template-columns: 1fr !important; padding: 60px 24px !important; gap: 40px !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .fg.full { grid-column: span 1 !important; }

  /* ── PROYECTOS page ── */
  div[style*="grid-template-columns:1.6fr 1fr 1fr;grid-template-rows:420px"] {
    grid-template-columns: 1fr !important;
    grid-template-rows: 320px 240px 240px !important;
  }
  div[style*="grid-template-columns:1fr 1.6fr;grid-template-rows:340px"] {
    grid-template-columns: 1fr !important;
    grid-template-rows: 240px 280px !important;
  }

  /* ── MOBILIARIO página ── */
  div[style*="grid-template-columns:1.3fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:1fr 1.3fr"] { grid-template-columns: 1fr !important; }

}

@media (max-width: 640px) {

  /* ── HERO ── */
  .hero-h1 { font-size: clamp(28px, 9vw, 48px); }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions a { text-align: center; }

  /* ── STATS ── */
  .stats-section { grid-template-columns: 1fr 1fr !important; margin: 0 16px !important; }
  .stat-item { padding: 28px 16px; }

  /* ── CATEGORIES ── */
  .categories-grid { grid-template-columns: 1fr !important; }
  .cat-card--wide { grid-column: span 1 !important; }

  /* ── PROJECTS GRID ── */
  .projects-grid-mdd {
    grid-template-columns: 1fr !important;
    grid-template-rows: 280px 240px 240px 240px !important;
  }
  .proj-card--hero { grid-column: span 1 !important; }

  /* ── SERVICIOS ── */
  .svc-card { margin: 0 16px 10px !important; }
  .svc-card > div[style*="padding:56px"] { padding: 32px 24px !important; }
  .svc-card > div[style*="padding:60px"] { padding: 32px 24px !important; }

  /* ── PRODUCTS ── */
  .product-card { flex: 0 0 230px !important; height: 340px !important; }

  /* ── FOOTER ── */
  footer > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* ── PROFESIONALES cards ── */
  section.reveal[style*="min-height:520px"] {
    min-height: 560px !important;
    margin: 0 16px 10px !important;
  }
  section.reveal[style*="min-height:520px"] > div[style*="padding:60px"] {
    padding: 28px 20px !important;
  }

  /* ── HOME CTA ── */
  .home-cta-title { font-size: clamp(28px, 8vw, 44px) !important; }

  /* ── INTERLUDE ── */
  .interlude { margin: 0 16px !important; }

  /* ── SECCIONES padding ── */
  section[style*="padding:80px 48px"],
  section[style*="padding:72px 48px"],
  section[style*="padding:64px 48px"] {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* ── 3 columnas → 1 ── */
  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; }

  /* ── QUIÉNES SOMOS equipo fotos ── */
  div[style*="grid-template-columns:1fr 1fr;gap:10px"] { grid-template-columns: 1fr 1fr !important; }

}

/* ─── CONTACTO RESPONSIVE ─── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .contact-grid > div:first-child {
    padding-top: 0 !important;
  }
  /* Reducir padding top en móvil — el nav ya tiene 64px */
  section[style*="padding:120px 48px"] {
    padding-top: 80px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Formulario ocupa todo el ancho */
  .contact-grid form {
    padding: 24px !important;
  }
  /* Botones CTA de contacto en columna */
  .contact-grid > div:first-child > div[style*="display:flex;flex-direction:column"] {
    gap: 8px !important;
  }
  .contact-grid > div:first-child a[style*="border-radius:8px"] {
    font-size: 11px !important;
    padding: 12px 18px !important;
  }
  /* Form grid 2col → 1col */
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  .fg.full {
    grid-column: span 1 !important;
  }
  /* Form footer en columna */
  .form-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

@media (max-width: 640px) {
  section[style*="padding:120px 48px"] {
    padding-top: 72px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 48px !important;
  }
  .contact-title {
    font-size: clamp(28px, 8vw, 44px) !important;
  }
  /* Mapa más pequeño en móvil */
  .map-section { height: 280px !important; }
}
