:root {
  --black:      #0A0705;
  --choco-dark: #1C1007;
  --cacao:      #2A1A0E;
  --tierra:     #3D2410;
  --chocolate:  #5C3317;
  --cobre:      #8B5E3C;
  --cuero:      #B07D52;
  --arena:      #C4A882;
  --crema:      #E0CCAA;
  --marfil:     #EDE0CC;
  --blanco:     #F7F2EA;
  --light-bg:   #F7F0E6;
  --gray-mid:   #7A716A;
  --gray-light: #B8B0A8;
  --gold:       #C8922A;
  --font-d:     'Playfair Display', Georgia, serif;
  --font-ui:    'Outfit', 'Segoe UI', sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x:      clamp(20px, 5vw, 80px);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html  { scroll-behavior: smooth; }
body  { background: var(--black); color: var(--marfil); font-family: var(--font-ui);
        overflow-x: hidden; -webkit-font-smoothing: antialiased; position: relative; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
img   { display: block; max-width: 100%; }
button{ font-family: inherit; cursor: pointer; }

/* Global Texture Overlay */
body::after {
  content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Accessibility */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; top: -50px; left: 0; background: var(--gold);
  color: var(--black); padding: 10px 16px; z-index: 10000;
  transition: top 0.3s; font-weight: 700; font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

h1, h2 { font-family: var(--font-d); line-height: 1.05; }
h3, h4 { font-family: var(--font-ui); font-weight: 700; line-height: 1.3; }
p      { line-height: 1.8; color: var(--crema); font-size: 1rem; }
em     { font-style: normal; color: var(--gold); }

.label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--cuero); margin-bottom: 14px;
}
.title-divider         { width: 40px; height: 2px; background: var(--chocolate); margin-bottom: 28px; }
.title-divider--gold   { background: var(--gold); }
.title-divider--cobre  { background: var(--cobre); }
.section-fw            { width: 100%; padding: clamp(90px, 10vw, 140px) var(--pad-x); position: relative; z-index: 2; }
.section-fw--sm        { padding: clamp(70px, 7vw, 110px) var(--pad-x); }
.section-desc          { color: var(--arena); max-width: 500px; margin-top: 10px; font-size: 1rem; }

.lw             { display: block; overflow: hidden; line-height: 1.05; }
.lw.accent      { color: var(--gold); }
.lw.accent-dark { color: var(--chocolate); }
.li             { display: block; }

.section-light                     { background: var(--light-bg); }
.section-light h2,
.section-light h3,
.section-light h4                  { color: var(--choco-dark); }
.section-light p                   { color: var(--tierra); }
.section-light .label              { color: var(--cobre); }
.section-light .teaser-stat        { background: rgba(0,0,0,0.04); border-color: rgba(92,51,23,0.2); }
.section-light .teaser-stat:hover  { border-color: rgba(92,51,23,0.4); background: rgba(92,51,23,0.06); }
.section-light .teaser-stat-num    { color: var(--chocolate); }
.section-light .teaser-stat-label  { color: var(--cobre); }
.section-light .link-all           { color: var(--chocolate); border-color: rgba(92,51,23,0.3); }
.section-light .link-all:hover     { border-color: var(--chocolate); }

.btn {
  display: inline-block; padding: 14px 34px;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px;
  border-radius: 3px; border: none; font-family: var(--font-ui);
  transition: all 0.3s var(--ease);
}
.btn-primary        { background: var(--gold); color: var(--black); }
.btn-primary:hover  { background: var(--cuero); color: var(--blanco); transform: translateY(-2px); }
.btn-ghost          { background: transparent; color: var(--crema); border: 1px solid rgba(196,168,130,0.3); }
.btn-ghost:hover    { border-color: var(--gold); color: var(--blanco); transform: translateY(-2px); }
.btn-outline        { background: transparent; color: var(--gold); border: 1px solid rgba(200,146,42,0.4); }
.btn-outline:hover  { background: rgba(200,146,42,0.08); transform: translateY(-2px); }
.btn-dark           { background: var(--choco-dark); color: var(--crema); border: none; }
.btn-dark:hover     { background: var(--chocolate); color: var(--blanco); transform: translateY(-2px); }
.btn-outline-dark   { background: transparent; color: var(--chocolate); border: 1px solid rgba(92,51,23,0.35); }
.btn-outline-dark:hover { background: rgba(92,51,23,0.08); transform: translateY(-2px); }
.btn-full           { width: 100%; text-align: center; }
.btn-sm             { padding: 10px 24px; font-size: 0.85rem; }

.deco        { position: absolute; pointer-events: none; }
.deco-mola   { right: -4%; top: 8%; width: clamp(300px,40vw,560px); opacity: 0.055; }
.deco-mola-2 { left: 2%; bottom: 12%; width: clamp(120px,16vw,220px); opacity: 0.04; }

.sec-lines {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.shape-divider {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 10; line-height: 0;
  pointer-events: none;
}
.shape-divider svg {
  display: block; width: 100%; height: 60px;
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,7,5,0.40);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.4s var(--ease), border-color 0.4s;
}
.site-header.scrolled {
  background: rgba(10,7,5,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(92,51,23,0.35);
}
.nav-inner {
  padding: 20px var(--pad-x);
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.logo              { display: flex; align-items: center; flex-shrink: 0; }
.logo-img          { height: 52px; width: auto; object-fit: contain; transition: opacity 0.3s; }
.logo-img:hover    { opacity: 0.85; }
.logo-img--footer  { height: 40px; filter: brightness(0.9); }

.main-nav ul       { display: flex; gap: 26px; align-items: center; }
.nav-link {
  font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.82); letter-spacing: 0.4px;
  transition: color 0.3s; position: relative; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-link:hover,
.nav-link.active         { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after  { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; z-index: 1001;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: #fff; transition: 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@keyframes grad-shift-dark {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes grad-shift-cacao {
  0%   { background-position: 100% 0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 100% 0%; }
}

.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--black);
  position: relative; overflow: visible;
  padding-bottom: 60px;
}
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-video   { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg,
    rgba(10,7,5,0.72) 0%,
    rgba(10,7,5,0.38) 45%,
    rgba(10,7,5,0.80) 100%);
}

.hero-lines {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.hero-lines-svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }

.hero .deco               { z-index: 3; }
.hero-content             { z-index: 4; position: relative; width: 100%; padding: 130px var(--pad-x) 70px; }
.hero-scroll-hint         { z-index: 4; position: absolute; bottom: 80px; left: var(--pad-x); }
.hero .shape-divider      { z-index: 5; }

.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 5px;
  text-transform: uppercase; color: var(--cuero);
  margin-bottom: 24px; display: block;
}
.hero-title { font-size: clamp(3.8rem,10vw,9rem); font-weight: 900; color: var(--blanco); max-width: 960px; }
.hero-sub   { margin-top: 30px; font-size: clamp(1rem,1.6vw,1.2rem); color: var(--arena); max-width: 540px; line-height: 1.85; }
.hero-cta   { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-hint {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 3px; color: var(--gray-mid);
  text-transform: uppercase;
}
.scroll-line { width: 48px; height: 1px; background: var(--chocolate); }

.stats-bar {
  display: flex; margin-top: 56px;
  border-top: 1px solid rgba(92,51,23,0.35); padding-top: 32px;
}
.stat-item  { flex: 1; padding-right: 40px; }
.stat-num   { font-family: var(--font-d); font-size: clamp(2rem,4vw,3rem); font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--gray-mid); letter-spacing: 1px; margin-top: 6px; }

