/* site.css — estilos de los bloques del Page Builder para el sitio público.
   Usa la misma paleta y tokens que brand.css (--ink, --deep, --green, --line). */

body { padding-top: 0; }
main { display: block; }

.wrap { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }

/* Hero */
.pub-hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  background-color: var(--deep);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.pub-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 14ch;
}
.pub-hero-sub {
  font-size: 18px;
  line-height: 1.5;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.88);
}

/* Secciones genéricas */
.pub-section { padding: 76px 0; }
.pub-section h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--ink);
  margin: 0 0 22px;
}

/* Texto */
.pub-text p { font-size: 17px; line-height: 1.7; color: #3a4750; margin: 0 0 16px; }

/* Imagen */
.pub-image figure { margin: 0; }
.pub-image img { width: 100%; border-radius: 4px; display: block; }
.pub-image figcaption { margin-top: 10px; font-size: 14px; color: #59666d; }

/* Tarjetas */
.pub-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.pub-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 26px;
  background: #fff;
}
.pub-card h3 { font-size: 19px; color: var(--ink); margin: 0 0 10px; }
.pub-card p { font-size: 15px; line-height: 1.6; color: #59666d; margin: 0; }

/* CTA */
.pub-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.pub-cta h2 { color: #fff; }

.pub-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 14px 30px;
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.pub-btn:hover { opacity: 0.9; }

/* Formulario de contacto */
.pub-contact { background: #f5f3ee; }
.pub-contact-sub { color: #59666d; margin: -8px 0 28px; }
.pub-contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.pub-contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 600; }
.pub-contact-form input,
.pub-contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #26333a;
}
.pub-contact-status { font-size: 14px; color: var(--green); font-weight: 600; }
.pub-contact-status.is-error { color: #b3261e; }

@media (max-width: 640px) {
  .pub-hero { padding: 130px 0 60px; min-height: auto; }
  .pub-section { padding: 50px 0; }
}
