/* ============================================================
   Blots — estilos globales del sitio   [blocksy-child/assets/site.css]
   Identidad de marca aplicada a todas las páginas (no solo la home).
   ============================================================ */

:root {
  --blots-red:   #c42327;
  --blots-red-d: #a51d20;
}

/* ---- Botones de WPForms con la marca (eran azules por defecto) ---- */
.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit,
.wpforms-form button[type="submit"] {
  background-color: var(--blots-red) !important;
  border: 2px solid var(--blots-red) !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 14px 32px !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  box-shadow: 0 10px 22px rgba(196, 35, 39, .26) !important;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
.wpforms-container button[type="submit"]:hover,
.wpforms-container .wpforms-submit:hover,
.wpforms-form button[type="submit"]:hover {
  background-color: var(--blots-red-d) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(196, 35, 39, .32) !important;
}

/* ---- Foco de campos de formulario con la marca ---- */
.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
  border-color: var(--blots-red) !important;
  box-shadow: 0 0 0 3px rgba(196, 35, 39, .15) !important;
  outline: none !important;
}

/* ---- Títulos de página internos: un poco de aire (no apretados al header) ---- */
.page-title,
.entry-header .entry-title {
  margin-top: clamp(8px, 2vw, 24px);
}

/* ============================================================
   PÁGINAS INTERNAS (institucionales / legales) — tratamiento on-brand
   Aplica a páginas estáticas (Sobre Nosotros, Términos, Privacidad,
   Devoluciones, etc.). Excluye home, tienda y páginas WooCommerce
   (carrito/checkout/mi-cuenta) que tienen su propio layout.
   ============================================================ */
body.page:not(.woocommerce-page):not(.home) .entry-content {
  --ip-red:   var(--blots-red, #c42327);
  --ip-ink:   #14161c;
  --ip-body:  #3a3f4a;
  --ip-muted: #5f6672;
  --ip-line:  #ececf0;

  max-width: 880px;
  margin-inline: auto;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ip-body);
}

/* Encabezados */
body.page:not(.woocommerce-page):not(.home) .entry-content h2 {
  margin: 1.6em 0 .6em;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ip-ink);
}
body.page:not(.woocommerce-page):not(.home) .entry-content h2:first-child { margin-top: 0; }
body.page:not(.woocommerce-page):not(.home) .entry-content h3 {
  margin: 1.4em 0 .5em;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: var(--ip-ink);
  padding-left: 14px;
  border-left: 4px solid var(--ip-red);
}
body.page:not(.woocommerce-page):not(.home) .entry-content h4 {
  margin: 1.2em 0 .4em;
  font-size: 17px;
  font-weight: 700;
  color: var(--ip-ink);
}

/* Párrafos y listas */
body.page:not(.woocommerce-page):not(.home) .entry-content p { margin: 0 0 1.1em; }
body.page:not(.woocommerce-page):not(.home) .entry-content ul,
body.page:not(.woocommerce-page):not(.home) .entry-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
body.page:not(.woocommerce-page):not(.home) .entry-content li { margin-bottom: .5em; }
body.page:not(.woocommerce-page):not(.home) .entry-content ul li::marker { color: var(--ip-red); }

/* Enlaces de marca */
body.page:not(.woocommerce-page):not(.home) .entry-content a {
  color: var(--ip-red);
  text-decoration: none;
  font-weight: 600;
}
body.page:not(.woocommerce-page):not(.home) .entry-content a:hover { text-decoration: underline; }

/* Tablas (por si algún texto legal las usa) */
body.page:not(.woocommerce-page):not(.home) .entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ip-line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 1.4em;
}
body.page:not(.woocommerce-page):not(.home) .entry-content th,
body.page:not(.woocommerce-page):not(.home) .entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ip-line);
  text-align: left;
}
body.page:not(.woocommerce-page):not(.home) .entry-content th { background: #faf7f5; font-weight: 700; color: var(--ip-ink); }

/* ============================================================
 * MENÚ DE CUENTA DINÁMICO (header)
 * "Regístrate" como CTA, nombre de usuario + desplegable.
 * ============================================================ */
:root { --bm-red: #c42327; --bm-red-d: #a51d20; }

/* CTA "Regístrate" en el menú (botón pill compacto, alineado al header) */
li.blots-menu-cta { display: inline-flex; align-items: center; }
li.blots-menu-cta > a {
  background: var(--bm-red);
  color: #fff !important;
  border-radius: 10px;
  padding: 9px 16px !important;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
}
li.blots-menu-cta > a:hover { background: var(--bm-red-d); transform: translateY(-1px); }

/* Quitar el subrayado/realce nativo del CTA al estar activo */
li.blots-menu-cta.current-menu-item > a,
li.blots-menu-cta > a::before { box-shadow: none !important; }

/* Nombre de usuario en el menú de cuenta: ícono persona sutil */
li.blots-account-menu > a { font-weight: 600; }
li.blots-account-menu > a::before {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 7px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4 0-8 2-8 5v1h16v-1c0-3-4-5-8-5Z'/%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'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5Zm0 2c-4 0-8 2-8 5v1h16v-1c0-3-4-5-8-5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .85;
}

/* "Salir" en rojo dentro del desplegable */
li.blots-logout > a { color: var(--bm-red) !important; font-weight: 600; }
