/* ==========================================================
   MÁRMOLES COLLANTE & CASTRO LTDA — CSS PRINCIPAL
   Versión 1.0 · 2026
   ========================================================== */

/* ----------------------------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  --color-navy:       #0D2B5C;
  --color-blue:       #1565C0;
  --color-blue-light: #4A90D9;
  --color-gold:       #C9A96E;
  --color-gold-light: #E8D5A3;
  --color-bg:         #F8F6F2;
  --color-bg-alt:     #EDE8E0;
  --color-white:      #FFFFFF;
  --color-text:       #1A1A1A;
  --color-text-soft:  #5A5A5A;
  --color-overlay:    rgba(13, 43, 92, 0.45);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-soft: 0 4px 24px rgba(13, 43, 92, 0.08);
  --shadow-card: 0 8px 40px rgba(13, 43, 92, 0.12);
  --shadow-hover: 0 16px 56px rgba(13, 43, 92, 0.20);

  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-height: 80px;
  --container-max: 1320px;
  --container-pad: clamp(24px, 5vw, 80px);
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ----------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------- */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}
h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-navy);
}
h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
}
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.caption {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

/* ----------------------------------------------------------
   4. LAYOUT UTILITIES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-pad {
  padding: clamp(64px, 8vw, 120px) 0;
}

.text-white  { color: var(--color-white) !important; }
.text-navy   { color: var(--color-navy)  !important; }
.text-gold   { color: var(--color-gold)  !important; }

.pos-relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Gold horizontal rules */
hr.gold-line {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold) 20%, var(--color-gold) 80%, transparent);
  width: 0;
  transition: width 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
hr.gold-line.animated { width: 100%; }

/* ----------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border: 2px solid var(--color-blue);
}
.btn-primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.70);
}
.btn-secondary-outline:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
  border: 2px solid var(--color-navy);
}
.btn-navy:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: #25D366;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition);
  width: fit-content;
}
.btn-whatsapp:hover {
  background: #1da851;
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.40);
}

.btn-ghost-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  display: inline-block;
}
.btn-ghost-gold:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* ----------------------------------------------------------
   6. NAVBAR
   ---------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--container-pad);
  max-width: calc(var(--container-max) + 2 * var(--container-pad));
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  transition: var(--transition);
}
.logo-mark {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  transition: color 0.5s ease;
  display: flex;
  align-items: center;
}
.logo-mark svg { display: block; }
.footer-logo-mark svg { display: block; }
.logo-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.5s ease;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.90);
  transition: color 0.35s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--color-white); }

/* CTA button in nav */
.nav-cta {
  padding: 10px 22px;
  background: var(--color-blue);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--color-navy);
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* Gold accent line (bottom of navbar) */
.nav-gold-line {
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scrolled state */
.navbar.scrolled {
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}
.navbar.scrolled .logo-mark { color: var(--color-navy); }
.navbar.scrolled .logo-sub  { color: var(--color-text-soft); }
.navbar.scrolled .nav-links a { color: var(--color-text-soft); }
.navbar.scrolled .nav-links a:hover { color: var(--color-navy); }
.navbar.scrolled .nav-gold-line { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--color-navy); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ----------------------------------------------------------
   7. MOBILE MENU OVERLAY
   ---------------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,43,92,0.60);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 90vw);
  height: 100dvh;
  background: var(--color-bg);
  z-index: 999;
  padding: calc(var(--nav-height) + 32px) 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: right 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -4px 0 48px rgba(13,43,92,0.15);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;
}
.mobile-menu nav a {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-navy);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-bg-alt);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu nav a:last-child { border-bottom: none; }
.mobile-menu nav a:hover { color: var(--color-gold); padding-left: 8px; }

.mobile-menu-footer {
  padding-top: 32px;
  border-top: 1px solid var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-soft);
}
.mobile-contact-item svg { flex-shrink: 0; color: var(--color-gold); }

