/* ============================================
   MARMORIS — Stylesheet
   Paleta: Piedra caliza, venas doradas, tinta
   ============================================ */

:root {
  --ink:      #1a1714;
  --ink-soft: #2e2a26;
  --stone:    #f5f0e8;
  --stone-2:  #ede6d6;
  --stone-3:  #d6ccb8;
  --gold:     #2d3e93;
  --gold-lt:  #343791;
  --cream:    #faf7f2;
  --text:     #3d3832;
  --text-soft:#7a7268;
  --white:    #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Montserrat', sans-serif;

  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* GRAIN OVERLAY */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* CONTAINER */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* TYPOGRAPHY */
.section-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-tag.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title.center { text-align: center; }

.body-text {
  font-size: 0.93rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  max-width: 52ch;
}

/* BUTTONS */
.btn-gold {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: var(--transition);
  cursor: pointer;
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}
.btn-gold.full { width: 100%; text-align: center; }

/* ============ NAVBAR ============ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
  padding: 0;
}
#navbar.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── LOGO ─────────────────────────────────────────────────── */
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}
.logo-img:hover { opacity: 0.85; }

/* ── NAV LOGO ──────────────────────────────
   Logo siempre en color azul original.
   Se usa logo_300.png (fondo transparente, azul original).
   Sin filtros, sin versión blanca.
*/
.nav-logo {
  height: 40px;
  filter: none;
  transition: opacity 0.3s;
}

/* Scrolled: sin cambio de color, el azul contrasta bien en fondo crema */
#navbar.scrolled .nav-logo {
  filter: none;
}

/* ── FOOTER LOGO ────────────────────────────
   Footer oscuro → logo azul original.
   Misma imagen, sin inversión.
*/
.footer-logo-img {
  height: 34px;
  filter: none;
  opacity: 0.92;
  transition: opacity 0.3s;
}
.footer-logo-link:hover .footer-logo-img { opacity: 1; }

/* Fallback texto (si no carga la imagen) */
.logo-m {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-block;
  line-height: 1;
}
.logo-rest { color: var(--stone); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* BURGER */
/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* LANG SELECTOR */
.lang-selector {
  position: relative;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid rgba(184,154,90,0.3);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.78rem;
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.lang-current:hover { border-color: var(--gold); }
.lang-current svg { width: 10px; height: 6px; color: var(--gold); }
#navbar.scrolled .lang-current { color: var(--ink); }
#navbar:not(.scrolled) .lang-current { border-color: rgba(184,154,90,0.4); color: rgba(245,240,232,0.8); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--cream);
  border: 1px solid var(--stone-3);
  min-width: 140px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 200;
  display: none;
}
.lang-selector.open .lang-dropdown { display: block; }
.lang-opt {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}
.lang-opt:hover { background: var(--stone); }
.lang-opt.active { color: var(--gold); font-weight: 500; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--ink);
  transition: var(--transition);
}
#navbar:not(.scrolled) .burger span { background: var(--stone); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ── HERO SLIDESHOW ── */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.03);
  animation: heroZoom 8s ease-in-out infinite alternate;
}
.hero-slide.active {
  opacity: 1;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Overlay oscuro sobre las fotos para legibilidad del texto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 12, 10, 0.55) 0%,
    rgba(15, 12, 10, 0.35) 50%,
    rgba(15, 12, 10, 0.65) 100%
  );
  z-index: 1;
}

/* Dots de navegación del slideshow */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}
.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.hero-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* remove old marble line overlay */
.hero::before { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--stone);
  margin-bottom: 2rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 0.9rem;
  color: var(--stone-3);
  margin-bottom: 3rem;
  max-width: 44ch;
  line-height: 1.8;
}

/* SCROLL INDICATOR */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-3);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.9s var(--transition) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal.delay-1 { transition-delay: 0.15s; }
.scroll-reveal.delay-2 { transition-delay: 0.3s; }

