/*
 * Estilos propios del sitio PHP: encabezado, pie, WhatsApp flotante, respuestas de formularios,
 * compra con Mercado Pago y páginas simples. Usa la paleta --brand-* (editable desde el panel).
 */
:root {
  --site-ink: var(--brand-ink, #152736);
  --site-red: var(--brand-red, #e31d3b);
  --site-red-dark: var(--brand-red-dark, #c91431);
  --site-blue: var(--brand-blue, #2f6f9f);
  --site-muted: var(--brand-muted, #5f717e);
  --site-line: var(--brand-line, #dce6eb);
  --site-pale: var(--brand-pale, #eaf4fa);
  --site-header-h: 76px;
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--site-header-h) + 12px); }

.eco-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--site-ink); }
.eco-skip:focus { left: 8px; }

/* ---------- Encabezado (fijo al hacer scroll) ---------- */
.eco-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid color-mix(in srgb, var(--site-line) 80%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  font-family: "Ecopure Poppins", "Poppins", Arial, sans-serif;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Al bajar: más compacto, fondo sólido y sombra suave */
.eco-site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--site-line) 70%, transparent), 0 14px 34px rgba(20, 54, 77, .09);
}
.eco-site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 64px), 1280px);
  min-height: var(--site-header-h);
  margin: 0 auto;
  transition: min-height .3s ease;
}
.eco-site-header.is-scrolled .eco-site-header__inner { min-height: 64px; }

/* Logo: el alto del enlace define el alto de la imagen; el tamaño de letra, el del logo de texto.
   Los dos se cambian desde Plantillas -> Encabezado / Pie o desde el editor visual. */
.eco-site-logo { display: inline-flex; align-items: center; height: 46px; color: var(--site-ink); font-size: 25px; text-decoration: none; flex: 0 0 auto; }
.eco-site-logo:hover { color: var(--site-ink); }
.eco-site-logo [hidden] { display: none !important; }
.eco-site-logo__img { display: block; height: 100%; width: auto; max-width: 60vw; object-fit: contain; }
.eco-site-logo__txt { display: inline-flex; align-items: center; gap: .32em; }
.eco-site-logo__mark { width: 1.2em; height: 1.2em; fill: var(--site-red); stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.eco-site-logo__text { font-size: 1em; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.eco-site-logo__text b { font-weight: 700; color: var(--site-blue); }

/* Navegación con íconos */
.eco-site-nav { display: flex; align-items: center; margin-left: auto; }
.eco-site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.eco-site-nav li { margin: 0; }
.eco-site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 15px 5px 5px;
  border-radius: 999px;
  color: var(--site-ink);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.eco-nav-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--site-pale) 85%, #fff);
  color: var(--site-blue);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-sky, #7fa8d8) 22%, transparent);
  transition: background-color .2s ease, color .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
.eco-nav-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eco-site-nav a:hover { background: color-mix(in srgb, var(--site-pale) 70%, #fff); color: var(--site-ink); }
.eco-site-nav a:hover .eco-nav-ico { background: #fff; color: var(--site-red); transform: translateY(-1px) rotate(-6deg); box-shadow: 0 6px 14px rgba(20, 54, 77, .12); }
.eco-site-nav a:focus-visible { outline: 2px solid var(--site-blue); outline-offset: 2px; }
/* Página actual */
.eco-site-nav a[aria-current="page"] { background: var(--site-pale); font-weight: 600; }
.eco-site-nav a[aria-current="page"] .eco-nav-ico { background: var(--site-ink); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--site-ink) 25%, transparent); }
/* Inicio: solo el ícono, separado del resto */
.eco-site-nav__home { margin-right: 8px !important; padding-right: 10px; border-right: 1px solid var(--site-line); }
.eco-site-nav__home a { padding: 3px; }
.eco-site-nav__home .eco-nav-ico { width: 38px; height: 38px; flex-basis: 38px; background: #fff; box-shadow: inset 0 0 0 1px var(--site-line); }
.eco-site-nav__home .eco-nav-ico svg { width: 19px; height: 19px; }
.eco-site-nav__home .eco-nav-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eco-site-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--site-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--site-red) 22%, transparent);
  transition: background-color .18s ease, transform .18s ease;
}
.eco-site-cta:hover { background: var(--site-red-dark); color: #fff; transform: translateY(-1px); }
.eco-site-nav .eco-site-cta--menu { display: none; }
.eco-site-burger { display: none; width: 46px; height: 46px; margin-left: auto; padding: 12px; border: 1px solid var(--site-line); border-radius: 12px; background: #fff; cursor: pointer; }
.eco-site-burger span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--site-ink); transition: transform .2s ease, opacity .2s ease; }
.eco-site-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.eco-site-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.eco-site-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Pantallas medianas: menos aire para que entre todo */
@media (max-width: 1240px) {
  .eco-site-header__inner { gap: 16px; }
  .eco-site-nav a { gap: 7px; padding-right: 11px; font-size: 14px; }
  .eco-site-cta { padding: 0 18px; font-size: 14px; }
}