/* ----------------------------------------------------------
   8. SECTION: HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Video background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video {
  position: absolute;
  inset: -15% 0 -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(13, 43, 92, 0.75) 0%,
    rgba(13, 43, 92, 0.30) 45%,
    rgba(13, 43, 92, 0.10) 100%
  );
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--container-pad) clamp(60px, 8vh, 120px);
  max-width: calc(var(--container-max) + 2 * var(--container-pad));
  margin: 0 auto;
}

.hero-content .caption {
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-bottom: 24px;
}
.hero-title .line-italic {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-gold);
  animation: bounce-scroll 2.2s ease-in-out infinite;
  opacity: 0.85;
  transition: opacity 0.4s ease;
  cursor: pointer;
}
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }
.scroll-indicator svg { display: block; }

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ----------------------------------------------------------
   9. SECTION: STATS / TRAYECTORIA
   ---------------------------------------------------------- */
.section-stats {
  background: var(--color-navy);
  padding: clamp(64px, 8vw, 100px) 0;
  position: relative;
}

.section-stats .container {
  text-align: center;
}
.section-stats h2 {
  max-width: 640px;
  margin: 0 auto 64px;
  color: #FFFFFF;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 24px;
  border-right: 1px solid rgba(201, 169, 110, 0.20);
  transition: background 0.3s ease;
}
.stat-item:last-child {
  border-right: none;
}
.stat-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.stat-ornament {
  width: 32px;
  height: 2px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(64px, 7vw, 100px);
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-value .prefix,
.stat-value .suffix {
  font-size: 0.45em;
  font-weight: 400;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ----------------------------------------------------------
   10. SECTION: MATERIALES PREVIEW
   ---------------------------------------------------------- */
.section-materials {
  position: relative;
  padding: clamp(64px, 8vw, 100px) 0;
  overflow: hidden;
}

.materials-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.materials-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
}
.materials-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 246, 242, 0.82);
  z-index: 1;
}

.materials-content {
  position: relative;
  z-index: 2;
}
.materials-header {
  text-align: center;
  margin-bottom: 56px;
}
.materials-header p {
  font-size: 17px;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 16px auto 0;
}

/* Material cards grid */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.material-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background-color: #0a1628;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.material-card:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: var(--shadow-hover);
}

.card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card-media img,
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.card-media img { transform: scale(1.18); }
.card-media video { opacity: 0; transform: scale(1.18); }
/* Imagen hace zoom pero NO desaparece — el video aparece encima.
   Si el video no tiene frames listos, la imagen sigue visible como respaldo. */
.material-card:hover .card-media img  { transform: scale(1.26); }
.material-card:hover .card-media video { opacity: 1; transform: scale(1.18); }

/* For cards without video — zoom on hover */
.material-card.no-video:hover .card-media img {
  opacity: 1;
  transform: scale(1.18);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,43,92,0.90) 0%, rgba(13,43,92,0.20) 55%, transparent 100%);
  z-index: 1;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-content h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.1;
}
.card-content .card-refs {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.card-content .btn-card {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.50);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  transform: translateY(8px);
  opacity: 0;
  width: fit-content;
}
.material-card:hover .btn-card {
  transform: translateY(0);
  opacity: 1;
}
.card-content .btn-card:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

/* ----------------------------------------------------------
   11. SECTION: PROYECTOS PREVIEW
   ---------------------------------------------------------- */
.section-projects-preview {
  position: relative;
  height: 90vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.project-video-bg video {
  position: absolute;
  inset: -15% 0 -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 92, 0.45);
  z-index: 1;
}

.projects-preview-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--container-pad) clamp(48px, 7vh, 80px);
  max-width: calc(var(--container-max) + 2 * var(--container-pad));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.projects-text { max-width: 500px; }
.projects-text .caption { color: var(--color-gold); }
.projects-text h2 { color: var(--color-white); margin-bottom: 16px; }
.projects-text p {
  color: rgba(255,255,255,0.80);
  font-size: 17px;
  margin-bottom: 28px;
}

/* Thumbnail stack */
.project-thumbs {
  position: relative;
  width: 280px;
  height: 360px;
  flex-shrink: 0;
}
.thumb-card {
  position: absolute;
  width: 200px;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13,43,92,0.40);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}
