/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*//* ============================================================
   PINAZ — diseño corporativo artesano (custom, sobre Bricks)
   Paleta: espresso #201a14 · crema #f7f2ea · cuero #b5804a
   ============================================================ */

:root {
  --pz-dark: #201a14;
  --pz-dark-2: #2b231b;
  --pz-cream: #f7f2ea;
  --pz-cream-2: #efe7da;
  --pz-accent: #b5804a;
  --pz-accent-dark: #96662f;
  --pz-ink: #4a4239;
  --pz-line: rgba(32, 26, 20, 0.14);
}

html { scroll-behavior: smooth; }

/* ---------- Kicker (etiqueta sobre titulares) ---------- */
.pz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--pz-accent) !important;
}
.pz-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--pz-accent);
  display: inline-block;
}
.pz-kicker--center { justify-content: center; }

/* ---------- Botones ---------- */
.pz-btn a, a.pz-btn, .pz-btn {
  background: var(--pz-accent) !important;
  color: #fff !important;
  border: 1px solid var(--pz-accent) !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 18px 36px !important;
  transition: all 0.35s ease;
}
.pz-btn a:hover, a.pz-btn:hover, .pz-btn:hover {
  background: var(--pz-dark) !important;
  border-color: var(--pz-dark) !important;
  transform: translateY(-2px);
}
.pz-btn-outline a, a.pz-btn-outline, .pz-btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 18px 36px !important;
  transition: all 0.35s ease;
}
.pz-btn-outline a:hover, a.pz-btn-outline:hover, .pz-btn-outline:hover {
  background: #fff !important;
  color: var(--pz-dark) !important;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.pz-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pz-line);
}
.pz-logo img { max-height: 46px; width: auto; }

.pz-header .bricks-nav-menu .menu-item a {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 500;
  color: var(--pz-dark);
  padding: 10px 2px;
  position: relative;
}
.pz-header .bricks-nav-menu .menu-item a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 0; height: 1px;
  background: var(--pz-accent);
  transition: width 0.3s ease;
}
.pz-header .bricks-nav-menu .menu-item a:hover::after,
.pz-header .bricks-nav-menu .current-menu-item a::after { width: 100%; }
.pz-header .bricks-nav-menu .menu-item a:hover { color: var(--pz-accent); }

/* ---------- Hero slider ---------- */
.pz-hero .bricks-slider,
.pz-hero .splide,
.pz-hero .splide__track,
.pz-hero .splide__list,
.pz-hero .splide__slide { height: 92vh; min-height: 620px; }

.pz-hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pz-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24, 18, 12, 0.82) 8%, rgba(24, 18, 12, 0.45) 55%, rgba(24, 18, 12, 0.25) 100%);
  z-index: 1;
}
.pz-hero-slide > .bricks-block-inner, .pz-hero-slide > * { position: relative; z-index: 2; }

.pz-hero .splide__pagination { bottom: 42px; }
.pz-hero .splide__pagination__page {
  width: 34px; height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  margin: 0 5px;
  transition: background 0.3s;
}
.pz-hero .splide__pagination__page.is-active { background: var(--pz-accent); transform: none; }

