/* ==========================================================================
   Rediseño Páginas Legales (Aviso legal, Privacidad, Cookies)
   Alineadas al estándar de contenedor, tipografía y elementos del sitio
   ========================================================================== */

.gp-legal-seccion-wrap {
  background: transparent;
  padding-bottom: 90px;
}

.gp-legal-cabecera {
  width: 100%;
  margin-bottom: 28px;
}

.gp-legal-cabecera .gp-miga {
  margin-bottom: 0;
}

.gp-legal-cuerpo {
  width: 100%;
}

.gp-legal-seccion {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(48, 64, 73, 0.08);
}

.gp-legal-seccion:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gp-legal-titulo {
  font-family: var(--font-heading, "Altone", sans-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading, #304049);
  margin: 0 0 16px;
  position: relative;
  padding-left: 14px;
  border-left: 3.5px solid var(--color-primary, #b0612b);
}

.gp-legal-parrafo {
  font-family: var(--font-body, "Altone", sans-serif);
  font-size: 16px;
  line-height: 1.8;
  color: #4a5963;
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

.gp-legal-parrafo:last-child {
  margin-bottom: 0;
}

.gp-legal-parrafo a {
  color: var(--color-primary, #b0612b);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.gp-legal-parrafo a:hover {
  opacity: 0.8;
}

/* Interlinkeado interno / CTA estándar alineado a la retícula */
.gp-legal-cta {
  width: 100%;
  margin-top: 56px;
  padding: 48px 36px;
  background: var(--gp-beige, #f3ebd6);
  border-radius: 20px;
  text-align: center;
}

.gp-legal-cta-intro {
  font-family: var(--font-heading, "Altone", sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading, #304049);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .gp-legal-seccion-wrap {
    padding-bottom: 50px;
  }

  .gp-legal-cabecera {
    margin-bottom: 20px;
  }

  .gp-legal-titulo {
    font-size: 19.5px;
    padding-left: 12px;
  }

  .gp-legal-parrafo {
    font-size: 15px;
    line-height: 1.75;
  }

  .gp-legal-cta {
    margin-top: 40px;
    padding: 32px 20px;
    border-radius: 16px;
  }

  .gp-legal-cta-intro {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

/* --- Formulario de contacto: estados y campo trampa --------------------- */

/* El honeypot debe ser invisible para una persona pero existir en el DOM.
   No se usa display:none porque algunos bots lo detectan y lo saltan. */
.gp-form-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Acuse de recibo. El formulario no se sustituye por un mensaje: se vacía
   y es el propio botón el que confirma, así la página no da un salto y
   quien escribe sigue viendo dónde estaba. Vuelve solo a los 6 s. */
.gp-btn-enviado,
.gp-btn-enviado:hover {
  background: var(--color-secondary, #304049);
  color: var(--color-white, #fff);
  cursor: default;
  opacity: 1;
}

/* La plantilla coloca la flecha en span::before/::after y compensa con un
   margen negativo. En este estado sobra: la sustituye la marca de visto. */
.gp-btn-enviado span {
  margin-left: 0;
  padding-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: gp-entra-texto 0.45s var(--easing, ease) both;
}

.gp-btn-enviado span::before,
.gp-btn-enviado span::after {
  content: none;
}

.gp-check {
  width: 22px;
  height: 22px;
  flex: none;
}

.gp-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Longitud del trazo: se dibuja de un extremo al otro. */
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: gp-dibuja-visto 0.5s 0.12s ease-out forwards;
}

@keyframes gp-dibuja-visto {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes gp-entra-texto {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Nota bajo el botón. Se mantiene siempre en el DOM, aunque vacía, para
   que los lectores de pantalla anuncien el cambio (role="status"). */
.gp-form-nota {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-default, #304049);
  opacity: 0.75;
  animation: gp-entra-texto 0.45s 0.2s var(--easing, ease) both;
}

.gp-form-nota:empty {
  margin: 0;
  height: 0;
  overflow: hidden;
  animation: none;
}

/* Quien haya pedido menos movimiento ve el mismo resultado, sin recorrido. */
@media (prefers-reduced-motion: reduce) {
  .gp-btn-enviado span,
  .gp-form-nota {
    animation: none;
  }

  .gp-check path {
    stroke-dashoffset: 0;
    animation: none;
  }
}

/* Aviso de reCAPTCHA. Google permite ocultar su insignia flotante siempre
   que se muestre este texto con los dos enlaces, que es lo que hacemos:
   la insignia tapaba el botón de volver arriba. */
.gp-form-recaptcha {
  margin-top: 24px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-default, #304049);
  opacity: 0.7;
}

.gp-form-recaptcha a {
  color: inherit;
  text-decoration: underline;
}

.grecaptcha-badge {
  visibility: hidden;
}
