/* ═══════════════════════════════════════════════════════════════════ 
   ANG CARPINTERÍA - RESPONSIVE DESIGN 
   Mobile First · Tablet · Desktop 
   ═══════════════════════════════════════════════════════════════════ */

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

:root { 
    --ink: #0b0a09; 
    --ash: #1c1a17; 
    --smoke: #2e2b27; 
    --gold: #c9a96e; 
    --gold2: #a8864f; 
    --cream: #ece8e0; 
    --white: #f5f3ef; 
    --serif: 'Cormorant Garamond', Georgia, serif; 
    --sans: 'Jost', sans-serif; 
}

html { scroll-behavior: smooth; }

body { 
    background: var(--ink); 
    color: var(--cream); 
    font-family: var(--sans); 
    font-weight: 300; 
    line-height: 1.7; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

/* ── NAV HEADER ── */
.nav-header { 
    position: fixed; 
    top: 0; left: 0; right: 0; 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 14px 20px; 
    background: linear-gradient(to bottom, rgba(11,10,9,.9) 0%, transparent 100%); 
    transition: background 0.4s; 
}

.nav-header.scrolled { background: rgba(11,10,9,.97); }

/* ── LOGOTIPO CORPORATIVO (REGLA DE ORO APLICADA) ── */
.nav-logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    /* Aumentamos la altura para que sea más visible */
    height: 60px; 
    z-index: 102;
}

.nav-logo:hover .custom-logo {
    filter: brightness(1.05) !important;
}

/* HAMBURGUESA — siempre visible en móvil */
.menu-toggle { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    gap: 6px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 8px; 
    z-index: 102; 
    width: 40px; 
    height: 40px; 
}

.menu-toggle span { 
    display: block; 
    width: 26px; 
    height: 2px; 
    background: var(--gold); 
    border-radius: 2px; 
    transition: all 0.3s ease; 
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* MENÚ DESPLEGABLE MÓVIL */
.nav-menu { 
    position: fixed; 
    top: 0; left: 0; right: 0; 
    background: rgba(11,10,9,.98); 
    padding: 80px 30px 40px; 
    display: none; 
    flex-direction: column; 
    gap: 0; 
    z-index: 99; 
    min-height: 100vh; 
    border-bottom: 1px solid rgba(201,169,110,.15); 
}

.nav-menu.active { display: flex; }

.nav-links { display: flex; flex-direction: column; list-style: none; gap: 0; }

.nav-links li a { 
    font-family: var(--sans); 
    font-size: 0.8rem; 
    letter-spacing: 0.22em; 
    text-transform: uppercase; 
    color: var(--cream); 
    text-decoration: none; 
    display: block; 
    padding: 18px 0; 
    border-bottom: 1px solid rgba(201,169,110,.1); 
    transition: color 0.25s; 
}

.nav-links li a:hover, .nav-links li a:active { color: var(--gold); }

.nav-cta { 
    display: inline-block; 
    margin-top: 30px; 
    font-family: var(--sans); 
    font-size: 0.65rem; 
    letter-spacing: 0.2em; 
    text-transform: uppercase; 
    color: var(--gold); 
    text-decoration: none; 
    border: 1px solid var(--gold2); 
    padding: 14px 24px; 
    text-align: center; 
    transition: background 0.25s, color 0.25s; 
    width: fit-content; 
}

.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* DESKTOP (768px+) */
@media (min-width: 768px) { 
    .nav-header { padding: 20px 40px; }
    .menu-toggle { display: none !important; }
    .nav-menu { 
        position: static; 
        display: flex !important; 
        flex-direction: row; 
        align-items: center; 
        background: none; 
        padding: 0; 
        min-height: unset; 
        gap: 44px; 
        border-bottom: none; 
    }
    .hero { height: calc(100vh - 70px); margin-top: 70px;}
    .nav-links { flex-direction: row; gap: 44px; align-items: center; }
    .nav-links li a { font-size: 0.7rem; padding: 0; border-bottom: none; opacity: 0.75; }
    .nav-links li a:hover { opacity: 1; color: var(--gold); }
    .nav-cta { margin-top: 0; padding: 10px 22px; font-size: 0.65rem; } 
}

@media (min-width: 1024px) { .nav-header { padding: 28px 60px; } }
@media (min-width: 1440px) { .nav-header { padding: 28px 80px; } }

/* HERO SECTION */
.hero { 
    position: relative; 
    min-height: 60vh; 
    height: 60vh; 
    overflow: hidden; 
    display: flex; 
    align-items: flex-end; 
    padding-top: 60px; 
}

@media (min-width: 768px) { .hero { min-height: 100vh; height: 100vh; } }

.slide { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transition: opacity 1.2s ease; 
}

.slide.active { opacity: 1; }

.slide::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(135deg, rgba(11,10,9,.55) 0%, rgba(11,10,9,.2) 50%, rgba(11,10,9,.65) 100%); 
}

