/* ProMonumenta sobre Blocksy — cabecera, pie, menú, 6 botones y mapa.
   Reusa la paleta y tipografía de marca. */

:root {
  --pm-musgo: #2A3D23;
  --pm-musgo-medio: #4A6741;
  --pm-piedra: #C5B090;
  --pm-piedra-claro: #F5F0E8;
  --pm-acento: #C4963A;
  --pm-texto: #1C1408;
  --pm-rojo: #8B1A1A;
}

/* ===== Botón de marca reutilizable ===== */
.pm-btn-acento {
  display: inline-block;
  background: var(--pm-acento);
  color: #fff !important;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.pm-btn-acento:hover { background: var(--pm-musgo); transform: translateY(-1px); color: #fff !important; }
.pm-btn-sm { padding: 0.6rem 1.3rem; font-size: 0.75rem; }

/* ===== Tipografía base (Blocksy pisa el body; forzamos la marca) ===== */
body,
.entry-content,
.ct-container,
p, li, .pm-accion-text {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6,
.pm-menu-list a, .pm-accion-title, .pm-btn-acento {
  font-family: 'Cinzel', Georgia, serif;
}

/* Portada: ocultar el título de página y la barra hero de Blocksy; el contenido
   empieza directo en el hero pegado al header. */
.home .entry-title,
.home .ct-page-title,
.home h1.page-title,
.home .page-hero-section,
.home .ct-hero-section {
  display: none !important;
}
.home .entry-content,
.home .ct-container,
.home article > .entry-content { margin-top: 0 !important; }
.home #main,
.home .content-area,
.home .site-main,
.home .ct-container-full,
.home .ct-container { padding-top: 0 !important; padding-bottom: 0 !important; }
/* El primer bloque (hero) no debe arrastrar margen superior.
   flow-root evita el colapso de margen hacia el borde de <main>. */
.home .entry-content { display: flow-root; }
.home .entry-content > *:first-child { margin-top: 0 !important; }
.home .pm-hero { padding-top: 0 !important; }
/* Blocksy aplica un espaciado vertical de contenido (~40px) al área de la portada
   que no se expone como padding directo; lo anulamos vía variables y compensación. */
.home #main-container,
.home .site-main,
.home .ct-container-full {
  --content-vertical-spacing: 0px;
  --theme-content-vertical-spacing: 0px;
  --container-edge-spacing: 0px;
}
.home .site-main > .ct-container-full { margin-top: calc(-1 * var(--pm-blocksy-gap, 40px)); }

/* ===== Topbar ===== */
.pm-topbar { background: var(--pm-musgo); }
.pm-topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.5rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pm-topbar-left { color: var(--pm-piedra); font-size: 0.8rem; letter-spacing: 0.05em; margin: 0; }
.pm-topbar-right { display: flex; gap: 1.2rem; align-items: center; }
.pm-topbar-right a { color: var(--pm-piedra); text-decoration: none; font-size: 0.8rem; transition: color 0.2s ease; }
.pm-topbar-right a:hover { color: #fff; }

/* ===== Header ===== */
.pm-header { background: #fff; border-bottom: 1px solid var(--pm-piedra); position: sticky; top: 0; z-index: 1000; }
.pm-header.is-sticky { box-shadow: rgba(0,0,0,0.08) 0 4px 16px 0; }
.pm-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.pm-logo-link { line-height: 0; flex-shrink: 0; }
.pm-logo-real { max-height: 64px; width: auto; }

/* ===== Nav desktop ===== */
.pm-nav { margin-left: auto; }
.pm-menu-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.05rem; flex-wrap: nowrap;
}
.pm-menu-list a {
  color: var(--pm-texto); text-decoration: none;
  font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  transition: color 0.2s ease;
}
.pm-menu-list a:hover { color: var(--pm-acento); }

/* "Hazte socio" del menú se muestra como botón destacado (sin botón extra). */
.pm-menu-list a[href*="hazte-socio"] {
  background: var(--pm-acento); color: #fff; font-weight: 600;
  padding: 0.55rem 1.1rem; border-radius: 4px; margin-left: 0.3rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.pm-menu-list a[href*="hazte-socio"]:hover { background: var(--pm-musgo); color: #fff; transform: translateY(-1px); }

/* ===== Hamburguesa ===== */
.pm-burger {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--pm-piedra); border-radius: 6px;
}
.pm-burger span { display: block; height: 2px; background: var(--pm-musgo); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.pm-nav-open .pm-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pm-nav-open .pm-burger span:nth-child(2) { opacity: 0; }
.pm-nav-open .pm-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .pm-burger { display: flex; order: 3; }
  .pm-nav {
    order: 4; flex-basis: 100%; margin-left: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .pm-nav-open .pm-nav { max-height: 85vh; overflow-y: auto; }
  .pm-menu-list { flex-direction: column; align-items: flex-start; gap: 0.2rem; padding-top: 1rem; }
  .pm-menu-list a { display: block; padding: 0.7rem 0; font-size: 0.95rem; }
  .pm-menu-list a[href*="hazte-socio"] { display: inline-block; margin: 0.4rem 0; }
}
html.pm-nav-locked { overflow: hidden; }

/* ===== Banda de 6 acciones ===== */
.pm-acciones-section { background: #fff; padding: 4rem 1.5rem; }
.pm-acciones {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.pm-accion {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--pm-piedra-claro);
  border: 1px solid #E3D9C6; border-left: 4px solid var(--pm-acento);
  border-radius: 12px; padding: 1.6rem 1.5rem; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pm-accion:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0,0,0,0.12) 0 16px 32px 0; border-left-color: var(--pm-musgo);
}
.pm-accion-icon { font-size: 1.6rem; line-height: 1; }
.pm-accion-title {
  font-family: 'Cinzel', serif; font-size: 1.1rem; font-weight: 600; color: var(--pm-musgo); margin: 0;
}
.pm-accion-text { font-size: 0.9rem; line-height: 1.55; color: var(--pm-musgo-medio); margin: 0; }
.pm-accion-cta {
  margin-top: auto; font-family: 'Cinzel', serif; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; color: var(--pm-acento);
}
@media (max-width: 900px) { .pm-acciones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pm-acciones { grid-template-columns: 1fr; } }

/* ===== Mapa Leaflet ===== */
.pm-mapa-leaflet {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--pm-piedra); box-shadow: rgba(0,0,0,0.12) 0 10px 22px 0;
  z-index: 0;
}
.pm-chip[data-filter] { cursor: pointer; user-select: none; }
.pm-chip.pm-chip-off { opacity: 0.35; }

/* ===== Footer ===== */
.pm-footer { background: var(--pm-musgo); padding: 4rem 1.5rem 2rem; }
.pm-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem;
}
.pm-footer-col h4 {
  color: #fff; font-family: 'Cinzel', serif; font-size: 0.95rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid rgba(197,176,144,0.2); padding-bottom: 0.75rem; margin: 0 0 1.25rem;
}
.pm-footer-col ul { list-style: none; margin: 0; padding: 0; }
.pm-footer-col li { margin-bottom: 0.4rem; }
.pm-footer-col a { color: var(--pm-piedra); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.pm-footer-col a:hover { color: #fff; }
.pm-footer-brand p { color: var(--pm-piedra); font-size: 0.9rem; line-height: 1.7; margin: 1rem 0 0; }
.pm-footer-brand .pm-logo-real { max-height: 90px; background: #fff; border-radius: 8px; padding: 8px 14px; }
.pm-footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.pm-footer-contact-mail, .pm-footer-col > p { color: var(--pm-piedra); font-size: 0.9rem; line-height: 1.9; }
.pm-footer-legal {
  max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--pm-musgo-medio);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.pm-footer-legal p { color: var(--pm-piedra); font-size: 0.8rem; margin: 0; }
.pm-footer-legal a { color: var(--pm-piedra); }
@media (max-width: 900px) {
  .pm-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .pm-footer-inner { grid-template-columns: 1fr; }
  .pm-footer-legal { flex-direction: column; }
}

/* ===== Formularios (Contacto / Propón hacendera) ===== */
.pm-form { max-width: 640px; }
.pm-form .pm-field { display: flex; flex-direction: column; gap: 0.4rem; margin: 0 0 1.2rem; }
.pm-form label {
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 600; color: var(--pm-musgo);
}
.pm-form input, .pm-form textarea {
  font-family: 'Lato', sans-serif; font-size: 1rem; color: var(--pm-texto);
  padding: 0.75rem 0.9rem; border: 1px solid var(--pm-piedra); border-radius: 6px;
  background: #fff; width: 100%;
}
.pm-form input:focus, .pm-form textarea:focus {
  outline: 3px solid var(--pm-acento); outline-offset: 1px; border-color: var(--pm-acento);
}
.pm-form textarea { resize: vertical; }
.pm-form button { border: none; cursor: pointer; }
.pm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pm-form-ok, .pm-form-err {
  padding: 1rem 1.25rem; border-radius: 8px; margin: 0 0 1.5rem;
  font-size: 0.95rem; border-left: 4px solid;
}
.pm-form-ok  { background: #EEF3EA; color: var(--pm-musgo); border-color: var(--pm-musgo-medio); }
.pm-form-err { background: #F7E9E9; color: var(--pm-rojo);  border-color: var(--pm-rojo); }