.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-card:nth-child(1) { top: 0; left: 0; transform: rotate(-4deg); z-index: 3; }
.thumb-card:nth-child(2) { top: 50px; left: 36px; transform: rotate(2deg); z-index: 2; }
.thumb-card:nth-child(3) { top: 100px; left: 72px; transform: rotate(-1deg); z-index: 1; }
.thumb-card:hover { transform: translateY(-10px) rotate(0deg) !important; box-shadow: 0 20px 56px rgba(13,43,92,0.50) !important; z-index: 10 !important; }

/* ----------------------------------------------------------
   12. SECTION: PROCESO  (Atelier Split)
   ---------------------------------------------------------- */

@keyframes cw-slideIn {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes cw-photoIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.section-process {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Gold lines deben aparecer sobre las capas de fondo absoluto */
.section-process hr.gold-line {
  position: relative;
  z-index: 2;
}

/* Capa 0: textura mármol oscuro CSS */
.cw-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0c0908;
  background-image:
    radial-gradient(ellipse 90% 70% at 20% 55%, rgba(201,169,110,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 55% 80% at 82% 28%, rgba(13,43,92,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 65% 75%, rgba(13,43,92,0.30) 0%, transparent 55%),
    repeating-linear-gradient(
      -38deg,
      transparent 0px, transparent 48px,
      rgba(255,255,255,0.014) 48px, rgba(255,255,255,0.014) 50px,
      transparent 50px, transparent 96px
    ),
    repeating-linear-gradient(
      52deg,
      transparent 0px, transparent 72px,
      rgba(201,169,110,0.022) 72px, rgba(201,169,110,0.022) 73px,
      transparent 73px, transparent 145px
    );
}

/* Capa 1: overlay asimétrico beige izquierda / navy derecha */
.cw-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(102deg,
    rgba(248,246,242,0.97) 0%,
    rgba(248,246,242,0.97) 45%,
    rgba(237,232,224,0.78) 54%,
    rgba(13,43,92,0.30)    64%,
    rgba(13,43,92,0.44)   100%
  );
}

/* Capa 2: grid principal */
.cw-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 56fr 44fr;
  align-items: stretch;
}

/* Columna izquierda */
.cw-col-left {
  padding: 96px 56px 96px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Eyebrow */
.cw-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.cw-eyebrow-line {
  width: 30px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}
.cw-eyebrow-text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Título */
.cw-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 300;
  color: var(--color-navy);
  margin-bottom: 64px;
  line-height: 1.07;
  max-width: 460px;
  text-wrap: pretty;
}

/* Timeline */
.cw-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}
.cw-timeline-line {
  position: absolute;
  left: 27px;
  top: 56px;
  height: calc(100% - 64px);
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(201,169,110,0.85) 0%,
    rgba(232,213,163,0.65) 50%,
    rgba(201,169,110,0.35) 100%
  );
  z-index: 0;
}

/* Pasos */
.cw-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  cursor: default;
}
.cw-step:last-child { margin-bottom: 0; }

.cw-step:nth-child(2) { animation: cw-slideIn 0.7s cubic-bezier(.22,.68,0,1.2) 0.08s both; }
.cw-step:nth-child(3) { animation: cw-slideIn 0.7s cubic-bezier(.22,.68,0,1.2) 0.22s both; }
.cw-step:nth-child(4) { animation: cw-slideIn 0.7s cubic-bezier(.22,.68,0,1.2) 0.36s both; }
.cw-step:nth-child(5) { animation: cw-slideIn 0.7s cubic-bezier(.22,.68,0,1.2) 0.50s both; }

.cw-disc {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  background: rgba(248,246,242,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.05em;
  transition: background 0.38s ease, color 0.38s ease, box-shadow 0.38s ease;
  position: relative;
  z-index: 1;
}
.cw-step:hover .cw-disc {
  background: var(--color-navy);
  color: var(--color-gold);
  box-shadow: 0 0 0 6px rgba(201,169,110,0.14);
}

.cw-step-body { padding-top: 10px; }

.cw-step-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 7px;
  transition: color 0.3s ease;
}
.cw-step:hover .cw-step-title { color: #8a6d3e; }

.cw-step-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-soft);
  line-height: 1.75;
}