.slide-1 { background-image: url('img/webp/as_image1.webp'); } 
.slide-2 { background-image: url('img/webp/sb_image1.webp'); }

.hero-content { position: relative; z-index: 2; padding: 30px 20px 40px; max-width: 100%; width: 100%; }

.hero-label { 
    font-family: var(--sans); 
    font-size: 0.55rem; 
    letter-spacing: 0.3em; 
    text-transform: uppercase; 
    color: var(--gold); 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.hero-label::before { content: ''; display: block; width: 25px; height: 1px; background: var(--gold); }

.hero-title { 
    font-family: var(--serif); 
    font-size: clamp(1.4rem, 4vw, 5rem); 
    font-weight: 300; 
    line-height: 1.1; 
    color: var(--white); 
    margin-bottom: 12px; 
}

.hero-title em { font-style: italic; color: var(--gold); }

.hero-sub { 
    font-size: 0.75rem; 
    letter-spacing: 0.06em; 
    line-height: 1.6; 
    color: rgba(236,232,224,.7); 
    max-width: 100%; 
    margin-bottom: 20px; 
}

.hero-content > div { display: flex; flex-direction: column; gap: 12px; }

.btn-primary, .btn-ghost { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    font-family: var(--sans); 
    font-size: 0.6rem; 
    letter-spacing: 0.18em; 
    text-transform: uppercase; 
    text-decoration: none; 
    transition: all 0.25s; 
    width: fit-content; 
}

.btn-primary { color: var(--ink); background: var(--gold); padding: 10px 20px; }
.btn-primary:hover { background: var(--cream); transform: translateX(2px); }

.btn-ghost { 
    color: var(--cream); 
    border-bottom: 1px solid rgba(236,232,224,.3); 
    padding-bottom: 4px; 
    font-size: 0.55rem; 
}

.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.hero-dots { position: absolute; bottom: 30px; right: 20px; z-index: 2; display: flex; gap: 8px; }

.dot { width: 20px; height: 1px; background: rgba(201,169,110,.35); cursor: pointer; transition: all 0.3s; }
.dot.active { background: var(--gold); height: 2px; }

.hero-scroll { 
    position: absolute; 
    bottom: 20px; 
    left: 20px; 
    z-index: 2; 
    display: none; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.6rem; 
    letter-spacing: 0.25em; 
    text-transform: uppercase; 
    color: rgba(236,232,224,.4); 
}

.scroll-line { 
    width: 1px; 
    height: 40px; 
    background: rgba(201,169,110,.4); 
    animation: scrollPulse 2s ease-in-out infinite; 
}

@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* SECTIONS */
section { padding: 60px 20px; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.section-label { 
    font-family: var(--sans); 
    font-size: 0.65rem; 
    letter-spacing: 0.25em; 
    text-transform: uppercase; 
    color: var(--gold); 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }

.section-title { 
    font-family: var(--serif); 
    font-size: clamp(1.6rem, 4vw, 3.2rem); 
    font-weight: 300; 
    line-height: 1.15; 
    color: var(--white); 
    margin-bottom: 16px; 
}

.section-title em { font-style: italic; color: var(--gold); }

.section-body { font-size: 0.85rem; line-height: 1.8; color: rgba(236,232,224,.7); }

.rule { width: 40px; height: 1px; background: var(--gold); margin: 20px 0; }

/* MANIFESTO */
.manifesto { 
    background: linear-gradient(135deg, rgba(28,26,23,.6), rgba(46,43,39,.6)), url('img/webp/as_image2.webp') center/cover; 
}

.manifesto-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.manifesto-quote { 
    font-family: var(--serif); 
    font-size: clamp(1.4rem, 4vw, 2.4rem); 
    font-weight: 400; 
    font-style: italic; 
    color: var(--white); 
    margin: 24px 0; 
    line-height: 1.3; 
}

.manifesto-attr { font-size: 0.75rem; color: rgba(236,232,224,.5); margin-top: 20px; }

* ── ESPACIOS GRID ── */
  .espacios { background: var(--ash); padding: 120px 60px; }
  .espacios-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 70px;
  }
  .espacios-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
  }
  .espacio-card {
    position: relative; overflow: hidden;
    cursor: pointer;
  }
  .espacio-card:first-child { grid-row: 1 / 3; }
  .espacio-card img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    transition: transform .7s ease;
    min-height: 260px;
  }
  .espacio-card:first-child img { min-height: 560px; }
  .espacio-card:hover img { transform: scale(1.04); }
  .espacio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,10,9,.78) 0%, transparent 55%);
    display: flex; align-items: flex-end;
    padding: 28px;
    transition: background .4s;
  }
  .espacio-card:hover .espacio-overlay {
    background: linear-gradient(to top, rgba(11,10,9,.88) 0%, rgba(11,10,9,.2) 70%);
  }
  .espacio-info {}
  .espacio-num {
    font-size: .58rem; letter-spacing: .25em; color: var(--gold);
    font-family: var(--sans); margin-bottom: 6px;
  }
  .espacio-name {
    font-family: var(--serif); font-size: 1.5rem; font-weight: 400;
    color: var(--white); line-height: 1.15;
  }
  .espacio-tag {
    font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
    color: rgba(236,232,224,.5); margin-top: 6px;
  }
  .espacio-arrow {
    display: inline-block; margin-top: 14px;
    font-size: .62rem; letter-spacing: .2em; color: var(--gold);
    opacity: 0; transform: translateX(-8px);
    transition: opacity .3s, transform .3s;
  }
  .espacio-card:hover { opacity: 1; transform: translateX(0); }


