/* CookieConsent — estilos del componente de Framer (gerardhmoreno.com), sin cambios.
   Clases ghm-cc-*; variables de color en la raíz (las fija cookie-consent.js). */
.ghm-cc-root{
  --ghm-muted: color-mix(in srgb, var(--ghm-text) 72%, transparent);
  --ghm-soft: color-mix(in srgb, var(--ghm-text) 7%, transparent);
  --ghm-line: color-mix(in srgb, var(--ghm-text) 20%, transparent);
  --ghm-btn-radius: max(8px, calc(var(--ghm-radius) * 0.55));
  font-family: "Inter", "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ghm-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}
.ghm-cc-root *, .ghm-cc-root *::before, .ghm-cc-root *::after{ box-sizing: border-box; }
.ghm-cc-root h2, .ghm-cc-root h3, .ghm-cc-root p, .ghm-cc-root ul{ margin: 0; padding: 0; }
.ghm-cc-root ul{ list-style: none; }
.ghm-cc-root button{
  font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent; text-transform: none; letter-spacing: inherit;
}
.ghm-cc-root :focus{ outline: none; }
.ghm-cc-root :focus-visible{ outline: 2px solid var(--ghm-accent); outline-offset: 3px; }
.ghm-cc-root .ghm-cc-panel:focus-visible{ outline: none; }

/* Tarjeta */
.ghm-cc-root .ghm-cc-card{
  position: relative;
  background: var(--ghm-bg);
  color: var(--ghm-text);
  border: 1px solid var(--ghm-border);
  border-radius: var(--ghm-radius);
  box-shadow: 0 30px 70px -26px rgba(0,0,0,.7), 0 10px 26px -14px rgba(0,0,0,.55);
}
.ghm-cc-root .ghm-cc-card::before{
  content: "";
  position: absolute;
  top: -1px; left: 24px;
  width: 64px; height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--ghm-accent), var(--ghm-detail));
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.ghm-cc-root .ghm-cc-card:hover::before{ width: 96px; }

/* Banner */
.ghm-cc-root .ghm-cc-banner{
  position: fixed;
  z-index: 2147483000;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 22px 22px 18px;
  animation: ghm-cc-in .34s cubic-bezier(.2,.8,.2,1) backwards;
}
.ghm-cc-root .ghm-cc-banner.pos-left{ left: 24px; }
.ghm-cc-root .ghm-cc-banner.pos-right{ right: 24px; }
.ghm-cc-root .ghm-cc-banner.pos-center{ left: 0; right: 0; margin: 0 auto; }
.ghm-cc-root .ghm-cc-banner.is-static{ position: relative; bottom: auto; left: auto; right: auto; margin: 0; }
.ghm-cc-root .ghm-cc-banner.is-leaving{ animation: ghm-cc-out .2s ease-in forwards; }

.ghm-cc-root .ghm-cc-head{ display: flex; align-items: center; gap: 10px; padding-right: 36px; margin-bottom: 10px; }
.ghm-cc-root .ghm-cc-mark{
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ghm-accent);
  background: color-mix(in srgb, var(--ghm-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ghm-accent) 26%, transparent);
}
.ghm-cc-root .ghm-cc-mark svg{ width: 16px; height: 16px; }
.ghm-cc-root .ghm-cc-title{
  font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.25;
  letter-spacing: -0.015em; color: var(--ghm-text);
}
.ghm-cc-root .ghm-cc-text{ font-size: 13.5px; line-height: 1.6; color: var(--ghm-muted); }
.ghm-cc-root .ghm-cc-link{
  display: inline-block; margin-top: 8px;
  font-size: 13px; font-weight: 500; color: var(--ghm-accent);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--ghm-accent) 45%, transparent);
  transition: text-decoration-color .2s, color .2s;
  border-radius: 4px;
}
.ghm-cc-root .ghm-cc-link:hover{ text-decoration-color: var(--ghm-detail); }

