:root {
  --wrap: min(1200px, 92vw);
  --bg: #262421;
  --txt: #ffffff;
  --muted: #bdbdbd;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.5 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}
a { color: #d4ff7a; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: #000;
  border-bottom: 1px solid #191919;
  z-index: 1000;
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
nav a {
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}
nav a:hover { background: #2a2a2a; transform: translateY(-1px); }

/* ===== Global layout ===== */
.section-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 16px;
}
h1 { font-size: clamp(26px, 4.8vw, 42px); margin: 18px 0 6px; }
h2 { font-size: clamp(20px, 3.6vw, 28px); margin: 14px 0; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: #d4b49d; }
.lead { color: var(--muted); max-width: 900px; }

/* ===== HERO MEDIA (imágenes y vídeo) ===== */
.hero-media {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 65vh;               /* altura moderada */
  object-fit: cover;          /* ocupa todo el ancho, recorta lo justo */
  object-position: center;    /* centra el encuadre */
  display: block;
}

/* Ajuste móvil: menos altura, mismo encuadre */
@media (max-width: 768px) {
  .hero-media img,
  .hero-media video {
    height: 45vh;             /* más compacto en móvil */
    object-fit: cover;
    object-position: center top;
  }
}


/* === Escritorio: vídeo más proporcionado, sin scroll ni solape === */
@media (min-width: 769px) {
  .hero-media { margin-top: 0 !important; }
}


/* ===== Resto (botones, footer, etc.) ===== */
.btn {
  background: #803300;
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  display: inline-block;
  transition: background 0.3s ease;
}
.btn:hover { background: #5a2400; }

footer {
  border-top: 1px solid #191919;
  margin-top: 36px;
}
footer .section-inner {
  padding: 18px 16px;
  color: #9a9a9a;
  font-size: 14px;
  text-align: center;
}

/* === Galería === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-content: center;
  margin-top: 2rem;
}
.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

/* === Menú móvil en cuadrícula (2 filas) === */
@media (max-width: 768px) {
  nav ul {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px;
    background: #000;
  }
  nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 0 12px;
    background: #4b2e2e;
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.9rem;
  }
}

/* === Logo responsive === */
.logo-img {
  height: auto;
  max-width: 120px;
  vertical-align: middle;
}
@media (max-width: 768px) { .logo-img { display: none; } }

/* === Menú fijo === */
body { padding-top: 80px; }

/* === Intro Home (solo en index) === */
.intro-home { text-align: center; padding: 40px 20px; }
.intro-home h2 { font-size: 2rem; margin-bottom: 10px; }
.intro-home p { font-size: 1.2rem; margin-bottom: 15px; color: #fff; }

/* === Quitar icono menú ☰ completamente === */
.menu-toggle {
  display: none !important;
  visibility: hidden !important;
}

/* === Financiación — estructura limpia y centrada === */
.financiacion {
  background: #f9f9f9;
  color: #000;
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 100px auto 60px;
}

.financiacion h1 {
  text-align: center;
  color: #5a3d2b;
  margin-bottom: 40px;
}

.financiacion-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.financiacion-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 20px;
  max-width: 280px;
  text-align: center;
}

.financiacion-card h3 {
  color: #5a3d2b;
  margin-bottom: 10px;
}

.btn-financiacion {
  background-color: #803300;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
  transition: background-color 0.3s;
}

.btn-financiacion:hover {
  background-color: #5a2400;
}

@media (max-width: 768px) {
  .financiacion-container {
    flex-direction: column;
    align-items: center;
  }
  .financiacion-card {
    width: 90%;
  }
}