/* Columna derecha */
.cw-col-right {
  padding: 80px 80px 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Panel fotográfico */
.cw-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 48px 96px rgba(13,43,92,0.40),
    0 8px 28px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(201,169,110,0.18);
  animation: cw-photoIn 1s cubic-bezier(.22,.68,0,1.1) 0.2s both;
}
.cw-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cw-photo-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top,
    rgba(13,43,92,0.80) 0%,
    rgba(13,43,92,0.30) 55%,
    transparent 100%
  );
}
.cw-photo-accent {
  position: absolute;
  top: 28px; left: 28px;
  width: 40px; height: 1px;
  background: var(--color-gold);
}
.cw-photo-label {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cw-photo-label-line {
  width: 20px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}
.cw-photo-label em {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ----------------------------------------------------------
   13. SECTION: TESTIMONIOS
   ---------------------------------------------------------- */
.section-testimonials {
  background: var(--color-bg);
  padding: clamp(64px, 8vw, 100px) 0;
  overflow: hidden;
}

.section-testimonials .container { text-align: center; }
.section-testimonials h2 { max-width: 640px; margin: 0 auto 56px; }

/* Carousel */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 clamp(16px, 4vw, 80px);
}

.testimonial-inner {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(40px, 4vw, 64px);
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  border-left: 4px solid var(--color-gold);
  text-align: left;
}

.quote-mark {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-heading);
  font-size: 100px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-gold-light);
  opacity: 0.5;
  user-select: none;
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.stars span { color: var(--color-gold); font-size: 18px; }

.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.04em;
}
.author-city {
  font-size: 13px;
  color: var(--color-text-soft);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-gold-light);
  background: transparent;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}
.carousel-btn svg { width: 18px; height: 18px; }

.carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold-light);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-gold);
  width: 24px;
  border-radius: 4px;
}

/* ----------------------------------------------------------
   14. SECTION: CONTACTO / CTA FINAL
   ---------------------------------------------------------- */
.section-contact {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(64px, 8vw, 100px) 0;
}

.contact-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.contact-video-bg video {
  position: absolute;
  inset: -15% 0 -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: 50% 75%;
  will-change: transform;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 92, 0.68);
  z-index: 1;
}

.contact-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* Left column */
.contact-left .caption { color: var(--color-gold); }
.contact-left h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}
.contact-left > p {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.contact-info {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
}
.contact-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Right column — glassmorphism form */
.contact-form-wrap {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--color-white);
  font-size: 15px;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.65); }
.form-group select option { background: var(--color-navy); color: var(--color-white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.14);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Estado de error de campo (fondo oscuro del formulario — variante clara de #c0392b para contraste) */
.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
  border-color: #ff8a80;
  background: rgba(192,57,43,0.14);
}
.field-error {
  display: none;
  font-size: 12.5px;
  color: #ff8a80;
  margin-top: 2px;
}
.field-error.show { display: block; }

.btn-submit {
  padding: 16px;
  background: var(--color-blue);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,101,192,0.40);
}

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
}
.form-success.show { display: flex; }
.success-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-white);
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.form-success p {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
}

/* ----------------------------------------------------------
   15. FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 36px;
}

.footer-gold-line {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold) 20%, var(--color-gold) 80%, transparent);
  margin-bottom: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 60px);
  margin-bottom: 56px;
}

/* Footer logo */
.footer-logo-mark {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 4px;
}
.footer-logo-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  opacity: 0.7;
  margin-bottom: 20px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.60);
  max-width: 260px;
  margin-bottom: 24px;
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.70);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}
.social-link svg { width: 16px; height: 16px; }

/* Footer column titles */
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--color-gold-light); }

/* Footer contact */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.40);
}

/* ----------------------------------------------------------
   16. SCROLL REVEAL HELPERS
   ---------------------------------------------------------- */
.reveal-up,
.reveal-stagger > * {
  opacity: 1; /* GSAP handles the from state — fallback si la animación no completa */
}