.section-teaser {
  position: relative; overflow: visible; padding-bottom: 60px;
}
.teaser-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,100px); align-items: center;
}
.teaser-text h2     { font-size: clamp(2.2rem,4.8vw,3.8rem); margin-bottom: 20px; }
.teaser-text p      { max-width: 480px; }
.teaser-text .btn   { margin-top: 32px; }
.teaser-visual      { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.teaser-stat {
  background: rgba(255,255,255,0.025); border: 1px solid rgba(92,51,23,0.35);
  border-radius: 10px; padding: 28px 22px; transition: border-color 0.3s, background 0.3s;
}
.teaser-stat:hover  { border-color: rgba(200,146,42,0.4); background: rgba(200,146,42,0.04); }
.teaser-stat-num    { font-family: var(--font-d); font-size: 2.4rem; font-weight: 900; color: var(--gold); line-height: 1; }
.teaser-stat-label  { font-size: 0.82rem; color: var(--gray-mid); letter-spacing: 1px; margin-top: 6px; line-height: 1.4; }

.section-noticias-preview {
  position: relative; overflow: visible; padding-bottom: 60px;
  background: linear-gradient(135deg, #0A0705 0%, #1a0d04 50%, #0A0705 100%);
  background-size: 300% 300%;
  animation: grad-shift-dark 20s ease infinite;
}
.news-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 16px;
}
.news-head h2     { font-size: clamp(2.4rem,5.5vw,4rem); color: var(--blanco); }
.link-all {
  font-size: 0.88rem; font-weight: 600; color: var(--gold);
  border-bottom: 1px solid rgba(200,146,42,0.3); padding-bottom: 2px;
  transition: border-color 0.3s;
}
.link-all:hover { border-color: var(--gold); }
.noticias-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
.noticia-card {
  background: var(--choco-dark); border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(92,51,23,0.3); display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.4s var(--ease);
  height: 100%;
}
.noticia-card:hover    { border-color: rgba(200,146,42,0.4); transform: translateY(-6px); }
.noticia-featured      { grid-row: span 2; }
.noticia-img {
  background: transparent; display: flex;
  align-items: center; justify-content: center;
  color: var(--chocolate); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.noticia-img img {
  width: 100%; height: 100%; display: block;
  object-fit: contain;
}
.noticia-body      { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.noticia-date      { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }
.noticia-card h3   { font-size: 1.02rem; color: var(--marfil); line-height: 1.45; }
.noticia-card p    { font-size: 0.9rem; color: var(--arena); line-height: 1.7; }
.noticia-link      { font-size: 0.82rem; color: var(--gold); font-weight: 600; margin-top: auto; }

.section-proyectos-preview {
  position: relative; overflow: visible; padding-bottom: 60px;
}
.proyectos-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 16px;
}
.proyectos-head h2   { font-size: clamp(2.2rem,4.8vw,3.8rem); }
.proyectos-grid-home {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.proyecto-card-light {
  border: 1px solid rgba(92,51,23,0.2); border-radius: 10px; padding: 34px 26px;
  background: rgba(255,255,255,0.015); display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.3s;
}
.proyecto-card-light:hover {
  border-color: rgba(92,51,23,0.3); transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(92,51,23,0.14);
}
.proy-num                      { font-family: var(--font-d); font-size: 2.4rem; font-weight: 900; color: rgba(92,51,23,0.12); line-height: 1; }
.proyecto-card-light h3        { font-size: 1rem; color: var(--choco-dark); font-weight: 700; }
.proyecto-card-light p         { font-size: 0.9rem; color: var(--cobre); line-height: 1.65; }
.proyecto-card-light .proyecto-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.proyecto-card-light .proyecto-tags span {
  font-size: 0.7rem; padding: 3px 10px; border-radius: 20px;
  background: rgba(92,51,23,0.07); color: var(--chocolate); border: 1px solid rgba(92,51,23,0.18);
}

.section-autoridades-home {
  position: relative; overflow: visible; padding-bottom: 60px;
  background: linear-gradient(135deg, #2A1A0E 0%, #1C1007 50%, #2A1A0E 100%);
  background-size: 300% 300%;
  animation: grad-shift-cacao 22s ease infinite;
}
.aut-home-head         { margin-bottom: 52px; }
.aut-home-head h2      { font-size: clamp(2.4rem,5.5vw,4.2rem); color: var(--blanco); }
.aut-home-head p       { color: var(--arena); max-width: 500px; margin-top: 10px; }
.aut-grid-home         { display: grid; grid-template-columns: repeat(6,1fr); gap: 28px 16px; }
.aut-card-home {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
}
.aut-card-home .aut-photo {
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(200,146,42,0.08); border: 2px solid var(--chocolate);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.aut-card-home .aut-photo img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.aut-fallback {
  display: none; width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--cuero);
  background: rgba(200,146,42,0.1);
}
.aut-card-home:hover .aut-photo { border-color: var(--gold); transform: scale(1.06); }
.aut-card-home .aut-cargo       { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.aut-card-home h4               { font-size: 0.88rem; color: var(--marfil); font-weight: 600; line-height: 1.35; }
.aut-card-home small            { font-size: 0.7rem; color: var(--gray-mid); line-height: 1.4; }

.section-boletin-home {
  position: relative; overflow: visible; padding-bottom: 60px;
}
.boletin-home-inner {
  display: grid;
  grid-template-columns: 1fr 160px 340px;
  gap: clamp(30px,4vw,60px);
  align-items: center;
}
.boletin-home-text h2  { font-size: clamp(2rem,4.5vw,3.4rem); margin-bottom: 20px; }
.boletin-home-text p   { max-width: 440px; }
.boletin-home-btns     { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.boletin-home-video {
  display: flex; flex-direction: column; gap: 14px;
}
.bvideo-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cobre);
}
.bvideo-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(92,51,23,0.25);
  box-shadow: 0 12px 40px rgba(61,36,16,0.18);
}
.bvideo-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.bvideo-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.82rem;
  background: var(--choco-dark); color: var(--crema);
  transition: background 0.3s, transform 0.3s;
}
.bvideo-btn:hover { background: var(--chocolate); transform: translateY(-2px); }
.doc-cover {
  width: 200px; min-height: 280px; background: var(--choco-dark); border-radius: 6px;
  padding: 24px 20px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 8px 12px 40px rgba(92,51,23,0.25);
  transform: rotate(2deg); transition: transform 0.4s var(--ease);
}
.doc-cover:hover        { transform: rotate(0deg) scale(1.03); }
.doc-cover-header       { font-size: 0.62rem; font-weight: 700; letter-spacing: 3px; color: var(--cuero); text-transform: uppercase; }
.doc-cover-title        { font-family: var(--font-d); font-size: 1.5rem; font-weight: 900; color: var(--blanco); line-height: 1.2; }
.doc-cover-year         { font-family: var(--font-d); font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.doc-cover-sub          { font-size: 0.62rem; color: var(--cuero); letter-spacing: 1px; line-height: 1.5; }

.section-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #3D2410 0%, #2A1A0E 50%, #3D2410 100%);
  background-size: 300% 300%;
  animation: grad-shift-dark 25s ease infinite;
}
.cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-text h2      { font-size: clamp(2rem,4.2vw,3.2rem); color: var(--blanco); max-width: 560px; }
.cta-text p       { margin-top: 14px; color: var(--arena); max-width: 480px; }
.cta-text .label  { margin-bottom: 14px; }
.cta-btns         { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

.page-banner {
  min-height: 44vh; display: flex; align-items: flex-end;
  background: var(--choco-dark); position: relative; overflow: hidden;
}
.page-banner-content { position: relative; z-index: 1; padding: 120px var(--pad-x) 60px; }
.page-banner h1      { font-size: clamp(2.8rem,7vw,6rem); font-weight: 900; color: var(--blanco); max-width: 800px; }
.page-banner p       { margin-top: 20px; max-width: 520px; font-size: 1.05rem; color: var(--arena); line-height: 1.8; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--gray-mid); margin-bottom: 20px;
}
.breadcrumb a          { color: var(--gray-mid); transition: color 0.2s; }
.breadcrumb a:hover    { color: var(--gold); }
.breadcrumb span       { color: var(--cuero); }
.breadcrumb-sep        { color: var(--chocolate); }

.obj-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,100px); align-items: start;
}
.obj-text h2  { font-size: clamp(2.2rem,4.8vw,3.8rem); color: var(--blanco); margin-bottom: 22px; }
.obj-quote    { margin-top: 32px; border-left: 2px solid var(--gold); padding: 14px 22px; font-style: italic; font-family: var(--font-d); color: var(--crema); line-height: 1.7; }
.pillars      { display: flex; flex-direction: column; gap: 16px; }
.pillar {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(92,51,23,0.35);
  border-radius: 10px; padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start;
  transition: border-color 0.3s, background 0.3s;
}
.pillar:hover    { border-color: rgba(200,146,42,0.45); background: rgba(200,146,42,0.04); }
.pillar-num      { font-family: var(--font-d); font-size: 1.8rem; font-weight: 900; color: rgba(200,146,42,0.2); line-height: 1; flex-shrink: 0; }
.pillar h4       { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 5px; }
.pillar p        { font-size: 0.9rem; color: var(--arena); line-height: 1.6; }
.pueblos-grid    { display: grid; grid-template-columns: repeat(7,1fr); gap: 16px; }
.pueblo-card {
  border: 1px solid rgba(92,51,23,0.3); border-radius: 12px; padding: 28px 14px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: rgba(255,255,255,0.015); opacity: 0; transform: translateY(60px) rotate(-3deg) scale(0.94);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.pueblo-card:hover { transform: translateY(-10px) rotate(0deg) scale(1.02) !important; border-color: rgba(200,146,42,0.5); }
.pueblo-svg        { width: 56px; height: 56px; }
.pueblo-card h3    { font-size: 0.88rem; color: var(--marfil); }
.pueblo-card small { font-size: 0.72rem; color: var(--gray-mid); line-height: 1.5; }
.aut-header        { margin-bottom: 52px; }
.aut-header h2     { font-size: clamp(2.4rem,5.5vw,4.2rem); color: var(--blanco); }
.aut-grid          { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 36px; }
.aut-card          { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; opacity: 0; transform: scale(0.8) translateY(30px); }
.aut-photo         { width: 120px; height: 120px; border-radius: 50%; background: rgba(200,146,42,0.07); border: 2px solid var(--chocolate); display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: hidden; transition: border-color 0.3s, transform 0.4s var(--ease); }
.aut-photo img     { width: 100%; height: 100%; object-fit: cover; }
.aut-card:hover .aut-photo { border-color: var(--gold); transform: scale(1.06); }
.aut-cargo         { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }
.aut-card h4       { font-size: 0.92rem; color: var(--marfil); font-weight: 600; }
.aut-card small    { font-size: 0.74rem; color: var(--gray-mid); line-height: 1.5; }

.proyectos-header    { margin-bottom: 52px; }
.proyectos-header h2 { font-size: clamp(2.4rem,5.5vw,4.2rem); color: var(--blanco); }
.proyectos-grid      { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.proyecto-card {
  border: 1px solid rgba(92,51,23,0.4); border-radius: 12px; padding: 32px 26px;
  background: rgba(10,7,5,0.3); display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(60px);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.proyecto-card:hover  { border-color: rgba(200,146,42,0.4); transform: translateY(-6px) !important; }
.proyecto-num         { font-family: var(--font-d); font-size: 2.5rem; font-weight: 900; color: rgba(200,146,42,0.2); line-height: 1; }
.proyecto-card h3     { font-size: 1.02rem; color: var(--marfil); }
.proyecto-card p      { font-size: 0.9rem; color: var(--arena); line-height: 1.65; }
.proyecto-tags        { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.proyecto-tags span   { font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; background: rgba(200,146,42,0.1); color: var(--gold); border: 1px solid rgba(200,146,42,0.25); }

.blog-header        { margin-bottom: 48px; }
.blog-header h2     { font-size: clamp(2.4rem,5.5vw,4.2rem); color: var(--blanco); }
.blog-grid          { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.blog-card          { border-radius: 12px; overflow: hidden; background: var(--choco-dark); border: 1px solid rgba(92,51,23,0.3); display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s var(--ease); }
.blog-card:hover    { border-color: rgba(200,146,42,0.35); transform: translateY(-6px); }
.blog-card-img      { height: 200px; background: rgba(92,51,23,0.2); overflow: hidden; }
.blog-card-img img  { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body     { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-tag           { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); }
.blog-card-body h3  { font-size: 1.02rem; color: var(--marfil); line-height: 1.45; }
.blog-card-body p   { font-size: 0.88rem; color: var(--arena); line-height: 1.65; }
.blog-meta          { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(92,51,23,0.2); font-size: 0.76rem; color: var(--gray-mid); }
.blog-meta a        { color: var(--gold); font-size: 0.82rem; }
.pagination         { display: flex; justify-content: center; gap: 8px; margin-top: 52px; }
.pagination a       { width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(92,51,23,0.3); color: var(--gray-mid); transition: all 0.3s; }
.pagination a:hover,
.pagination a.active { border-color: var(--gold); color: var(--gold); background: rgba(200,146,42,0.08); }

.media-header        { margin-bottom: 36px; }
.media-header h2     { font-size: clamp(2.4rem,5.5vw,4.2rem); color: var(--blanco); }
.media-tabs          { display: flex; margin-bottom: 36px; border-bottom: 1px solid rgba(92,51,23,0.3); }
.media-tab           { background: none; border: none; font-family: var(--font-ui); font-size: 0.88rem; font-weight: 600; color: var(--gray-mid); letter-spacing: 1px; padding: 10px 24px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.3s, border-color 0.3s; }
.media-tab:hover     { color: var(--crema); }
.media-tab.active    { color: var(--gold); border-bottom-color: var(--gold); }
.media-panel         { display: none; }
.media-panel.active  { display: block; }
.media-grid          { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.media-placeholder   { background: rgba(92,51,23,0.2); border: 1px solid rgba(92,51,23,0.3); border-radius: 8px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 0.84rem; color: var(--chocolate); letter-spacing: 2px; text-transform: uppercase; transition: border-color 0.3s; cursor: pointer; }
.media-placeholder:hover { border-color: rgba(200,146,42,0.4); }
.docs-list           { display: flex; flex-direction: column; gap: 12px; }
.doc-item            { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 8px; background: rgba(10,7,5,0.3); border: 1px solid rgba(92,51,23,0.3); transition: border-color 0.3s, background 0.3s; }
.doc-item:hover      { border-color: rgba(200,146,42,0.4); background: rgba(200,146,42,0.04); }
.doc-item .doc-icon  { font-size: 1.4rem; flex-shrink: 0; }
.doc-item div        { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.doc-item strong     { font-size: 0.94rem; color: var(--marfil); font-weight: 600; }
.doc-item span       { font-size: 0.77rem; color: var(--gray-mid); }
.doc-download        { font-size: 0.8rem; color: var(--gold); flex-shrink: 0; }

.contacto-inner    { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px,6vw,100px); align-items: start; }
.contacto-info     { opacity: 0; transform: translateX(-60px); }
.contacto-info h2  { font-size: clamp(2.2rem,4.2vw,3.2rem); color: var(--chocolate); margin-bottom: 20px; }
.contacto-datos    { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contacto-datos li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--choco-dark); }
.c-icon            { font-size: 1.1rem; }
.contacto-datos a  { color: var(--choco-dark); transition: color 0.2s; }
.contacto-datos a:hover { color: var(--gold); }
.contacto-form     { display: flex; flex-direction: column; gap: 20px; opacity: 0; transform: translateX(60px); }
.form-group        { display: flex; flex-direction: column; gap: 7px; }
.form-group label  { font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cuero); }
.form-group input,
.form-group textarea { background: rgba(255,255,255,0.5); border: 1px solid rgba(92,51,23,0.3); border-radius: 6px; padding: 13px 16px; font-size: 0.92rem; color: var(--choco-dark); font-family: var(--font-ui); transition: border-color 0.3s; outline: none; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--cuero); }

.site-footer      { background: #060402; border-top: 1px solid rgba(92,51,23,0.2); }
.footer-inner     { padding: 64px var(--pad-x) 52px; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.6fr; gap: 40px; }
.footer-brand     { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand .logo-img--footer { max-height: unset; width: 210px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.footer-brand p   { font-size: 0.85rem; color: var(--gray-mid); max-width: 280px; line-height: 1.6; text-align: center; }
.footer-social-icons { display: flex; gap: 10px; margin-top: 18px; justify-content: center; }
.footer-social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(92,51,23,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-mid); transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.footer-social-icons a:hover { color: var(--gold); border-color: var(--gold); background: rgba(200,146,42,0.06); }
.footer-nav strong { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--cuero); display: block; margin-bottom: 18px; }
.footer-nav ul    { display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul a  { font-size: 0.85rem; color: var(--gray-mid); transition: color 0.2s; }
.footer-nav ul a:hover { color: var(--crema); }
.footer-info-block { display: flex; flex-direction: column; gap: 22px; }
.footer-info-section strong {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--cuero); display: block; margin-bottom: 8px;
}
.footer-info-section p  { font-size: 0.84rem; color: var(--gray-mid); line-height: 1.75; }
.footer-info-section a  { color: var(--gray-mid); transition: color 0.2s; }
.footer-info-section a:hover { color: var(--gold); }
.footer-bottom    { padding: 22px var(--pad-x); border-top: 1px solid rgba(92,51,23,0.15); font-size: 0.76rem; color: var(--chocolate); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,4,2,0.93);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto; overflow-x: hidden;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  position: relative;
  background: var(--choco-dark);
  border: 1px solid rgba(200,146,42,0.25);
  border-radius: 12px;
  padding: 42px 40px 36px;
  max-width: 760px; width: 100%;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.45s var(--ease), opacity 0.45s;
  opacity: 0;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  margin: auto;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(200,146,42,0.1); border: 1px solid rgba(200,146,42,0.25);
  color: var(--arena); display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.modal-close:hover { background: rgba(200,146,42,0.2); color: var(--gold); }
.modal-label { font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--cuero); margin-bottom: 10px; }
.modal-title { font-family: var(--font-d); font-size: 1.6rem; font-weight: 900; color: var(--blanco); margin-bottom: 24px; line-height: 1.2; }
.modal-title span { color: var(--gold); }
.modal-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(92,51,23,0.3);
  margin-bottom: 24px;
}
.modal-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.modal-btn { width: 100%; text-align: center; }

.modal-video-note {
  text-align: center; font-size: 0.8rem; color: var(--gray-mid);
  margin-top: -14px; margin-bottom: 20px;
}
.modal-video-note a { color: var(--gold); text-decoration: underline; }

/* Flipbook Modal */
.modal-box--flipbook {
  max-width: 1400px; width: 96%; height: 92vh;
  margin: auto;
  background: var(--black); border: 1px solid rgba(200,146,42,0.2); box-shadow: 0 50px 100px rgba(0,0,0,0.9);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: row; align-items: stretch; justify-content: flex-start;
  padding: 0; 
}
.fb-sidebar {
  width: 300px; flex-shrink: 0; background: var(--choco-dark);
  border-right: 1px solid rgba(200,146,42,0.15);
  display: flex; flex-direction: column; padding: 30px 20px;
  position: relative;
}
.fb-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(circle at center, #1C1007 0%, var(--black) 100%);
}
.modal-close-left {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: none; border: 1px solid rgba(200,146,42,0.3); padding: 8px 16px; border-radius: 20px;
  color: var(--gold); font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  cursor: pointer; transition: background 0.3s, color 0.3s; margin-bottom: 40px;
}
.modal-close-left:hover { background: var(--gold); color: var(--black); }
.flipbook-loader {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.flipbook-loader p { color: var(--gold); font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(200,146,42,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}
@keyframes spinner { to { transform: rotate(360deg); } }

.flipbook-wrapper {
  opacity: 0; transition: opacity 0.6s var(--ease);
  width: 100%; display: flex; justify-content: center;
  perspective: 2000px; /* Gives realistic depth to flip */
}
.flipbook { box-shadow: 0 40px 100px rgba(0,0,0,0.8); border-radius: 4px; }
.page-wrapper {
  background-color: #fff;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}
.page-wrapper canvas { width: 100%; height: 100%; display: block; }
.stf__line { background: rgba(0,0,0,0.1); }

.flipbook-controls {
  margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 100%;
}
.fb-nav, .fb-tools {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: rgba(10,7,5,0.5); padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(200,146,42,0.15);
}
.flipbook-ext-controls { width: 100%; margin-bottom: 20px; }
.fb-search { display: flex; background: rgba(255,255,255,0.05); border: 1px solid rgba(200,146,42,0.3); border-radius: 8px; overflow:hidden; }
.fb-search input { flex: 1; background: none; border: none; padding: 10px 14px; color: var(--marfil); font-family: var(--font-ui); outline: none; }
.flip-btn-icon { background: rgba(200,146,42,0.1); border: none; color: var(--gold); padding: 0 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s, color 0.3s; }
.flip-btn-icon:hover { background: var(--gold); color: var(--black); }
.flip-btn {
  background: none; border: none; color: var(--gold); padding: 4px;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 700;
  transition: color 0.3s; cursor: pointer;
}
.flip-btn:hover { color: var(--crema); }
#page-count { color: var(--marfil); font-size: 0.9rem; font-variant-numeric: tabular-nums; user-select: none; }
.fb-search-result { color: var(--gold); font-size: 0.8rem; height: 16px; margin-top: 6px; }

/* transform origin for zoom */
.flipbook-wrapper {
  transform-origin: top center; transition: transform 0.4s var(--ease), opacity 0.6s var(--ease);
}


@keyframes txt-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes txt-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes txt-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes line-draw {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fade-in-up 0.8s var(--ease) 0.5s both; }

.stat-num {
  background: linear-gradient(90deg, var(--gold) 0%, #f0c060 40%, var(--gold) 60%, #e0a830 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: txt-shimmer 4s linear infinite;
}

.hero-scroll-hint .scroll-line {
  animation: none;
  position: relative; overflow: hidden;
}
.hero-scroll-hint .scroll-line::after {
  content: ''; position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: txt-shimmer 2.5s linear infinite;
}

.noticia-link::after {
  content: ''; display: inline-block; width: 0; height: 1px;
  background: var(--gold); vertical-align: middle;
  margin-left: 4px; transition: width 0.35s var(--ease);
}
.noticia-card:hover .noticia-link::after { width: 20px; }

.proy-num {
  background: linear-gradient(135deg, rgba(92,51,23,0.08) 0%, rgba(200,146,42,0.15) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.5s;
}
.proyecto-card-light:hover .proy-num { background-position: 100% 100%; }

.phc-icon svg line,
.phc-icon svg polygon,
.phc-icon svg path,
.phc-icon svg rect {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 0s;
}
.pueblo-home-card.is-visible .phc-icon svg line,
.pueblo-home-card.is-visible .phc-icon svg polygon,
.pueblo-home-card.is-visible .phc-icon svg path,
.pueblo-home-card.is-visible .phc-icon svg rect {
  animation: line-draw 1.2s var(--ease) forwards;
}

.section-pueblos {
  background: linear-gradient(135deg, #0A0705 0%, #1a0d04 50%, #0A0705 100%);
  background-size: 300% 300%;
  animation: grad-shift-dark 24s ease infinite;
  position: relative; overflow: visible; padding-bottom: 60px;
}
.pueblos-home-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.pueblos-home-head h2 { font-size: clamp(2.4rem,5vw,4rem); color: var(--blanco); }
.pueblos-home-sub { color: var(--arena); font-size: 1.02rem; margin-top: 16px; }
.pueblos-home-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
.pueblo-home-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(200,146,42,0.15);
  border-radius: 10px;
  padding: 28px 18px 22px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
  cursor: default;
  transition: border-color 0.4s var(--ease), background 0.4s, transform 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.pueblo-home-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,146,42,0.05) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.pueblo-home-card:hover::before { opacity: 1; }
.pueblo-home-card:hover {
  border-color: rgba(200,146,42,0.45);
  background: rgba(200,146,42,0.04);
  transform: translateY(-8px);
}
.phc-num {
  font-family: var(--font-d); font-size: 0.72rem; font-weight: 900;
  color: rgba(200,146,42,0.25); letter-spacing: 2px;
  position: absolute; top: 12px; right: 14px;
}
.phc-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.phc-icon svg { width: 100%; height: 100%; }
.pueblo-home-card h3 {
  font-family: var(--font-d); font-size: 1.05rem; font-weight: 700;
  color: var(--blanco); line-height: 1.2;
}
.pueblo-home-card p {
  font-size: 0.82rem; color: var(--arena); line-height: 1.65;
}
.phc-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  border-top: 1px solid rgba(200,146,42,0.2);
  padding-top: 10px; width: 100%; margin-top: auto;
}
.pueblos-home-cta {
  text-align: center; margin-top: 48px;
}

@media (max-width: 1200px) {
  .pueblos-home-grid { grid-template-columns: repeat(4, 1fr); }
  .proyectos-grid      { grid-template-columns: repeat(2,1fr); }
  .proyectos-grid-home { grid-template-columns: repeat(2,1fr); }
  .pueblos-grid        { grid-template-columns: repeat(4,1fr); }
  .aut-grid-home       { grid-template-columns: repeat(4,1fr); }
  .footer-inner        { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .pueblos-home-grid { grid-template-columns: repeat(3, 1fr); }
  .obj-grid, .teaser-inner, .contacto-inner { grid-template-columns: 1fr; }
  .noticias-grid   { grid-template-columns: 1fr; }
  .blog-grid       { grid-template-columns: repeat(2,1fr); }
  .media-grid      { grid-template-columns: repeat(2,1fr); }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .cta-inner       { flex-direction: column; align-items: flex-start; }
  .news-head       { flex-direction: column; align-items: flex-start; }
  .teaser-visual   { grid-template-columns: repeat(4,1fr); }
  .boletin-home-inner { grid-template-columns: 1fr 1fr; }
  .boletin-home-doc { display: none; }
  .proyectos-head  { flex-direction: column; align-items: flex-start; }
  .aut-grid-home   { grid-template-columns: repeat(3,1fr); }
  .modal-box--flipbook { flex-direction: column; height: 95vh; }
  .fb-sidebar { width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px; border-right: none; border-bottom: 1px solid rgba(200,146,42,0.15); }
  .modal-close-left { margin-bottom: 0; }
  .flipbook-ext-controls { margin-bottom: 0; flex: 1; min-width: 250px; margin-left: 16px; }
  .flipbook-controls { flex-direction: row; width: 100%; margin-top: 12px; }
}
@media (max-width: 640px) {
  .pueblos-home-grid { grid-template-columns: repeat(2, 1fr); }
  .boletin-home-inner { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 80vw; height: 100vh;
    background: var(--choco-dark); display: flex; align-items: center; justify-content: center;
    transition: right 0.4s var(--ease); border-left: 1px solid rgba(92,51,23,0.3); z-index: 1000;
  }
  .main-nav.open  { right: 0; }
  .main-nav ul    { flex-direction: column; gap: 24px; text-align: center; }
  .nav-link       { font-size: 1rem; }
  .hamburger      { display: flex; }
  .pueblos-grid        { grid-template-columns: repeat(2,1fr); }
  .proyectos-grid      { grid-template-columns: 1fr; }
  .proyectos-grid-home { grid-template-columns: 1fr; }
  .blog-grid           { grid-template-columns: 1fr; }
  .media-grid          { grid-template-columns: 1fr; }
  .footer-inner        { grid-template-columns: 1fr; }
  .stats-bar           { flex-wrap: wrap; gap: 24px; }
  .teaser-visual       { grid-template-columns: 1fr 1fr; }
  .hero-title          { font-size: clamp(3rem,14vw,5rem); }
  .aut-grid-home       { grid-template-columns: repeat(2,1fr); }
  .hero-overlay        { background: linear-gradient(180deg, rgba(10,7,5,0.65) 0%, rgba(10,7,5,0.82) 100%); }
  .modal-box           { padding: 32px 24px 28px; }
  .modal-title         { font-size: 1.3rem; }
  .modal-box--flipbook { height: 100vh; width: 100%; border-radius: 0; padding: 0; }
  .fb-sidebar { flex-direction: column; padding: 12px; gap: 12px; }
  .flipbook-ext-controls { margin-left: 0; width: 100%; min-width: 100%; }
  .flipbook-controls { flex-direction: column; margin-top: 0; }
}