@media (min-width: 768px) { .espacio-card { max-height: none; } }

.espacio-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.espacio-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(180deg, rgba(11,10,9,0) 0%, rgba(11,10,9,.8) 70%); 
    display: flex; 
    align-items: flex-end; 
    padding: 24px; 
    opacity: 0; 
    transition: opacity 0.3s; 
}

.espacio-card:hover .espacio-overlay { opacity: 1; }

.espacio-info { width: 100%; }

.espacio-num { font-family: var(--serif); font-size: 2rem; color: var(--gold); margin-bottom: 8px; }

.espacio-name { 
    font-family: var(--serif); 
    font-size: clamp(1.2rem, 3vw, 1.6rem); 
    font-weight: 400; 
    color: var(--white); 
    margin-bottom: 8px; 
    line-height: 1.2; 
}

.espacio-tag { font-size: 0.75rem; color: rgba(236,232,224,.6); line-height: 1.6; }

/* FILOSOFÍA */
.filosofia { 
    background: linear-gradient(135deg, rgba(28,26,23,.6), rgba(46,43,39,.6)), url('img/webp/filosofia.webp') center/cover; 
}

.filosofia-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.filosofia-body { 
    font-size: 0.9rem; 
    line-height: 1.8; 
    color: rgba(236,232,224,.7); 
    margin-top: 16px; 
}

/* PILARES */
.pilares { display: grid; grid-template-columns: 1fr; gap: 40px; }

.pilares-header { grid-column: 1 / -1; }

.pilares-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pilares-grid picture,
.pilares-grid img {
  width: 100%;
  height: auto;
  display: block;
}


.pilar-img img { 
    height: auto; 
    display: block; 
    border-radius: 2px; 
    max-height: 350px; 
    object-fit: cover; 
}

.pilares-text { display: grid; grid-template-columns: 1fr; gap: 32px; }

.pilar-item { border-left: 2px solid var(--gold); padding-left: 20px; }

.pilar-num { font-family: var(--serif); font-size: 1.8rem; color: var(--gold); margin-bottom: 8px; font-weight: 300; }

.pilar-title { 
    font-family: var(--serif); 
    font-size: clamp(1.1rem, 2.5vw, 1.4rem); 
    font-weight: 400; 
    color: var(--white); 
    margin-bottom: 12px; 
}

.pilar-body { font-size: 0.8rem; line-height: 1.8; color: rgba(236,232,224,.6); }

/* INGENIERÍA */
.ingenieria { 
    background: linear-gradient(135deg, rgba(28,26,23,.6), rgba(46,43,39,.6)), url('img/webp/ingenieria.webp') center/cover; 
}

.ingenieria-inner { max-width: 720px; margin: 0 auto; }

.ing-stats { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 20px; 
    margin-top: 32px; 
}

.ing-stat-num { 
    font-family: var(--serif); 
    font-size: clamp(1.8rem, 4vw, 2.4rem); 
    color: var(--gold); 
    font-weight: 400; 
    margin-bottom: 8px; 
}

.ing-stat-label { 
    font-size: 0.7rem; 
    color: rgba(236,232,224,.6); 
    letter-spacing: 0.08em; 
    line-height: 1.6; 
}