/* Cerrar */
.ghm-cc-root .ghm-cc-close{
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 34px; height: 34px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ghm-muted);
  transition: background-color .2s, color .2s;
}
.ghm-cc-root .ghm-cc-close svg{ width: 16px; height: 16px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ghm-cc-root .ghm-cc-close:hover{ background: var(--ghm-soft); color: var(--ghm-text); }
.ghm-cc-root .ghm-cc-close:hover svg{ transform: rotate(90deg); }

/* Botones */
.ghm-cc-root .ghm-cc-actions{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ghm-cc-root .ghm-cc-btn{
  min-height: 42px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--ghm-btn-radius);
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.1;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, box-shadow .22s ease, border-color .18s ease, color .18s ease;
}
.ghm-cc-root .ghm-cc-btn:active{ transform: translateY(0) scale(.98); }
.ghm-cc-root .ghm-cc-btn.is-primary{ background: var(--ghm-accent); color: var(--ghm-bg); border: 1px solid var(--ghm-accent); }
.ghm-cc-root .ghm-cc-btn.is-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--ghm-accent) 75%, transparent);
}
.ghm-cc-root .ghm-cc-btn.is-outline{ color: var(--ghm-text); border: 1px solid var(--ghm-line); }
.ghm-cc-root .ghm-cc-btn.is-outline:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ghm-text) 55%, transparent);
  background: var(--ghm-soft);
}
.ghm-cc-root .ghm-cc-btn.is-ghost{ color: var(--ghm-muted); padding: 0 12px; }
.ghm-cc-root .ghm-cc-btn.is-ghost:hover{ color: var(--ghm-text); background: var(--ghm-soft); }

.ghm-cc-root .ghm-cc-actions--banner .is-primary,
.ghm-cc-root .ghm-cc-actions--banner .is-outline{ flex: 1 1 0; }
.ghm-cc-root .ghm-cc-actions--banner .is-ghost{ flex: 0 0 auto; }
.ghm-cc-root .ghm-cc-actions--prefs .ghm-cc-btn{ flex: 1 1 auto; }

/* Panel de preferencias */
.ghm-cc-root .ghm-cc-overlay{
  position: fixed; inset: 0; z-index: 2147483001;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 7, .58);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: ghm-cc-fade .24s ease backwards;
}
.ghm-cc-root .ghm-cc-overlay.is-static{ position: absolute; padding: 12px; }
.ghm-cc-root .ghm-cc-overlay.is-leaving{ animation: ghm-cc-fade-out .2s ease forwards; }
.ghm-cc-root .ghm-cc-panel{
  width: 540px; max-width: 100%;
  max-height: min(720px, calc(100vh - 48px));
  max-height: min(720px, calc(100dvh - 48px));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 26px 22px;
  animation: ghm-cc-in .34s cubic-bezier(.2,.8,.2,1) backwards;
}
.ghm-cc-root .ghm-cc-overlay.is-leaving .ghm-cc-panel{ animation: ghm-cc-out .2s ease-in forwards; }
.ghm-cc-root .ghm-cc-overlay.is-static .ghm-cc-panel{ max-height: 100%; }

.ghm-cc-root .ghm-cc-cats{ margin-top: 18px; border-top: 1px solid var(--ghm-border); }
.ghm-cc-root .ghm-cc-cat{
  display: flex; align-items: flex-start; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--ghm-border);
}
.ghm-cc-root .ghm-cc-cat-text{ flex: 1 1 auto; min-width: 0; }
.ghm-cc-root .ghm-cc-cat-name{ font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ghm-text); }
.ghm-cc-root .ghm-cc-cat-desc{ margin-top: 3px; font-size: 13px; line-height: 1.55; color: var(--ghm-muted); }
.ghm-cc-root .ghm-cc-pill{
  flex: 0 0 auto; margin-top: 1px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--ghm-accent);
  padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ghm-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ghm-accent) 30%, transparent);
}

/* Switch */
.ghm-cc-root .ghm-cc-control{ flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin-top: 1px; }
.ghm-cc-root .ghm-cc-state{ font-size: 12px; color: var(--ghm-muted); min-width: 74px; text-align: right; }
.ghm-cc-root .ghm-cc-switch{
  position: relative; flex: 0 0 auto;
  width: 46px; height: 28px; border-radius: 999px;
  background: color-mix(in srgb, var(--ghm-text) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ghm-text) 14%, transparent);
  transition: background-color .2s ease, border-color .2s ease;
}
.ghm-cc-root .ghm-cc-switch::after{ content: ""; position: absolute; inset: -8px; }
.ghm-cc-root .ghm-cc-switch:hover{ border-color: color-mix(in srgb, var(--ghm-accent) 60%, transparent); }
.ghm-cc-root .ghm-cc-switch-knob{
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ghm-text);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  transition: transform .26s cubic-bezier(.3,1.4,.5,1), background-color .2s ease;
}
.ghm-cc-root .ghm-cc-switch[aria-checked="true"]{ background: var(--ghm-accent); border-color: var(--ghm-accent); }
.ghm-cc-root .ghm-cc-switch[aria-checked="true"] .ghm-cc-switch-knob{ transform: translateX(18px); background: var(--ghm-bg); }

