/* ============================================================
   AG PLOMERIA - Modal de captacion de leads por WhatsApp
   css/ag-lead-modal.css
   Color de marca: #FA562E
   ============================================================ */

:root {
  --agm-brand: #FA562E;
  --agm-brand-dark: #e04519;
  --agm-ink: #1f2d30;
  --agm-wa: #25d366;
}

/* Overlay */
#agm-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 22, 24, 0.62);
  padding: 16px;
  -webkit-backface-visibility: hidden;
}
#agm-overlay.agm-open { display: flex; }

/* Caja del modal */
.agm-box {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--agm-ink);
  animation: agm-pop .18s ease-out;
  max-height: 94vh;
  overflow-y: auto;
}
@keyframes agm-pop {
  from { transform: translateY(14px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Encabezado */
.agm-head {
  background: var(--agm-brand);
  color: #fff;
  padding: 18px 20px 16px;
  position: relative;
}
.agm-head h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}
.agm-head p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .95;
  color: #fff;
}
.agm-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
}
.agm-close:hover { background: rgba(255, 255, 255, 0.34); }

/* Cuerpo / formulario */
.agm-body { padding: 18px 20px 20px; }
.agm-field { margin-bottom: 13px; }
.agm-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--agm-ink);
}
.agm-field .agm-req { color: var(--agm-brand); }

.agm-input,
.agm-select,
.agm-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d7dde0;
  border-radius: 10px;
  font-size: 15px;
  color: var(--agm-ink);
  background: #fff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.agm-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f2d30' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.agm-textarea { min-height: 74px; resize: vertical; }
.agm-input:focus,
.agm-select:focus,
.agm-textarea:focus {
  outline: none;
  border-color: var(--agm-brand);
  box-shadow: 0 0 0 3px rgba(250, 86, 46, 0.15);
}
.agm-input.agm-error,
.agm-select.agm-error {
  border-color: #e23b3b;
  box-shadow: 0 0 0 3px rgba(226, 59, 59, 0.14);
}

/* Honeypot - oculto para humanos, visible para bots */
.agm-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Boton enviar */
.agm-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--agm-wa);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  transition: filter .15s, opacity .15s;
  font-family: inherit;
}
.agm-submit:hover { filter: brightness(.95); }
.agm-submit:disabled { opacity: .7; cursor: default; }
.agm-submit svg { width: 20px; height: 20px; fill: #fff; }

.agm-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: #6b7679;
  text-align: center;
  line-height: 1.45;
}

/* Spinner */
.agm-spin {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: agm-rot .7s linear infinite;
  display: none;
}
.agm-loading .agm-spin { display: inline-block; }
.agm-loading .agm-submit-label,
.agm-loading .agm-submit svg { display: none; }
@keyframes agm-rot { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .agm-box { max-width: 100%; border-radius: 14px; }
  .agm-head h3 { font-size: 17px; }
}

/* reCAPTCHA heredado: ya no aplica (los formularios van por WhatsApp) */
.g-recaptcha,
#g-recaptcha-error { display: none !important; }

/* ============================================================
   Botones flotantes AG (reemplazan al plugin ausente)
   ============================================================ */
#agf-bar .agf-fab {
  position: fixed;
  z-index: 99990;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
  color: #fff;
  text-decoration: none;
  transition: transform .15s, filter .15s;
}
#agf-bar .agf-fab:hover { transform: scale(1.08); filter: brightness(1.05); }
#agf-bar .agf-fab svg { width: 28px; height: 28px; fill: #fff; }
.agf-wa    { left: 18px;  bottom: 20px;  background: #25d366; }
.agf-call1 { right: 18px; bottom: 20px;  background: var(--agm-brand); }
.agf-call2 { right: 18px; bottom: 82px;  background: #0f5ae0; }
.agf-pay   { right: 18px; bottom: 144px; background: #1f2d30; }
@media (max-width: 480px) {
  #agf-bar .agf-fab { width: 48px; height: 48px; }
  #agf-bar .agf-fab svg { width: 24px; height: 24px; }
  .agf-call2 { bottom: 74px; }
  .agf-pay   { bottom: 128px; }
}

/* Ocultar los flotantes viejos que dependían del plugin ausente */
.wcs_fixed_right-2,
.wcs_fixed_right-3,
.wcs_fixed_right-5,
.whatsapp_chat_support,
a.flotante,
a.flotantee { display: none !important; }

/* ============================================================
   Sección de opiniones de Google (mapa + valoración + reseña)
   ============================================================ */
.aggoogle { background: #f7f8f9; padding: 44px 16px; }
.aggoogle__inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch;
}
.aggoogle__map { border-radius: 14px; overflow: hidden; min-height: 260px; border: 1px solid #e6e6e6; }
.aggoogle__map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.aggoogle__card {
  background: #fff; border: 1px solid #e6e6e6; border-radius: 14px; padding: 26px;
  display: flex; flex-direction: column; justify-content: center;
}
.aggoogle__g { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: Arial, sans-serif; }
.aggoogle__logo { font-size: 24px; font-weight: 700; }
.aggoogle__logo .b1 { color: #4285F4; } .aggoogle__logo .r { color: #EA4335; }
.aggoogle__logo .y { color: #FBBC05; } .aggoogle__logo .g { color: #34A853; }
.aggoogle__g .lbl { color: #6b7679; font-size: 15px; }
.aggoogle__rate { display: flex; align-items: baseline; gap: 10px; }
.aggoogle__num { font-size: 46px; font-weight: 700; color: #1f2d30; line-height: 1; }
.aggoogle__stars { color: #FBBC05; font-size: 26px; letter-spacing: 2px; }
.aggoogle__stars .empty { color: #dcdfe1; }
.aggoogle__count { color: #6b7679; font-size: 14px; margin: 8px 0 14px; }
.aggoogle__txt { font-size: 15px; color: #1f2d30; margin: 0 0 16px; line-height: 1.55; }
.aggoogle__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--agm-brand); color: #fff !important; font-weight: 700; font-size: 15px;
  padding: 13px 20px; border-radius: 10px; text-decoration: none; transition: filter .15s;
}
.aggoogle__btn:hover { filter: brightness(.95); }
@media (max-width: 760px) { .aggoogle__inner { grid-template-columns: 1fr; } }