.pz-hero .splide__arrow {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  width: 52px; height: 52px;
  opacity: 0.85;
}
.pz-hero .splide__arrow:hover { background: var(--pz-accent); border-color: var(--pz-accent); }
.pz-hero .splide__arrow svg { fill: #fff; width: 14px; height: 14px; }

/* ---------- Tarjetas de servicios ---------- */
.pz-card {
  background: #fff;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.pz-card:hover { box-shadow: 0 24px 48px rgba(32, 26, 20, 0.14); transform: translateY(-6px); }
.pz-card .pz-card-img { overflow: hidden; }
.pz-card .pz-card-img img {
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.pz-card:hover .pz-card-img img { transform: scale(1.08); }

.pz-link-more a, a.pz-link-more {
  color: var(--pz-accent) !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px !important;
  font-weight: 600;
  border-bottom: 1px solid var(--pz-accent);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.pz-link-more a:hover, a.pz-link-more:hover { color: var(--pz-dark) !important; border-color: var(--pz-dark); }

/* ---------- Timeline ---------- */
.pz-tl { position: relative; }
.pz-tl::before {
  content: "";
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 1px;
  background: var(--pz-line);
}
.pz-tl-item { position: relative; padding-top: 64px; }
.pz-tl-item::before {
  content: "";
  position: absolute;
  top: 19px; left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--pz-cream);
  border: 3px solid var(--pz-accent);
  transition: background 0.3s, transform 0.3s;
}
.pz-tl-item:hover::before { background: var(--pz-accent); transform: scale(1.25); }

/* ---------- Grid de productos ---------- */
.pz-product { position: relative; overflow: hidden; display: block; }
.pz-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.pz-product:hover img { transform: scale(1.07); }
.pz-product .pz-product-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 22px;
  background: linear-gradient(0deg, rgba(24, 18, 12, 0.85), transparent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pz-product:hover .pz-product-label { opacity: 1; transform: translateY(0); }

/* ---------- Icon features ---------- */
.pz-feature .pz-icon-wrap {
  width: 74px; height: 74px;
  border: 1px solid var(--pz-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.35s ease;
}
.pz-feature .pz-icon-wrap i { font-size: 28px; color: var(--pz-accent); transition: color 0.35s; }
.pz-feature:hover .pz-icon-wrap { background: var(--pz-accent); }
.pz-feature:hover .pz-icon-wrap i { color: #fff; }

/* ---------- Ferias ---------- */
.pz-fair {
  background: #fff;
  border: 1px solid var(--pz-line);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.pz-fair:hover { box-shadow: 0 18px 40px rgba(32, 26, 20, 0.12); border-color: var(--pz-accent); }
.pz-fair img { max-height: 74px; width: auto; object-fit: contain; }

/* ---------- CTA banner ---------- */
.pz-cta { position: relative; overflow: hidden; }
.pz-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(24, 18, 12, 0.78);
  z-index: 1;
}
.pz-cta > * { position: relative; z-index: 2; }

/* ---------- Contacto ---------- */
.pz-contact-item { border-left: 2px solid var(--pz-accent); padding-left: 20px; }

/* ---------- Fluent Forms: estilo marca ---------- */
.fluentform .ff-el-group label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px !important; color: var(--pz-ink); }
.fluentform .ff-el-form-control {
  border: 1px solid var(--pz-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  transition: border-color 0.3s;
}
.fluentform .ff-el-form-control:focus { border-color: var(--pz-accent) !important; box-shadow: none !important; }
.fluentform .ff-btn-submit {
  background: var(--pz-accent) !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px !important;
  padding: 16px 40px !important;
  transition: background 0.3s;
}
.fluentform .ff-btn-submit:hover { background: var(--pz-dark) !important; }
.fluentform .ff-el-is-check-item label { text-transform: none; letter-spacing: 0; font-size: 13px !important; }

/* ---------- Footer ---------- */
.pz-footer { background: var(--pz-dark); color: rgba(247, 242, 234, 0.75); }
.pz-footer h4, .pz-footer .bricks-heading { color: #fff; }
.pz-footer a { color: rgba(247, 242, 234, 0.75); transition: color 0.3s; }
.pz-footer a:hover { color: var(--pz-accent); }
.pz-footer-brand { font-family: "Playfair Display", serif; font-size: 34px; color: #fff; letter-spacing: 0.08em; }
.pz-eu-logos img {
  max-height: 64px;
  width: auto;
  background: #fff;
  padding: 10px 14px;
  object-fit: contain;
}
.pz-legal { font-size: 12px; line-height: 1.7; color: rgba(247, 242, 234, 0.45); }

/* ---------- Genérico ---------- */
.pz-dark-section { background: var(--pz-dark); }
.pz-cream-section { background: var(--pz-cream); }

@media (max-width: 991px) {
  .pz-hero .bricks-slider, .pz-hero .splide, .pz-hero .splide__track,
  .pz-hero .splide__list, .pz-hero .splide__slide { height: auto; min-height: 78vh; }
  .pz-tl::before { display: none; }
}

/* ---------- Fixes ronda 1 ---------- */
.pz-btn--s a, a.pz-btn--s, .pz-btn--s { padding: 13px 26px !important; font-size: 12px !important; }

/* ---------- Fixes ronda 2 ---------- */
.pz-logo { flex-shrink: 0; }
.pz-logo img { width: 150px !important; max-width: none; height: auto; }
.pz-header .brxe-container { padding-left: 24px; padding-right: 24px; }
.pz-hero-slide { display: flex !important; flex-direction: column; justify-content: center; align-items: center; }
.pz-hero-slide .brxe-container { padding-left: 32px; padding-right: 32px; max-width: min(1160px, 100%); }


/* ---------- Fixes ronda 3: divs con comportamiento flex (como brxe-block) ---------- */
.brxe-div { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; }

/* ---------- Fixes ronda 4 ---------- */
.pz-eu-logos img { width: auto !important; height: 56px; max-height: none; }
.pz-footer .brxe-container > .brxe-div { align-items: flex-start; }

/* ---------- Fixes ronda 5: aire vertical entre títulos, textos y botones ---------- */
/* Los <p> dentro de bloques de texto no aportan margen: el espacio lo controlan los bloques */
#brx-content .brxe-text > p:first-child { margin-top: 0; }
#brx-content .brxe-text > p:last-child { margin-bottom: 0; }

/* Kicker (etiqueta sobre el titular) */
#brx-content .pz-kicker:not(:last-child) { margin-bottom: 22px !important; }

/* Titulares */
#brx-content h1.brxe-heading:not(:last-child),
#brx-content h2.brxe-heading:not(:last-child) { margin-bottom: 28px !important; }
#brx-content h3.brxe-heading:not(:last-child) { margin-bottom: 18px !important; }
#brx-content h4.brxe-heading:not(:last-child),
#brx-content h5.brxe-heading:not(:last-child),
#brx-content h6.brxe-heading:not(:last-child) { margin-bottom: 14px !important; }

/* Párrafos de texto (deja espacio debajo, p. ej. antes de los botones) */
#brx-content .brxe-text:not(.pz-kicker):not(:last-child) { margin-bottom: 34px !important; }
#brx-content .pz-card .brxe-text:not(.pz-kicker):not(:last-child) { margin-bottom: 22px !important; }
#brx-content .pz-link-more { margin-bottom: 10px !important; }

/* Separación extra antes de un grupo de botones cuando va justo después de un titular */
#brx-content .brxe-heading + .brxe-div:has(> .brxe-button) { margin-top: 6px; }


