/* ==========================================================================
   Landing Galeno UI
   Clases que se usan en Elementor (Avanzado › Clases CSS):
   - carrusel-mobile  → en la Cuadrícula que contiene las tarjetas
   Botón flotante de WhatsApp: se activa desde el menú Contacto
   Formularios: widget Shortcode con [cotizador_galeno form="hero" titulo="Cotizá tu plan"]
   ========================================================================== */

/* --- Formulario de cotización ------------------------------------------- */
.lgu-form { box-sizing: border-box; padding: 24px; border-radius: 28px; background: #FFFFFF; color: #0B2A5B; box-shadow: 0 20px 50px rgba(11, 42, 91, .10); display: flex; flex-direction: column; gap: 14px; font-family: inherit; }
.lgu-form * { box-sizing: border-box; }
.lgu-form [hidden] { display: none !important; }
.lgu-form .lgu-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; color: #0B2A5B; }
.lgu-form .lgu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lgu-form .lgu-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lgu-form label { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: #0B2A5B; }
.lgu-form input, .lgu-form select { width: 100%; height: 50px; margin: 0; padding: 0 16px; border: 1px solid #D3DEEC; border-radius: 14px; background: #F7F9FC; color: #0B2A5B; font: inherit; font-size: 16px; }
.lgu-form select { color: #4D6285; }
.lgu-form input:focus, .lgu-form select:focus { outline: 3px solid #0E6FD8; outline-offset: 1px; border-color: #0E6FD8; }
.lgu-form [aria-invalid="true"] { border-color: #B42318; }
.lgu-form .lgu-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: #157A3E; color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.lgu-form .lgu-btn:hover { background: #106131; }
.lgu-form .lgu-btn:focus-visible { outline: 3px solid #0E6FD8; outline-offset: 2px; }
.lgu-form .lgu-error { margin: 0; font-size: 13px; font-weight: 600; color: #B42318; }
.lgu-form .lgu-nota { margin: 0; font-size: 12px; line-height: 1.5; color: #4D6285; text-align: center; }
.lgu-form .lgu-nota a { color: #1652B8; }
@media (max-width: 767px) {
  .lgu-form .lgu-grid { grid-template-columns: 1fr; }
}

/* --- Carrusel de tarjetas en mobile ------------------------------------- */
@media (max-width: 767px) {
  .carrusel-mobile {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* El área deslizable ocupa todo el ancho de la pantalla,
       sin depender del relleno lateral de la sección. */
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 16px calc(50vw - 50%) 12px !important;
    scroll-padding-inline: calc(50vw - 50%);
    scrollbar-width: none;
  }
  .carrusel-mobile::-webkit-scrollbar { display: none; }
  .carrusel-mobile > .e-con {
    flex: 0 0 82% !important;
    max-width: 82%;
    scroll-snap-align: start;
  }
}

/* --- Puntitos del carrusel ---------------------------------------------- */
.carrusel-dots { display: none; }
@media (max-width: 767px) {
  .carrusel-dots { display: flex; justify-content: center; align-items: center; gap: 4px; padding-top: 6px; }
  .carrusel-dots button { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
  .carrusel-dots button::before { content: ""; display: block; height: 8px; width: 8px; border-radius: 999px; background: #4D6285; opacity: .3; transition: all .5s ease-in-out; }
  .carrusel-dots button:hover::before { opacity: .5; }
  .carrusel-dots button[aria-current="true"]::before { width: 16px; background: #1652B8; opacity: 1; }
  .carrusel-dots button:focus-visible { outline: 2px solid #0E6FD8; outline-offset: 2px; border-radius: 999px; }
}

/* --- Botón flotante de WhatsApp ----------------------------------------- */
.lgu-wa-flotante {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 998; /* debajo del encabezado fijo (999) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 10px 24px rgba(11, 42, 91, .22);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lgu-wa-flotante svg { display: block; width: 30px; height: 30px; }
.lgu-wa-flotante:hover { transform: scale(1.06); box-shadow: 0 14px 28px rgba(11, 42, 91, .28); }
.lgu-wa-flotante:focus-visible { outline: 3px solid #0E6FD8; outline-offset: 3px; }
@media (max-width: 767px) {
  .lgu-wa-flotante { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .lgu-wa-flotante svg { width: 28px; height: 28px; }
}
@media print { .lgu-wa-flotante { display: none; } }

/* --- Movimiento reducido ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .carrusel-dots button::before { transition: none; }
  .lgu-wa-flotante { transition: none; }
  .lgu-wa-flotante:hover { transform: none; }
}
