/* =========================================================
   CTAs (Hero / Mid / Security) — Responsive
   No usa H2 (SEO safe)
   ========================================================= */

/* ---------------- Variables ---------------- */
:root{
  --cta-radius: 16px;
  --cta-shadow: 0 12px 34px rgba(0,0,0,.14);
  --cta-border: 1px solid rgba(0,0,0,.10);
  --cta-pad: clamp(16px, 2.4vw, 26px);
  --cta-gap: clamp(12px, 2vw, 20px);
  --cta-max: 980px;

  --cta-text: #111;
  --cta-muted: rgba(0,0,0,.72);
}

/* ---------------- Base CTA ---------------- */
.cta{
  width: 100%;
  max-width: var(--cta-max);
  margin: 0 auto;
  border-radius: var(--cta-radius);
  border: var(--cta-border);
  box-shadow: var(--cta-shadow);
  overflow: hidden;
}

.cta__inner{
  padding: var(--cta-pad);
  display: grid;
  gap: var(--cta-gap);
  align-items: center;
}

/* Texto tipo H2 (sin ser heading real) */
.cta__title{
  margin: 0 0 6px 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cta-text);
}

.cta__text{
  margin: 0;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--cta-muted);
  line-height: 1.55;
}

/* ---------------- Badge ---------------- */
.cta__badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  font-weight: 800;
  width: fit-content;
}

.cta__emoji{
  font-size: 18px;
  line-height: 1;
}

.cta__badge-text{
  font-size: 13px;
  letter-spacing: .3px;
}

/* ---------------- Acciones ---------------- */
.cta__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta__actions .btn{
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Fallback botones si no existen */
.btn{
  background: #1e73be;
  color: #fff;
  border: 0;
}
.btn.secondary{
  background: #2ea44f;
  color: #fff;
}

/* =========================================================
   CTA HERO (encima del fold)
   ========================================================= */
.cta--hero{
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.90),
    rgba(255,255,255,0.84)
  );
  border: 1px solid rgba(30,115,190,.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cta--hero .cta__inner{
  grid-template-columns: 1fr;
}

/* Desktop */
@media (min-width: 900px){
  .cta--hero .cta__inner{
    grid-template-columns: 1.2fr .8fr;
  }
  .cta--hero .cta__actions{
    justify-content: flex-end;
  }
}

/* =========================================================
   CTA MID (mitad de página)
   ========================================================= */
.cta--mid{
  background: #ffffff;
}

.cta--mid .cta__inner{
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .cta--mid .cta__inner{
    grid-template-columns: 1.4fr .6fr;
  }
  .cta--mid .cta__actions{
    justify-content: flex-end;
  }
}

/* =========================================================
   CTA SECURITY (seguridad / consejos)
   ========================================================= */
.cta--security{
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.92),
    rgba(240,246,252,0.88)
  );
  border: 1px solid rgba(0,0,0,.12);
}

.cta--security .cta__inner{
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .cta--security .cta__inner{
    grid-template-columns: 1.3fr .7fr;
  }
  .cta--security .cta__actions{
    justify-content: flex-end;
  }
}

/* =========================================================
   Mobile tweaks
   ========================================================= */
@media (max-width: 520px){
  .cta__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .cta__actions .btn{
    width: 100%;
  }
}

