/* Estilos propios del sitio de Glosa.
   heredado.css trae la base tipográfica y el diseño que ya existía; acá va lo nuevo:
   encabezado, botón de WhatsApp, formularios y ajustes de plantilla. */

:root {
  --gs-negro: #0d0d0d;
  --gs-celeste: #2ea7f2;
  --gs-naranja: #f24607;
  --gs-naranja-oscuro: #d23d06;
  --gs-fuente: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gs-sistema: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ---------- Encabezado ---------- */
.gs-head { background: var(--gs-negro); position: relative; z-index: 50; font-family: var(--gs-sistema); }
.gs-head-in { max-width: 1240px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gs-logo { display: block; flex: none; line-height: 0; }
.gs-logo img { width: 160px; height: auto; display: block; }
.gs-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.gs-nav li { position: relative; margin: 0; }
.gs-nav a { color: #fff; text-decoration: none; font-size: 16px; font-weight: 400; line-height: 80px; padding: 0 16px; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: color .2s ease; }
.gs-nav li:hover > a, .gs-nav li:focus-within > a, .gs-nav .gs-activo > a { color: var(--gs-celeste); }
.gs-flecha { fill: currentColor; flex: none; }
.gs-sub { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; width: 240px; background: #1a1a1a; border-top: 2px solid #2a2a2a; box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .1); visibility: hidden; opacity: 0; transition: opacity .15s ease; }
.gs-con-sub:hover > .gs-sub, .gs-con-sub:focus-within > .gs-sub { visibility: visible; opacity: 1; }
.gs-sub a { color: #e8e8e8; line-height: 1.45; padding: 14.4px 16px; white-space: normal; }
.gs-sub li:hover > a, .gs-sub .gs-activo > a { color: var(--gs-celeste); background: var(--gs-negro); }
.gs-nav .gs-cta { display: flex; align-items: center; }
.gs-nav .gs-cta > a { background: var(--gs-naranja); color: #fff; border-radius: 8px; padding: 11px 22px; line-height: 1; margin-left: 14px; display: inline-block; transition: background .2s ease; }
.gs-nav .gs-cta > a:hover { background: var(--gs-naranja-oscuro); color: #fff; }

.gs-burger { display: none; background: none; border: 0; padding: 10px; margin: 0; cursor: pointer; border-radius: 6px; line-height: 0; }
.gs-burger:hover, .gs-burger:focus { background: rgba(255, 255, 255, .08); }
.gs-burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; }
.gs-mob { background: var(--gs-negro); border-top: 1px solid rgba(255, 255, 255, .08); padding: 8px 24px 20px; display: flex; flex-direction: column; }
.gs-mob[hidden] { display: none; }
.gs-mob a { color: #e8e8e8; text-decoration: none; font-size: 16px; padding: 13px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.gs-mob a:hover { color: var(--gs-celeste); }
.gs-mob .gs-mob-titulo { color: #9a9a9a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; border-bottom: 0; padding-bottom: 2px; padding-top: 18px; }
.gs-mob .gs-mob-hijo { padding-left: 14px; }
.gs-mob .gs-mob-cta { background: var(--gs-naranja); color: #fff; text-align: center; border-radius: 8px; margin-top: 16px; border: 0; font-weight: 600; }
.gs-mob .gs-mob-cta:hover { background: var(--gs-naranja-oscuro); color: #fff; }
@media (max-width: 921px) {
  .gs-nav { display: none; }
  .gs-burger { display: block; }
  .gs-logo img { width: 140px; }
}
@media (min-width: 922px) { .gs-mob { display: none !important; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.gs-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 1px 6px 24px rgba(7, 94, 84, .24); transition: transform .2s ease, background .2s ease; }
.gs-wa:hover { background: #1ebe5b; color: #fff; transform: scale(1.06); }
@media (max-width: 480px) { .gs-wa { right: 12px; bottom: 12px; width: 54px; height: 54px; } }
@media print { .gs-wa, .gs-head, .gf-foot { display: none; } }

/* ---------- Formularios propios (reemplazan a WPForms) ----------
   Los selectores llevan "form.gform" adelante a propósito: varias páginas traen un
   reset propio (".gh *{margin:0;padding:0}") que si no les gana. */
form.gform { font-family: var(--gs-fuente); text-align: left; display: grid; gap: 18px; max-width: 100%; margin: 0; }
form.gform .gform-campo { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
form.gform label, form.gform legend { font-size: 15px; font-weight: 600; line-height: 1.4; color: inherit; padding: 0; }
form.gform label span, form.gform legend span { color: var(--gs-naranja); }
form.gform input[type=text], form.gform input[type=email], form.gform input[type=tel], form.gform select, form.gform textarea {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 16px; font-weight: 400; color: #0d0d0d; background-color: #fff;
  border: 1px solid #cfd4da; border-radius: 8px; padding: 12px 14px; line-height: 1.4; min-height: 48px; margin: 0;
}
form.gform textarea { min-height: 130px; resize: vertical; }
form.gform input:focus, form.gform select:focus, form.gform textarea:focus { outline: 2px solid var(--gs-celeste); outline-offset: 1px; border-color: var(--gs-celeste); }
form.gform [aria-invalid=true] { border-color: #d92d20; }
form.gform .gform-checks { gap: 8px; }
form.gform .gform-checks label { font-weight: 400; display: flex; align-items: center; gap: 8px; }
form.gform .gform-checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--gs-celeste); }
form.gform .gform-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
form.gform .gform-captcha:empty { display: none; }
form.gform .gform-boton { justify-self: start; background: var(--gs-naranja); border: 0; color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; padding: 16px 30px; border-radius: 8px; cursor: pointer; transition: background .2s ease; }
form.gform .gform-boton:hover, form.gform .gform-boton:focus { background: var(--gs-naranja-oscuro); color: #fff; }
form.gform .gform-boton[disabled] { opacity: .6; cursor: default; }
form.gform .gform-msg { margin: 0; font-size: 15px; line-height: 1.5; }
form.gform .gform-msg:empty { display: none; }
form.gform .gform-msg.ok { color: #067647; }
form.gform .gform-msg.error { color: #b42318; }
form.gform .gform-msg a { color: inherit; font-weight: 600; }

/* ---------- Feed de Instagram congelado (antes lo armaba un plugin) ---------- */
#sb_instagram { width: 100%; margin: 0 auto; padding: 0 0 10px; box-sizing: border-box; }
#sb_instagram .sb_instagram_header { padding: 12px 0; margin: 0; }
#sb_instagram .sbi_header_link { text-decoration: none; color: #046bd2; }
#sb_instagram .sbi_header_text { display: flex; align-items: center; gap: 18px; }
#sb_instagram .sbi_header_img { position: relative; flex: none; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; }
#sb_instagram .sbi_header_img img { display: block; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
#sb_instagram .sbi_header_img_hover { display: none; }
#sb_instagram .sb_instagram_header h3 { font-family: var(--gs-fuente); font-size: 20px; font-weight: 600; line-height: 1.4; margin: 0; color: #1e293b; }
#sb_instagram .sbi_bio { font-size: 14px; line-height: 1.4; margin: 0; }
#sb_instagram .sbi_item { flex: 0 0 250px; width: 250px; height: 250px; margin: 0; }
#sb_instagram .sbi_photo { display: block; width: 250px; height: 250px; text-decoration: none; overflow: hidden; }
#sb_instagram .sbi_photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
#sb_instagram .sbi-screenreader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#sb_instagram .sbi_lightbox_carousel_icon, #sb_instagram .sbi_playbtn, #sb_instagram .sbi_load_btn { display: none; }
#sb_instagram #sbi_load { text-align: center; }
#sb_instagram .sbi_follow_btn a { display: inline-flex; align-items: center; gap: 6px; background: #408bd1; color: #fff; padding: 7px 14px; border-radius: 4px; font-size: 13px; line-height: 1.5; margin-top: 5px; text-decoration: none; }
#sb_instagram .sbi_follow_btn a:hover { background: #3577b5; color: #fff; }
#sb_instagram .sbi_follow_btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Listado del blog cuando se busca u ordena ---------- */
.glosa-free-estado { font-family: var(--gs-fuente); font-size: 15px; color: #555; margin: 0 0 24px; }
.gh-bf-sort a.gs-orden-activo { color: #0d0d0d !important; }

/* ---------- Páginas de solo texto (política de privacidad) ---------- */
.gs-texto { max-width: 1140px; margin-left: auto; margin-right: auto; padding: 10px; }

/* ---------- 404 ---------- */
.gs-404 { font-family: var(--gs-fuente); max-width: 680px; margin: 0 auto; padding: 96px 24px 120px; text-align: center; color: #0d0d0d; }
.gs-404 h1 { font-size: 36px; font-weight: 700; margin: 0 0 14px; color: #0d0d0d; }
.gs-404 p { font-size: 17px; color: #444; margin: 0 0 26px; }
.gs-boton { display: inline-block; background: var(--gs-naranja); color: #fff; text-decoration: none; font-weight: 600; padding: 13px 24px; border-radius: 8px; margin: 4px; }
.gs-boton:hover { background: var(--gs-naranja-oscuro); color: #fff; }
.gs-boton-claro { background: #f2f2f2; color: #0d0d0d; }
.gs-boton-claro:hover { background: #e4e4e4; color: #0d0d0d; }

/* ---------- Banner de cookies ---------- */
.gs-cookies { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(440px, calc(100vw - 40px)); background: var(--gs-negro); color: #e8e8e8; font-family: var(--gs-fuente); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 18px 20px; box-shadow: 0 12px 34px rgba(0, 0, 0, .28); }
.gs-cookies[hidden] { display: none; }
.gs-cookies .gs-cookies-texto { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: #e8e8e8; }
.gs-cookies .gs-cookies-texto a { color: var(--gs-celeste); text-decoration: underline; white-space: nowrap; }
.gs-cookies .gs-cookies-botones { display: flex; gap: 10px; justify-content: flex-end; }
.gs-cookies button { font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; padding: 12px 20px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.gs-cookies .gs-cookies-no { background: transparent; color: #e8e8e8; border-color: rgba(255, 255, 255, .28); }
.gs-cookies .gs-cookies-no:hover, .gs-cookies .gs-cookies-no:focus { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); }
.gs-cookies .gs-cookies-si { background: var(--gs-naranja); color: #fff; }
.gs-cookies .gs-cookies-si:hover, .gs-cookies .gs-cookies-si:focus { background: var(--gs-naranja-oscuro); color: #fff; }
.gf-foot .gs-cookies-link { font-size: 13px; color: #9a9a9a; text-decoration: underline; }
.gf-foot .gs-cookies-link:hover { color: var(--gs-celeste); }
@media (max-width: 480px) {
  /* Queda por encima del botón de WhatsApp para no taparlo. */
  .gs-cookies { left: 12px; right: 12px; bottom: 78px; width: auto; padding: 16px; }
  .gs-cookies .gs-cookies-botones { justify-content: stretch; }
  .gs-cookies button { flex: 1; }
}
@media print { .gs-cookies { display: none; } }

/* ---------- Videos de las entradas ---------- */
/* WordPress les dejó un ancho fijo en píxeles: en celular desbordaban la página. */
.entry-content .wp-video, .entry-content video { width: 100% !important; max-width: 100% !important; height: auto !important; }