/* ============ MARQUEE ============ */
.sep-marquee {
  background: var(--ink);
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(184,154,90,0.2);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  align-items: center;
}
.marquee-track span {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--stone-3);
  letter-spacing: 0.05em;
}
.marquee-track .dot {
  color: var(--gold);
  font-style: normal;
  font-size: 0.5rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ NOSOTROS ============ */
.nosotros {
  padding: 8rem 0;
  background: var(--cream);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stone-3);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.3rem;
}

/* VISUAL COLLAGE */
.nosotros-visual { position: relative; height: 500px; }
.vis-main {
  position: absolute;
  top: 0; left: 0;
  width: 75%; height: 80%;
  overflow: hidden;
  border-radius: var(--radius);
}
.vis-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.vis-main:hover .vis-photo,
.vis-secondary:hover .vis-photo { transform: scale(1.04); }

.vis-secondary {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%; height: 55%;
  overflow: hidden;
  border: 3px solid var(--cream);
  border-radius: var(--radius);
}
.vis-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.vis-badge svg { position: absolute; inset: 0; }
.vis-badge span {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.4;
}

/* ============ SERVICIOS ============ */
.servicios {
  padding: 8rem 0;
  background: var(--stone);
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4rem;
  border: 1px solid var(--stone-3);
}
.serv-card {
  padding: 2.5rem;
  border-right: 1px solid var(--stone-3);
  border-bottom: 1px solid var(--stone-3);
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.serv-card:nth-child(3n) { border-right: none; }
.serv-card:nth-last-child(-n+3) { border-bottom: none; }
.serv-card:hover { background: var(--cream); }
.serv-card:hover .serv-line { width: 100%; }

.serv-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--stone-3);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--transition);
}
.serv-card:hover .serv-num { color: var(--gold); }
.serv-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.serv-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.serv-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.5s ease;
}

/* ============ PORTFOLIO ============ */
.portfolio-section {
  padding: 8rem 0;
  background: var(--ink);
}
.portfolio-section .section-tag { color: var(--gold); }
.portfolio-section .section-title { color: var(--stone); }

/* FILTROS */
.filtros {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 3rem 0;
}
.filtro {
  padding: 0.5rem 1.4rem;
  background: transparent;
  border: 1px solid rgba(184,154,90,0.3);
  color: var(--stone-3);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.filtro:hover, .filtro.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* GALERIA MASONRY */
.galeria {
  columns: 3;
  column-gap: 1.2rem;
  margin-top: 1rem;
}
.galeria-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
}
.galeria-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.galeria-item:hover img { transform: scale(1.05); }
.galeria-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}
.galeria-item:hover .galeria-item-overlay { opacity: 1; }
.galeria-item-info h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--stone);
}
.galeria-item-info span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.galeria-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem;
  color: var(--stone-3);
  font-size: 0.85rem;
}
.spinner {
  width: 32px; height: 32px;
  border: 1px solid rgba(184,154,90,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.galeria-vacia {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--stone-3);
}
.vacia-icon {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 1rem;
}
.hidden { display: none !important; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,12,10,0.95);
  backdrop-filter: blur(8px);
}
.lb-content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.lb-content img {
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lb-info {
  padding: 1.2rem 0 0;
}
.lb-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--stone);
}
.lb-info p {
  font-size: 0.85rem;
  color: var(--stone-3);
  margin-top: 0.3rem;
}
.lb-cat {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--stone);
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  font-size: 1.2rem;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.lb-close { top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; font-size: 0.9rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.5rem; }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.5rem; }

/* ============ CONTACTO ============ */
.contacto {
  padding: 8rem 0;
  background: var(--cream);
  position: relative;
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}
.datos-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.datos-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.datos-list svg {
  width: 18px; height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

/* FORM */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.5rem;
  background: var(--stone);
  border: 1px solid var(--stone-3);
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input,
.field textarea {
  background: var(--cream);
  border: 1px solid var(--stone-3);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  transition: border-color 0.3s;
  resize: vertical;
  outline: none;
  border-radius: var(--radius);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--stone-3); }