/* PROCESO */
.proceso { display: grid; grid-template-columns: 1fr; gap: 40px; }

.proceso-header { grid-column: 1 / -1; }

.proceso-img { grid-column: 1 / -1; }

.proceso-img img { 
    width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 2px; 
    max-height: 350px; 
    object-fit: cover; 
}

.proceso-text { grid-column: 1 / -1; }

.proceso-steps { display: grid; grid-template-columns: 1fr; gap: 24px; }

.paso { 
    display: flex; 
    gap: 16px; 
    padding: 16px; 
    background: rgba(28,26,23,.4); 
    border-left: 2px solid var(--gold); 
    border-radius: 2px; 
}

.paso-num { 
    font-family: var(--serif); 
    font-size: 1.6rem; 
    color: var(--gold); 
    min-width: 40px; 
    font-weight: 300; 
}

.paso-title { 
    font-family: var(--serif); 
    font-size: 1.1rem; 
    color: var(--white); 
    margin-bottom: 8px; 
    font-weight: 400; 
}

.paso-desc { font-size: 0.8rem; color: rgba(236,232,224,.6); line-height: 1.6; }

/* SOSTENIBILIDAD */
.sostenibilidad { 
    background: linear-gradient(135deg, rgba(28,26,23,.6), rgba(46,43,39,.6)), url('img/webp/sostenibilidad.webp') center/cover; 
}

.sost-inner { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }

.sost-badge { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.badge { 
    display: inline-block; 
    background: rgba(201,169,110,.15); 
    border: 1px solid var(--gold); 
    color: var(--gold); 
    padding: 8px 16px; 
    font-size: 0.7rem; 
    letter-spacing: 0.1em; 
    border-radius: 2px; 
}

.sost-points { list-style: none; }

.sost-points li { 
    padding: 12px 0; 
    border-bottom: 1px solid rgba(201,169,110,.1); 
    font-size: 0.85rem; 
    color: rgba(236,232,224,.7); 
    line-height: 1.6; 
}

.sost-points li:last-child { border-bottom: none; }

/* MATERIALES */
.materiales { 
    background: linear-gradient(135deg, rgba(28,26,23,.6), rgba(46,43,39,.6)), url('img/webp/matriz_de_maderas.webp') center/cover; 
}

.materiales-inner { max-width: 900px; margin: 0 auto; }

.mat-stats { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 20px; 
    margin-top: 32px; 
}

.mat-stat-num { 
    font-family: var(--serif); 
    font-size: clamp(1.8rem, 4vw, 2.4rem); 
    color: var(--gold); 
    font-weight: 400; 
    margin-bottom: 8px; 
}

/* CTA */
.cta { 
    background: linear-gradient(135deg, rgba(28,26,23,.8), rgba(46,43,39,.8)), url('img/webp/fin.webp') center/cover; 
    text-align: center; 
}

.cta-inner { max-width: 720px; margin: 0 auto; }

.cta-title { 
    font-family: var(--serif); 
    font-size: clamp(1.8rem, 5vw, 3rem); 
    font-weight: 300; 
    color: var(--white); 
    margin-bottom: 16px; 
    line-height: 1.2; 
}

.cta-title em { color: var(--gold); font-style: italic; }

.cta-sub { 
    font-size: 0.9rem; 
    line-height: 1.8; 
    color: rgba(236,232,224,.7); 
    margin-bottom: 32px; 
    max-width: 100%; 
}

.cta-buttons { display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* FOOTER */
footer { background: var(--ash); border-top: 1px solid var(--smoke); padding: 60px 20px 20px; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1200px; margin: 0 auto 40px; }

.footer-brand-name { font-family: var(--serif); font-size: 1.4rem; color: var(--white); margin-bottom: 12px; font-weight: 400; }
.footer-brand-name span { color: var(--gold); }

.footer-tagline { font-size: 0.8rem; color: rgba(236,232,224,.6); line-height: 1.8; }

.footer-col { text-align: left; }
.footer-col h4 { font-family: var(--serif); font-size: 1rem; color: var(--white); margin-bottom: 16px; font-weight: 400; }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a { color: rgba(236,232,224,.6); text-decoration: none; font-size: 0.8rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 16px; 
    text-align: center; 
    padding-top: 20px; 
    border-top: 1px solid var(--smoke); 
    font-size: 0.75rem; 
    color: rgba(236,232,224,.4); 
    max-width: 1200px; 
    margin: 0 auto; 
}

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.footer-legal a { color: rgba(236,232,224,.4); text-decoration: none; transition: color 0.25s; }
.footer-legal a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════════ 
   TABLET (768px) 
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) { 
    .nav-header { padding: 20px 40px; } 
    
    .hero-content { padding: 60px 40px 80px; max-width: 680px; } 
    .hero-scroll { display: flex !important; } 
    
    section { padding: 80px 40px; } 
    

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

  .pilares-grid img {
    max-height: 400px;
  }

    .pilares-text { grid-template-columns: 1fr; } 
    
    .proceso { grid-template-columns: 1fr 1fr; } 
    .proceso-header { grid-column: 1 / -1; } 
    .proceso-img { grid-column: 1 / -1; } 
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } 
    .cta-buttons { flex-direction: row; justify-content: center; } 
}

