/* Flyer animado de la portada (reemplaza la imagen super-facil-portada.png). */
.sf-flyer {
  position: relative;
  width: min(1440px, 96%);
  margin: 1rem auto 1.5rem;
  min-height: clamp(360px, 38vw, 520px);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 60% 80% at 38% 55%, #3a98ac 0%, rgba(58, 152, 172, 0) 70%),
    linear-gradient(115deg, #0b3a4c 0%, #1d6c82 38%, #2a8197 55%, #134e63 78%, #071f2c 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.sf-flyer-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sf-flyer-glow {
  position: absolute; z-index: -1; width: 55%; aspect-ratio: 1; left: 10%; top: 5%;
  background: radial-gradient(circle, rgba(120, 225, 240, .28), rgba(120, 225, 240, 0) 65%);
  filter: blur(10px);
  animation: sf-flyer-drift 12s ease-in-out infinite alternate;
}
.sf-flyer-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.2rem;
  min-height: inherit;
  padding: clamp(1.1rem, 2.6vw, 2.2rem) clamp(1.1rem, 3.4vw, 3rem);
}

/* Fila superior */
.sf-flyer-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sf-flyer-web { font-size: clamp(.85rem, 1.5vw, 1.15rem); letter-spacing: .02em; opacity: .92; }
.sf-flyer-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px);
}
.sf-flyer-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, .7); animation: sf-flyer-ping 1.8s ease-out infinite; }

/* Logo + títulos */
.sf-flyer-main { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.sf-flyer-logo {
  width: clamp(84px, 13vw, 170px); height: auto; flex: 0 0 auto;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .35));
  animation: sf-flyer-pop .9s cubic-bezier(.2, 1.4, .4, 1) both, sf-flyer-float 5s ease-in-out 1s infinite;
}
.sf-flyer-titles { display: grid; justify-items: start; }
.sf-flyer-title {
  margin: 0; font-size: clamp(2.6rem, 8.4vw, 7rem); font-weight: 800; line-height: .95; letter-spacing: .01em;
  color: #fff; text-shadow: 0 6px 22px rgba(0, 0, 0, .3);
}
.sf-flyer-title span { display: inline-block; animation: sf-flyer-rise .8s cubic-bezier(.2, .9, .3, 1) both; }
.sf-flyer-title span:nth-child(2) { animation-delay: .15s; }
.sf-flyer-sub {
  margin: .5rem 0 0; font-size: clamp(1.05rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.12;
  text-transform: uppercase; color: #fff; text-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  animation: sf-flyer-rise .8s .35s cubic-bezier(.2, .9, .3, 1) both;
}
.sf-flyer-line {
  display: block; height: 4px; width: 100%; margin-top: 1rem; border-radius: 4px;
  background: linear-gradient(90deg, #fff 0%, #fff 40%, #8fe9f7 50%, #fff 60%, #fff 100%);
  background-size: 250% 100%;
  transform-origin: left; animation: sf-flyer-grow .9s .55s ease-out both, sf-flyer-shine 3.5s 1.5s linear infinite;
}

/* Contactos */
.sf-flyer-contacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.6rem; }
.sf-flyer-phone, .sf-flyer-mail { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .7rem; }
.sf-flyer-phone {
  padding: .45rem 1.1rem .45rem .45rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s, transform .2s;
  animation: sf-flyer-rise .7s .8s cubic-bezier(.2, .9, .3, 1) both;
}
.sf-flyer-phone + .sf-flyer-phone { animation-delay: .95s; }
.sf-flyer-phone:hover, .sf-flyer-phone:focus-visible { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.sf-flyer-ico {
  display: grid; place-items: center; flex: 0 0 auto;
  width: clamp(40px, 4.4vw, 54px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: #145c72;
}
.sf-flyer-phone .sf-flyer-ico { animation: sf-flyer-ring 4s 2s ease-in-out infinite; }
.sf-flyer-phone + .sf-flyer-phone .sf-flyer-ico { animation-delay: 4s; }
.sf-flyer-ico svg { width: 55%; height: 55%; fill: currentColor; }
.sf-flyer-ico-sm { width: 34px; }
.sf-flyer-phone-copy { display: grid; line-height: 1.05; }
.sf-flyer-phone-copy small { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.sf-flyer-phone-copy strong { font-size: clamp(1.35rem, 2.9vw, 2.3rem); font-weight: 800; letter-spacing: .01em; }
.sf-flyer-mail { font-size: clamp(.85rem, 1.4vw, 1.05rem); opacity: .92; animation: sf-flyer-rise .7s 1.1s both; }
.sf-flyer-mail:hover { opacity: 1; text-decoration: underline; }

@keyframes sf-flyer-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sf-flyer-pop { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes sf-flyer-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sf-flyer-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sf-flyer-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes sf-flyer-drift { from { transform: translate(0, 0); } to { transform: translate(18%, 12%); } }
@keyframes sf-flyer-ping { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 143, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(62, 224, 143, 0); } }
@keyframes sf-flyer-ring {
  0%, 12%, 100% { transform: rotate(0); }
  2%, 6%, 10% { transform: rotate(-14deg); }
  4%, 8% { transform: rotate(14deg); }
}

@media (max-width: 640px) {
  .sf-flyer { border-radius: 18px; margin-top: .6rem; }
  .sf-flyer-main { flex-direction: column; align-items: flex-start; }
  .sf-flyer-contacts { flex-direction: column; align-items: stretch; }
  .sf-flyer-phone { width: 100%; box-sizing: border-box; }
  .sf-flyer-badge { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-flyer *, .sf-flyer-glow { animation: none !important; }
}