/* Botón flotante discreto */
.ghm-cc-root .ghm-cc-fab{
  position: fixed; z-index: 2147482999;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ghm-bg);
  border: 1px solid var(--ghm-border);
  color: var(--ghm-accent);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.6);
  opacity: .78;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
  animation: ghm-cc-pop .35s cubic-bezier(.2,.8,.2,1) .15s backwards;
}
.ghm-cc-root .ghm-cc-fab.pos-left{ left: 16px; }
.ghm-cc-root .ghm-cc-fab.pos-right{ right: 16px; }
.ghm-cc-root .ghm-cc-fab svg{ width: 18px; height: 18px; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.ghm-cc-root .ghm-cc-fab:hover,
.ghm-cc-root .ghm-cc-fab:focus-visible{
  opacity: 1; transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ghm-accent) 50%, transparent);
}
.ghm-cc-root .ghm-cc-fab:hover svg{ transform: rotate(-20deg); }
.ghm-cc-root .ghm-cc-fab-tip{
  position: absolute; top: 50%; left: calc(100% + 10px);
  transform: translate(-4px, -50%);
  white-space: nowrap; pointer-events: none;
  font-size: 12px; font-weight: 500; color: var(--ghm-text);
  padding: 6px 10px; border-radius: 8px;
  background: var(--ghm-bg); border: 1px solid var(--ghm-border);
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.ghm-cc-root .ghm-cc-fab.pos-right .ghm-cc-fab-tip{ left: auto; right: calc(100% + 10px); transform: translate(4px, -50%); }
.ghm-cc-root .ghm-cc-fab:hover .ghm-cc-fab-tip,
.ghm-cc-root .ghm-cc-fab:focus-visible .ghm-cc-fab-tip{ opacity: 1; transform: translate(0, -50%); }


/* Animaciones */
@keyframes ghm-cc-in{ from{ opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes ghm-cc-out{ to{ opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes ghm-cc-fade{ from{ opacity: 0; } }
@keyframes ghm-cc-fade-out{ to{ opacity: 0; } }
@keyframes ghm-cc-pop{ from{ opacity: 0; transform: scale(.85); } }

/* Móvil */
@media (max-width: 640px){
  .ghm-cc-root .ghm-cc-banner,
  .ghm-cc-root .ghm-cc-banner.pos-left,
  .ghm-cc-root .ghm-cc-banner.pos-right,
  .ghm-cc-root .ghm-cc-banner.pos-center{
    left: 12px; right: 12px; width: auto; max-width: none; margin: 0;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 20px 18px 16px;
  }
  .ghm-cc-root .ghm-cc-banner.is-static{ left: auto; right: auto; bottom: auto; width: 100%; }
  .ghm-cc-root .ghm-cc-btn{ min-height: 48px; }
  .ghm-cc-root .ghm-cc-actions--banner .is-primary,
  .ghm-cc-root .ghm-cc-actions--banner .is-outline{ flex: 1 1 calc(50% - 4px); }
  .ghm-cc-root .ghm-cc-actions--banner .is-ghost{ flex: 1 1 100%; }
  .ghm-cc-root .ghm-cc-overlay{ align-items: flex-end; padding: 12px; }
  .ghm-cc-root .ghm-cc-panel{
    padding: 22px 18px 18px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .ghm-cc-root .ghm-cc-actions--prefs .is-primary{ flex: 1 1 100%; }
  .ghm-cc-root .ghm-cc-actions--prefs .is-outline{ flex: 1 1 calc(50% - 4px); }
  .ghm-cc-root .ghm-cc-state{ display: none; }
  .ghm-cc-root .ghm-cc-fab{ width: 38px; height: 38px; }
  .ghm-cc-root .ghm-cc-fab.pos-left{ left: 12px; }
  .ghm-cc-root .ghm-cc-fab.pos-right{ right: 12px; }
}
@media (hover: none){
  .ghm-cc-root .ghm-cc-fab-tip{ display: none; }
}
@media (prefers-reduced-motion: reduce){
  .ghm-cc-root *, .ghm-cc-root *::before, .ghm-cc-root *::after{
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}

/* Landing: mientras el aviso está abierto en móvil, ocultar los botones flotantes de WhatsApp/llamada para no taparlo */
@media (max-width: 640px){ html.ghm-cc-banner-open .fab{ opacity: 0; visibility: hidden; pointer-events: none; } }