.form-ok  { font-size: 0.82rem; color: #6a8f6a; text-align: center; }
.form-err { font-size: 0.82rem; color: #a05050; text-align: center; }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(184,154,90,0.2);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--stone-3);
  line-height: 1.7;
}
.footer-logo .logo-rest { color: var(--stone); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-3);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }
.admin-link {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--stone-3) !important;
  opacity: 0.4;
  margin-top: 1rem;
  transition: opacity 0.3s;
}
.admin-link:hover { opacity: 1 !important; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .serv-card:nth-child(2n) { border-right: none; }
  .serv-card:nth-child(3n) { border-right: 1px solid var(--stone-3); }
  .serv-card:nth-last-child(-n+2) { border-bottom: none; }
  .serv-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--stone-3); }
  .galeria { columns: 2; }
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%; height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.85rem; }

  .nosotros-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-visual { height: 300px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .serv-card { border-right: none !important; }
  .serv-card:last-child { border-bottom: none; }
  .galeria { columns: 1; }
  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .stats-row { flex-direction: column; gap: 1.5rem; }
  .filtros { gap: 0.4rem; }
  .filtro { padding: 0.4rem 0.9rem; font-size: 0.6rem; }
}

/* ── GALERIA PLACEHOLDER (demo sin imágenes) ── */
.galeria-placeholder {
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  width: 100%;
  transition: transform 0.6s;
}
.galeria-item:hover .galeria-placeholder { transform: scale(1.04); }
.galeria-placeholder .galeria-item-info h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--stone);
}
.galeria-placeholder .galeria-item-info span {
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── LIGHTBOX BOTTOM ── */
.lb-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.lb-counter {
  font-size: 0.68rem;
  color: var(--stone-3);
}

/* ── FORM OK/ERR ── */
.form-ok  { font-size: 0.82rem; color: #6a8f6a; text-align: center; }
.form-err { font-size: 0.82rem; color: #a05050; text-align: center; }

/* ── DATOS-LIST LINKS ── */
.datos-list a {
  color: var(--text-soft, var(--ts));
  text-decoration: none;
  transition: color 0.3s;
}
.datos-list a:hover { color: var(--gold); }

/* ── NAV SOCIAL ICONS ── */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: rgba(245,240,232,0.7);
  transition: color 0.3s, background 0.3s;
}
.nav-social-icon:hover { color: var(--gold); }
#navbar.scrolled .nav-social-icon { color: var(--ts); }
#navbar.scrolled .nav-social-icon:hover { color: var(--gold); }

/* WhatsApp dot green on hover */
.nav-wa:hover { color: #25d366 !important; }

/* ── FOOTER SOCIAL ── */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--stone-3, #d6ccb8);
  text-decoration: none;
  transition: color 0.3s;
}
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; }
.social-link:hover { color: var(--gold); }
.social-link:hover svg { opacity: 1; }

/* ── SUBVENCIONES SECTION ── */
.subvenciones {
  padding: 5rem 0;
  background: var(--stone);
  border-top: 1px solid var(--stone-3, #d6ccb8);
}
.sub-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.sub-logos {
  margin: 2rem 0;
}
.sub-logos-img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--stone-3, #d6ccb8);
  border-radius: 2px;
}
.sub-content { text-align: left; }
.sub-text {
  font-size: 0.88rem;
  color: var(--ts);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.sub-text strong { color: var(--ink); font-weight: 500; }
.sub-text em { font-style: italic; }
.sub-data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stone-3, #d6ccb8);
}
.sub-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--stone-3, #d6ccb8);
}
.sub-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.sub-value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink);
}

@media (max-width: 600px) {
  .sub-data { grid-template-columns: 1fr; }
  .nav-social { gap: 0.4rem; }
  .footer-social { flex-direction: row; flex-wrap: wrap; }
}