/* ----------------------------------------------------------
   17. MATERIALES PAGE — CATALOG
   ---------------------------------------------------------- */

/* Page hero (50vh) */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img,
.page-hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,43,92,0.80) 0%, rgba(13,43,92,0.30) 70%, transparent 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--container-pad) 48px;
  max-width: calc(var(--container-max) + 2 * var(--container-pad));
  margin: 0 auto;
  width: 100%;
}
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--color-gold-light); }
.breadcrumb a:hover { color: var(--color-gold); }
.page-hero-content h1 { color: var(--color-white); }

/* Tabs navigation */
.material-tabs {
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-bg-alt);
  box-shadow: var(--shadow-soft);
}
.tabs-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0 var(--container-pad);
  max-width: calc(var(--container-max) + 2 * var(--container-pad));
  margin: 0 auto;
  gap: 0;
  scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 18px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-soft);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.tab-btn:hover { color: var(--color-navy); }
.tab-btn.active {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
  font-weight: 600;
}

/* Material sections */
.material-section { padding: 80px 0; scroll-margin-top: calc(var(--nav-height) + 60px); }
.material-section:nth-child(even) { background: var(--color-bg-alt); }
.material-section-header {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.material-section-header .divider-title {
  display: flex;
  align-items: center;
  gap: 24px;
}
.divider-title h2 { white-space: nowrap; }
.divider-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-gold), transparent);
}
.material-description {
  font-size: 16px;
  color: var(--color-text-soft);
  max-width: 760px;
  line-height: 1.7;
}

/* Reference cards grid */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.ref-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  cursor: pointer;
}
.ref-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.ref-card-img {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
}
.ref-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ref-card:hover .ref-card-img img { transform: scale(1.06); }

/* WhatsApp hover overlay on ref card */
.ref-card-img .sample-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 10px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  display: block;
  text-decoration: none;
}
.ref-card:hover .sample-btn { opacity: 1; transform: translateY(0); }

.ref-card-body { padding: 16px; }
.ref-card-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.ref-card-body .ref-desc {
  font-size: 12px;
  color: var(--color-text-soft);
  margin-bottom: 10px;
  line-height: 1.4;
}
.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  padding: 3px 9px;
  background: var(--color-bg-alt);
  color: var(--color-navy);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ----------------------------------------------------------
   18. PROYECTOS PAGE
   ---------------------------------------------------------- */
.filter-bar {
  padding: 32px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-bg-alt);
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
}
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-pill {
  padding: 8px 22px;
  border: 1.5px solid var(--color-bg-alt);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-soft);
  background: var(--color-white);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.filter-pill:hover { border-color: var(--color-gold); color: var(--color-navy); }