/* ═══════════════════════════════════════════════════════════════════ 
   DESKTOP (1024px) 
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) { 
    .nav-header { padding: 28px 60px; } 
    
    .hero-content { padding: 80px 60px 100px; max-width: 680px; } 
    .hero-dots { right: 60px; } 
    .hero-scroll { left: 60px; } 
    
    section { padding: 100px 60px; } 
    
    .espacios-grid { grid-template-columns: repeat(3, 1fr); } 
    
    .pilares { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } 
    .pilares-header { grid-column: 1 / -1; } 
    .pilares-grid { grid-template-columns: 1fr 1fr; gap: 60px; grid-column: 1 / -1; } 
    .pilar-img { grid-column: 1; grid-row: 1 / 3; } 
    .pilares-text { grid-column: 2; } 
    
    .proceso { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } 
    .proceso-header { grid-column: 1 / -1; } 
    .proceso-img { grid-column: 1; grid-row: 2; } 
    .proceso-text { grid-column: 2; grid-row: 2; } 
    
    .sost-inner { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } 
    
    .footer-grid { grid-template-columns: repeat(4, 1fr); } 
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; } 
    .footer-legal { justify-content: flex-end; } 
}

/* ═══════════════════════════════════════════════════════════════════ 
   LARGE DESKTOP (1440px) 
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) { 
    .nav-header { padding: 28px 80px; } 
    .hero-content { padding: 100px 80px 120px; } 
    .hero-dots { right: 80px; } 
    .hero-scroll { left: 80px; } 
    section { padding: 120px 80px; } 
    .ing-stats, .mat-stats { grid-template-columns: repeat(4, 1fr); } 
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) { 
    *, *::before, *::after { 
        animation-duration: 0.01ms !important; 
        animation-iteration-count: 1 !important; 
        transition-duration: 0.01ms !important; 
    } 
}

@media (max-height: 600px) { 
    .hero { min-height: auto; height: auto; padding: 120px 20px 40px; } 
    .hero-content { padding: 20px 0 20px; } 
}

@media print { .nav-header, .hero-scroll, .hero-dots { display: none; } }

/* ── PARALLAX Y AJUSTES IOS ── */
@media (min-width: 1024px) { 
    .manifesto, .filosofia, .ingenieria, .sostenibilidad, .materiales, .cta { background-attachment: fixed; } 
}

@media (max-width: 768px) {
    .espacio-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.espacio-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(180deg, rgba(11,10,9,0) 0%, rgba(11,10,9,.8) 70%); 
    display: flex; 
    align-items: flex-end; 
    padding: 24px; 
    opacity: 0; 
    transition: opacity 0.3s; 
}

.espacio-card:hover .espacio-overlay { opacity: 1; }

.espacio-info { width: 100%; }

.espacio-num { font-family: var(--serif); font-size: 2rem; color: var(--gold); margin-bottom: 8px; }

.espacio-name { 
    font-family: var(--serif); 
    font-size: clamp(1.2rem, 3vw, 1.6rem); 
    font-weight: 400; 
    color: var(--white); 
    margin-bottom: 8px; 
    line-height: 1.2; 
}

.espacio-tag { font-size: 0.75rem; color: rgba(236,232,224,.6); line-height: 1.6; }
    /* Forzar todas las cuadrículas a 1 sola columna en móviles */
    .espacios-grid, 
    .pilares-grid, 
    .proceso, 
    .materiales, 
    .footer-grid, 
    .ing-stats, 
    .sost-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    /* Ajustar espacios internos y tamaños de fuente */
    nav { padding: 20px !important; }
    .hero-title { font-size: 2rem !important; }
    .hero-content { left: 20px !important; bottom: 10vh !important; }
    
    /* Asegurar que las imágenes no se deformen */
    .proceso-img img, .pilar-img img { height: auto !important; }
    
    /* Ajustar el footer para que sea legible */
    .footer-col { margin-bottom: 30px; }
}
}