/* ══ ESTILOS LEGALES COMPARTIDOS ══
   Se carga en todas las páginas (al final del <head>, para ganar sobre el CSS
   propio de cada página). Contiene:
     1. Botones "Botón de baja" y "Botón de arrepentimiento" del footer.
     2. Etiqueta "Publicidad" sobre todos los banners publicitarios.
     3. Letra chica informativa (.nota-chica).
     4. Formularios de /baja y /arrepentimiento (.pedido-*).
   Si hay que cambiar algo de esto, se cambia acá y se aplica en todo el sitio. */

/* 1 · Botones legales del footer (visibles, arriba de la franja de copyright) */
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 0 0 28px; padding-top: 4px;
}
.footer-legal-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  /* Sin relleno propio: toma el degradé del footer; se marca con un relieve suave y sombrita */
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(0,0,0,.07) 100%);
  color: #fff; border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 3px rgba(0,0,0,.20),
              0 3px 8px rgba(0,0,0,.25);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.footer-legal-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 3px rgba(0,0,0,.2), 0 5px 12px rgba(0,0,0,.28); }
.footer-legal-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.28), 0 1px 3px rgba(0,0,0,.2); }
.footer-legal-btn i { font-size: 1rem; }
@media (max-width: 520px) {
  /* En celular, los dos botones van uno al lado del otro, en una misma fila */
  .footer-legal { flex-wrap: nowrap; gap: 8px; }
  .footer-legal-btn {
    flex: 1 1 0; min-width: 0; justify-content: center; gap: 5px;
    padding: 10px 6px; font-size: .74rem; letter-spacing: .01em; white-space: nowrap;
  }
  .footer-legal-btn i { font-size: .75rem; }
}

/* 2 · Etiqueta "Publicidad" sobre cada banner publicitario */
.ad-banner::after {
  content: "Publicidad";
  position: absolute; top: 8px; right: 8px; z-index: 5;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff;
  font-family: 'Barlow', sans-serif; font-weight: 600;
  font-size: .68rem; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase;
  pointer-events: none;
}
.ad-banner--mini::after { display: none; } /* el mini ya tiene su propio rótulo "Publicidad" arriba */

/* 3 · Letra chica informativa */
.nota-chica, p.nota-chica, .legal-wrap p.nota-chica {
  font-family: 'Barlow', sans-serif; font-size: .74rem; line-height: 1.45;
  color: #777; margin: 8px 0 14px;
}
.nota-chica a { color: inherit; text-decoration: underline; }

/* 4 · Formularios de baja / arrepentimiento */
.pedido-card {
  background: #fff; border: 1.5px solid #F0E8DA; border-radius: 18px;
  padding: 28px 26px; margin: 26px 0; box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.pedido-field { margin-bottom: 18px; }
.pedido-field label {
  display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  color: #1A1A1A; margin-bottom: 6px;
}
.pedido-field input, .pedido-field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid #E2D8C6; background: #FAF6F0;
  font-family: 'Barlow', sans-serif; font-size: 1rem; color: #1A1A1A;
}
.pedido-field textarea { min-height: 96px; resize: vertical; }
.pedido-field input:focus, .pedido-field textarea:focus {
  outline: none; border-color: #2E93D9; box-shadow: 0 0 0 3px rgba(46,147,217,.18); background: #fff;
}
.pedido-field small { display: block; margin-top: 5px; font-size: .8rem; color: #777; }
.pedido-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pedido-btn {
  width: 100%; padding: 15px 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #1B6FB0 0%, #2E93D9 100%); color: #fff;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase;
  transition: opacity .2s, transform .2s;
}
.pedido-btn:hover { opacity: .93; transform: translateY(-1px); }
.pedido-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.pedido-error {
  display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px;
  background: #FDECEA; color: #8A1F17; font-size: .92rem; line-height: 1.5;
}
.pedido-error.show { display: block; }
.pedido-ok { display: none; text-align: center; }
.pedido-ok.show { display: block; }
.pedido-ok-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, #1B6FB0 0%, #3FAE74 100%); color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.pedido-ok h2 { margin: 0 0 12px !important; }
.pedido-codigo {
  display: inline-block; margin: 8px 0 14px; padding: 12px 20px; border-radius: 12px;
  background: #FAF6F0; border: 1.5px dashed #2E93D9;
  font-family: 'Courier New', monospace; font-size: 1.25rem; font-weight: 700;
  letter-spacing: .06em; color: #1A1A1A; user-select: all;
}

/* 5 · Datos pendientes de completar en los textos legales (resaltados a propósito) */
.completar { background: #FFF1A8; padding: 0 4px; border-radius: 4px; font-weight: 600; color: #1A1A1A; }

/* 6 · Aviso de "pasaron más de 10 días" en el Botón de arrepentimiento */
.pedido-aviso { display: none; margin: 0 0 16px; padding: 16px 18px; border-radius: 12px; background: #FFF7DD; border: 1.5px solid #F0D98A; }
.pedido-aviso.show { display: block; }
.pedido-aviso p { margin: 0 0 12px !important; font-size: .95rem !important; line-height: 1.55 !important; color: #3d3410 !important; }
.pedido-aviso-btns { display: flex; flex-direction: column; gap: 10px; }
.pedido-btn--link { display: block; text-align: center; text-decoration: none; }
.pedido-btn--sec { background: #fff; color: #1B6FB0; border: 1.5px solid #1B6FB0; }
.pedido-opc { font-weight: 500; text-transform: none; letter-spacing: 0; color: #777; font-size: .85rem; }
.pedido-field select { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #E2D8C6; background: #FAF6F0; font-family: 'Barlow', sans-serif; font-size: 1rem; color: #1A1A1A; }
.pedido-field select:focus { outline: none; border-color: #2E93D9; box-shadow: 0 0 0 3px rgba(46,147,217,.18); background: #fff; }