.filter-pill.active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* Masonry grid */
.masonry-grid {
  columns: 4;
  column-gap: 20px;
  padding: 40px 0 80px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,43,92,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  flex-direction: column;
  justify-content: flex-end;
}
.masonry-item:hover .masonry-item-overlay { opacity: 1; }
@media (hover: none) { .masonry-item-overlay { opacity: 0.85; } }
.masonry-item-overlay h4 {
  font-family: var(--font-heading);
  color: white;
  font-size: 18px;
  font-weight: 500;
}
.masonry-item-overlay span {
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Galería dinámica — estados de carga y error */
.galeria-cargando {
  columns: 4;
  column-gap: 20px;
  width: 100%;
}
.galeria-skeleton {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, #e8e8e8 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  height: 240px;
}
.galeria-skeleton:nth-child(2) { height: 320px; }
.galeria-skeleton:nth-child(3) { height: 200px; }
.galeria-skeleton:nth-child(4) { height: 280px; }
.galeria-skeleton:nth-child(5) { height: 360px; }
.galeria-skeleton:nth-child(6) { height: 220px; }
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.galeria-vacia,
.galeria-error {
  padding: 80px 20px;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 15px;
  column-span: all;
}
.galeria-error { color: #c0392b; }
@media (max-width: 900px) { .galeria-cargando { columns: 2; } }
@media (max-width: 540px) { .galeria-cargando { columns: 1; } }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,43,92,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0,0,0,0.40);
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.lightbox-close:hover { background: var(--color-gold); }

/* ----------------------------------------------------------
   19. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */

/* 1200px — large grid: 3 columns, tarjetas 4 y 5 centradas en la 2ª fila */
@media (max-width: 1200px) {
  /* Grid interno de 6 cols → 3 cards visualmente por fila, fila 2 centrada */
  .materials-grid { grid-template-columns: repeat(6, 1fr); }
  .material-card { grid-column: span 2; }
  .material-card:nth-child(4) { grid-column: 2 / 4; }
  .material-card:nth-child(5) { grid-column: 4 / 6; }

  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .masonry-grid { columns: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .cw-col-left { padding: 80px 40px 80px 56px; }
  .cw-title { font-size: 46px; }
}

/* 1024px — tablet landscape */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(201, 169, 110, 0.20); }

  /* Grid heredado de 1200px (6 cols / 3 visuals) — solo reducir altura */
  .material-card { height: 360px; }

  .projects-preview-content { flex-direction: column; align-items: flex-start; }
  .project-thumbs { display: none; }

  .cw-grid { grid-template-columns: 1fr; }
  .cw-col-right { order: -1; padding: 56px 32px 0 32px; }
  .cw-col-left  { padding: 48px 32px 72px 32px; }
  .cw-photo-wrap { aspect-ratio: 1 / 1; max-width: 100%; border-radius: 16px; }
  .cw-title { font-size: 42px; }
  .cw-overlay { background: linear-gradient(180deg, rgba(248,246,242,0.97) 0%, rgba(248,246,242,0.97) 100%); }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .masonry-grid { columns: 2; }
}

/* 768px — tablet portrait: 2 columnas, 5ª tarjeta centrada */
@media (max-width: 768px) {
  :root { --nav-height: 68px; }

  /* Grid interno 4 cols → 2 cards visualmente por fila, tarjeta 5 centrada */
  .materials-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .material-card { grid-column: span 2; height: 300px; }
  .material-card:nth-child(4) { grid-column: span 2; }
  .material-card:nth-child(5) { grid-column: 2 / 4; }

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

  .form-row { grid-template-columns: 1fr; }

  .footer { padding: 48px 0 28px; }
  .footer-gold-line { margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr; margin-bottom: 36px; }
  .footer-desc { max-width: 100%; }

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

/* 480px — móvil */
@media (max-width: 480px) {
  .hero { min-height: 600px; }
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  /* Heredada de 768px (4 cols, 5ª centrada) — ajustar altura y gaps */
  .materials-grid { gap: 10px; }
  .material-card { height: 210px; }
  .card-content h3 { font-size: 18px; }
  .card-content .card-refs { display: none; }

  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(201, 169, 110, 0.18); padding: 40px 24px; }
  .stat-item:last-child { border-bottom: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(201, 169, 110, 0.18); }

  .cw-title     { font-size: 34px; }
  .cw-step-title { font-size: 19px; }
  .cw-disc { width: 48px; height: 48px; min-width: 48px; }

  .testimonial-inner { padding: 28px 20px; }
  .quote-mark { font-size: 64px; right: 16px; top: 16px; }

  .section-contact { min-height: auto; }
  .btn-whatsapp { width: 100%; justify-content: center; }

  .footer { padding: 40px 0 24px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .masonry-grid { columns: 1; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------
   20. ACCESSIBILITY & REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-indicator { animation: none; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 20px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 9999;
  transition: top 0.3s;
}
.skip-link:focus { top: 16px; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ============================================================
   REDUCED MOTION — forzar visibilidad de elementos animados
   gsap.from() pone opacity:0; CSS !important lo gana siempre
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-stagger > *,
  section h2:not(.no-reveal),
  .hero-content .caption,
  .hero-title .line-main,
  .hero-title .line-italic,
  .hero-subtitle,
  .hero-buttons,
  .scroll-indicator {
    opacity: 1 !important;
    transform: none !important;
  }
  hr.gold-line {
    opacity: 1 !important;
  }
  .cw-step,
  .cw-photo-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
