/* =========================
   FOOTERS.CSS (RESPONSIVE REAL + BLINDADO)
   ========================= */

:root{
  --llf-bg: #0b0f14;
  --llf-card: rgba(255,255,255,.06);
  --llf-border: rgba(255,255,255,.10);
  --llf-text: rgba(255,255,255,.92);
  --llf-muted: rgba(255,255,255,.70);
  --llf-accent: #36d17c;
}

/* =========================
   ANTI-OVERFLOW (solo ámbito llf)
   - Si algo no es responsive, casi siempre es por overflow
   ========================= */
.llf-contact-surface,
.llf-surface{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden; /* evita que algo interno saque scroll horizontal */
}

.llf-contact-surface *,
.llf-surface *{
  min-width: 0; /* CLAVE para flex/grid con textos largos */
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Evita imágenes o iframes gigantes */
.llf-contact-surface img,
.llf-surface img,
.llf-contact-surface iframe,
.llf-surface iframe{
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Superficie con fondo
   ========================= */
.llf-contact-surface,
.llf-surface{
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(54,209,124,.18), transparent 55%),
    radial-gradient(1200px 700px at 90% 0%, rgba(0,170,255,.14), transparent 60%),
    rgba(0,0,0,0);
}

/* =========================
   Hero
   ========================= */
.llf-hero{
  border: 1px solid var(--llf-border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  margin-bottom: 12px;
}

.llf-title{
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0;
  color: var(--llf-text);
  line-height: 1.15;
}
.llf-sub{
  color: var(--llf-muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

/* =========================
   Cards
   ========================= */
.llf-card{
  width: 100%;
  border: 1px solid var(--llf-border);
  background: var(--llf-card);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  overflow: hidden;
  color: var(--llf-text);
  margin-bottom: 12px;
}

.llf-card-h{
  padding: 14px 16px;
  border-bottom: 1px solid var(--llf-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  font-weight: 900;
  flex-wrap: wrap;          /* ✅ si no cabe, baja */
}

.llf-card-b{
  padding: 18px;
  color: var(--llf-muted);
  font-size: 15px;
  line-height: 1.7;
}

.llf-card-b h2,
.llf-card-b h3{
  font-size: 16px;
  font-weight: 900;
  color: var(--llf-text);
  margin-top: 18px;
  line-height: 1.25;
}

/* =========================
   Badge
   ========================= */
.llf-badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(54,209,124,.35);
  background: rgba(54,209,124,.12);
  color: var(--llf-text);
  white-space: nowrap;
}

/* =========================
   Formularios
   ========================= */
.form-control,
.form-select{
  width: 100% !important;            /* ✅ SIEMPRE al 100% en móvil */
  max-width: 100% !important;
  background: rgba(0,0,0,.25) !important;
  border: 1px solid var(--llf-border) !important;
  color: var(--llf-text) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(54,209,124,.55) !important;
  box-shadow: 0 0 0 .2rem rgba(54,209,124,.18) !important;
}

.form-label{
  color: var(--llf-muted);
  font-weight: 600;
  font-size: 13px;
}

/* ✅ si tu HTML usa .row/.col (Bootstrap), lo hacemos flexible */
.llf-contact-surface .row,
.llf-surface .row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;             /* evita márgenes negativos bootstrap */
}

.llf-contact-surface [class*="col-"],
.llf-surface [class*="col-"]{
  flex: 1 1 260px;        /* tablet: 2 col si cabe / móvil: 1 col */
  max-width: 100%;
  padding: 0;             /* evita paddings bootstrap que rompen */
}

/* =========================
   Botones
   ========================= */
.btn-llf,
.btn-ghost{
  cursor: pointer;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  max-width: 100%;
}

.btn-llf{
  border-radius: 12px !important;
  padding: 10px 14px !important;
  border: 1px solid #fff !important;
  background: linear-gradient(180deg, rgba(54,209,124,.22), rgba(54,209,124,.10)) !important;
  color: var(--llf-text) !important;
  font-weight: 800;
}
.btn-llf:hover{ filter: brightness(1.08); }

.btn-ghost{
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--llf-border) !important;
  background: rgba(255,255,255,.06) !important;
  color: var(--llf-text) !important;
  font-weight: 700;
}

/* ✅ contenedor de botones: si hay 2-3 en línea, que hagan wrap */
.llf-btn-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  width: 100%;
}
.llf-btn-row > a,
.llf-btn-row > button{
  flex: 1 1 180px;
}

/* =========================
   Textos
   ========================= */
.llf-note{ color: var(--llf-muted); font-size: 13px; }
.llf-link{
  color: rgba(54,209,124,.95);
  text-decoration: none;
  font-weight: 600;
}
.llf-link:hover{ text-decoration: underline; }
.llf-highlight{ color: var(--llf-accent); font-weight: 800; }

.colourPfooters{ color:#fff !important; }

/* =========================
   Alert
   ========================= */
.llf-alert{
  border: 1px solid var(--llf-border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.05);
  display: none;
  margin-bottom: 12px;
}
.llf-alert.show{ display:block; }
.llf-alert.ok{ border-color: rgba(54,209,124,.40); background: rgba(54,209,124,.10); }
.llf-alert.err{ border-color: rgba(255,90,90,.45); background: rgba(255,90,90,.10); }

/* =========================
   Lists / pills / steps
   ========================= */
.llf-list{ margin: 0; padding-left: 18px; color: var(--llf-muted); }
.llf-list li{ margin: 6px 0; }

.llf-pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.llf-pill{
  border: 1px solid var(--llf-border);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--llf-text);
  opacity: .92;
}

.llf-step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  margin-bottom: 10px;
}
.llf-step-num{
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(54,209,124,.35);
  background: rgba(54,209,124,.12);
  font-weight: 900;
  color: var(--llf-text);
}
.llf-step-title{
  font-weight: 900;
  margin: 0;
  color: var(--llf-text);
  font-size: 15px;
}
.llf-step-text{
  margin: 4px 0 0;
  color: var(--llf-muted);
  font-size: 13px;
}

/* summary solo dentro de llf */
.llf-card summary{ color:#fff; }

/* =========================
   Social grid
   ========================= */
.llf-social-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.llf-social{
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: #000;
  border-radius: 14px;
  padding: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  text-decoration:none;
  color: var(--llf-text);
  transition: transform .08s ease, filter .08s ease;
}
.llf-social:hover{ transform: translateY(-1px); filter: brightness(1.06); }

.llf-social-left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.llf-social i{ font-size: 18px; opacity: .95; }
.llf-handle{
  font-weight: 900;
  white-space: nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.llf-social small{ color: var(--llf-muted); display:block; margin-top: 2px; }

@media (min-width: 576px){
  .llf-social-grid{ grid-template-columns: 1fr 1fr; }
}

/* =========================
   RESPONSIVE
   ========================= */

/* Móvil */
@media (max-width: 640px){
  .llf-contact-surface,
  .llf-surface{ padding: 12px; }

  .llf-hero{ padding: 14px; }
  .llf-card-h{ padding: 12px; }
  .llf-card-b{ padding: 14px; font-size: 14px; }

  /* ✅ botonería y acciones siempre a una columna */
  .btn-llf, .btn-ghost{
    width: 100%;
  }

  /* ✅ si hay filas flex “de formulario” */
  .llf-contact-surface .row,
  .llf-surface .row{
    gap: 10px;
  }

  /* ✅ social apilado */
  .llf-social{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 992px){
  .llf-contact-surface,
  .llf-surface{ padding: 14px; }
  .llf-card-b{ font-size: 14px; }
}