/* Celular y tablet: menú desplegable */
@media (max-width: 1100px) {
  :root { --site-header-h: 64px; }
  .eco-site-header__inner { width: calc(100% - 32px); gap: 12px; }
  .eco-site-header.is-scrolled .eco-site-header__inner { min-height: 58px; }
  .eco-site-header > .eco-site-header__inner > .eco-site-cta { display: none; }
  .eco-site-burger { display: block; }
  .eco-site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 0;
    padding: 10px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--site-line);
    box-shadow: 0 24px 40px rgba(20, 54, 77, .14);
    max-height: calc(100vh - var(--site-header-h));
    overflow-y: auto;
  }
  .eco-site-nav.is-open { display: flex; animation: eco-menu-in .22s ease-out; }
  .eco-site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .eco-site-nav a { display: flex; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 14px; font-size: 16px; }
  .eco-nav-ico { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .eco-nav-ico svg { width: 20px; height: 20px; }
  .eco-site-nav a:hover .eco-nav-ico { transform: none; }
  .eco-site-nav__home { margin-right: 0 !important; padding: 0 0 2px; border-right: 0; border-bottom: 1px solid var(--site-line); margin-bottom: 4px !important; }
  .eco-site-nav__home a { padding: 8px 12px 8px 8px; }
  .eco-site-nav__home .eco-nav-ico { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .eco-site-nav__home .eco-nav-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .eco-site-nav .eco-site-cta--menu { display: inline-flex; justify-content: center; padding: 0 22px; color: #fff; }
  .eco-site-nav .eco-site-cta--menu:hover { background: var(--site-red-dark); color: #fff; }
  .eco-site-header .eco-site-logo { height: 40px; font-size: 22px; }
}
@keyframes eco-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .eco-site-header, .eco-site-header__inner, .eco-nav-ico, .eco-site-nav a { transition: none; }
  .eco-site-nav.is-open { animation: none; }
}

/* ---------- Pie ---------- */
.eco-site-footer { position: relative; background: var(--brand-deep, #142b39); color: #c8d5db; font-family: "Ecopure Poppins", "Poppins", Arial, sans-serif; }
.eco-site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 48px;
  width: min(calc(100% - 64px), 1280px);
  margin: 0 auto;
  padding: 72px 0 48px;
}
.eco-site-footer .eco-site-logo--light, .eco-site-footer .eco-site-logo--light:hover { color: #fff; }
.eco-site-footer .eco-site-logo__text b { color: var(--brand-sky, #7fa8d8); }
.eco-site-footer p { max-width: 420px; margin: 18px 0 0; color: #b6c6cf; font-size: 15px; line-height: 1.65; }
.eco-site-footer h4 { margin: 0 0 16px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eco-site-footer ul { margin: 0; padding: 0; list-style: none; }
.eco-site-footer li { margin: 0 0 10px; color: #b6c6cf; font-size: 15px; }
.eco-site-footer a { color: #e3ecf1; text-decoration: none; }
.eco-site-footer a:hover { color: #fff; text-decoration: underline; }
.eco-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 64px), 1280px);
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.eco-site-footer__bottom p { margin: 0; font-size: 13px; color: #8ea3ae; max-width: none; }
.eco-site-footer__top { font-size: 13px; }
@media (max-width: 849px) {
  .eco-site-footer__inner { grid-template-columns: 1fr 1fr; width: calc(100% - 32px); gap: 32px; padding-top: 56px; }
  .eco-site-footer__brand { grid-column: 1 / -1; }
  .eco-site-footer__bottom { width: calc(100% - 32px); }
}
@media (max-width: 549px) {
  .eco-site-footer__inner { grid-template-columns: 1fr; }
  .eco-site-footer__bottom { flex-direction: column; }
}

/* ---------- WhatsApp flotante ---------- */
.eco-wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand-wa, #25d366);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}
.eco-wa-float:hover { color: #fff; transform: scale(1.06); }
.eco-wa-float svg { width: 32px; height: 32px; }

/* Aviso después de enviar un formulario sin JavaScript */
.eco-flash { position: fixed; top: calc(var(--site-header-h) + 12px); left: 50%; z-index: 120; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); padding: 14px 18px; border-radius: 12px; background: #e9f7ef; border: 1px solid #b6e2c7; color: #1d5a37; font-family: "Ecopure Poppins", "Poppins", Arial, sans-serif; box-shadow: 0 16px 40px rgba(20, 54, 77, .16); animation: eco-flash-out .4s ease 7s forwards; }
.eco-flash--error { background: #fdecee; border-color: #f5c2c9; color: #8a1022; }
@keyframes eco-flash-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Formularios ---------- */
.eco-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.eco-form-response { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.eco-form-response.is-ok { background: #e9f7ef; border: 1px solid #b6e2c7; color: #1d5a37; }
.eco-form-response.is-error { background: #fdecee; border: 1px solid #f5c2c9; color: #8a1022; }
.eco-field-error, .wpcf7-not-valid-tip { display: block; margin-top: 5px; color: #c4122f; font-size: 12px; font-weight: 500; }
.eco-ajax-form.is-sending [type="submit"], .eco-ajax-form.is-sending .eco-form-button, .eco-ajax-form.is-sending .eco-hogar-form-action { opacity: .6; pointer-events: none; }
button.eco-hogar-form-action { border: 0; font-family: inherit; }
.eco-page.eco-hogar button.eco-hogar-form-action::after {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-left: .5em;
  vertical-align: -.18em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eco-page.eco-hogar .eco-hogar-form select { -webkit-appearance: none; appearance: none; }

/* Contact Form 7 (respuestas), igual que su hoja original */
.wpcf7 form .wpcf7-response-output { margin: 2em .5em 1em; padding: .2em 1em; border: 2px solid #00a0d2; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #46b450; }
.wpcf7 form.invalid .wpcf7-response-output { border-color: #ffb900; }
.wpcf7 form.failed .wpcf7-response-output { border-color: #dc3232; }
.wpcf7-spinner { visibility: hidden; display: inline-block; width: 24px; height: 24px; margin: 0 24px; border-radius: 100%; background-color: #23282d; opacity: .75; position: relative; }
.wpcf7 form.submitting .wpcf7-spinner { visibility: visible; }
.wpcf7-form-control-wrap { position: relative; }

/* ---------- Páginas simples (404, compra, resultado de pago) ---------- */
.eco-simple { padding: clamp(56px, 8vw, 110px) 0; background: linear-gradient(135deg, #f9fcfd 0%, #eef6fa 60%, #f8fbfc 100%); font-family: "Ecopure Poppins", "Poppins", Arial, sans-serif; }
.eco-simple__inner { width: min(calc(100% - 32px), 960px); margin: 0 auto; color: var(--site-ink); }
.eco-simple__kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--site-blue); font-size: 13px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eco-simple__kicker::before { content: ""; width: 24px; height: 2px; background: var(--site-red); }
.eco-simple h1 { margin: 0 0 16px; color: var(--site-ink); font-size: clamp(34px, 4.4vw, 54px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; }
.eco-simple p { color: var(--site-muted); font-size: 17px; line-height: 1.65; }
.eco-simple__links { display: flex; flex-wrap: wrap; gap: 10px; }
.eco-simple__btn, .eco-shop button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #c4d4dd;
  border-radius: 999px;
  background: #fff;
  color: var(--site-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.eco-simple__btn--primary, .eco-shop button { border-color: var(--site-red); background: var(--site-red); color: #fff; }
.eco-simple__btn--primary:hover, .eco-shop button:hover { background: var(--site-red-dark); color: #fff; }
.eco-shop { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; margin-top: 28px; align-items: start; }
.eco-shop__product, .eco-shop__form { padding: 28px; border: 1px solid var(--site-line); border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(20, 54, 77, .1); }
.eco-shop__product img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.eco-shop__product h2 { margin: 0 0 6px; color: var(--site-ink); font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.eco-shop__price { margin: 14px 0 4px; color: var(--site-ink); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.eco-shop__form label { display: block; margin: 0 0 14px; color: #354c59; font-size: 13px; font-weight: 600; }
.eco-shop__form input, .eco-shop__form textarea { width: 100%; min-height: 50px; margin-top: 6px; padding: 10px 14px; border: 1px solid #cedae1; border-radius: 10px; background: #fbfcfd; box-shadow: none; font: inherit; font-size: 15px; height: auto; }
.eco-shop__form button { width: 100%; margin-top: 8px; }
.eco-shop__note { margin-top: 12px; font-size: 13px !important; text-align: center; }
.eco-shop__qty { display: flex; gap: 12px; }
.eco-shop__qty label { flex: 1; }
.eco-notice { padding: 14px 18px; border-radius: 12px; background: #fdecee; border: 1px solid #f5c2c9; color: #8a1022; }
@media (max-width: 849px) { .eco-shop { grid-template-columns: 1fr; } }

/* Vista previa del encabezado y el pie en el panel */
.eco-plantilla-hueco { display: grid; place-items: center; min-height: 340px; padding: 40px 16px; background: repeating-linear-gradient(135deg, #f6f9fb 0 14px, #eef3f6 14px 28px); color: #5f717e; text-align: center; font-family: "Ecopure Poppins", "Poppins", Arial, sans-serif; }
.eco-plantilla-hueco p { margin: 0; }

/* Fotos del catálogo sin imagen cargada */
.eco-cat .eco-pc-media:empty { background: var(--site-pale); }
