:root {
  --tf-primary: #222A51;
  --tf-secondary: #3B4468;
  --tf-cyan: #E31B29;
  --tf-cyan-light: #FF7A45;
  --tf-bg: #F7F8FC;
  --tf-text: #020617;
  --tf-muted: #475569;
  --tf-border: #E2E8F0;
  --tf-radius: 16px;
  --tf-gradient: linear-gradient(135deg, #E31B29 0%, #F0392E 55%, #FF6A3D 100%);
  --tf-gradient-2: linear-gradient(135deg, #222A51 0%, #E31B29 100%);
  --tf-accent-yellow: #F8CB22;
  --tf-accent-emerald: #10B981;
  --tf-shadow-glow: 0 18px 40px rgba(227,27,41, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--tf-bg);
  color: var(--tf-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Resplandor ambiental: capa fija para que no se estire a lo largo de toda la página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(227,27,41,.07) 0%, rgba(227,27,41,0) 45%),
    radial-gradient(circle at 88% 12%, rgba(34,42,81,.10) 0%, rgba(34,42,81,0) 40%);
}

h1, h2, h3 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 800; color: var(--tf-primary); letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.18; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { color: var(--tf-muted); }

a { text-decoration: none; }

.tf-hl {
  background: var(--tf-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Botones */
.tf-btn-cyan {
  background: var(--tf-gradient);
  background-size: 160% 160%;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  box-shadow: var(--tf-shadow-glow);
  transition: box-shadow .25s ease, transform .25s ease, background-position .4s ease;
}
.tf-btn-cyan:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 22px 46px rgba(227,27,41, .38); background-position: 100% 0; }
.tf-btn-ghost {
  background: #fff;
  color: var(--tf-primary);
  border: 1px solid var(--tf-border);
  font-weight: 700;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tf-btn-ghost:hover { border-color: var(--tf-cyan); color: var(--tf-cyan); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(34,42,81,.1); }
.tf-btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

/* Nav */
.tf-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tf-border);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.tf-nav.is-scrolled { box-shadow: 0 8px 24px rgba(34,42,81,.06); background: rgba(248, 250, 252, 0.96); }
.tf-nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; padding-bottom: .8rem; gap: 1rem; }
.tf-brand { display: flex; align-items: center; gap: .6rem; }
.tf-brand-img { height: 34px; width: auto; }
.tf-brand-badge {
  font-size: .68rem;
  font-weight: 700;
  color: var(--tf-cyan);
  background: rgba(227,27,41, 0.1);
  border: 1px solid rgba(227,27,41, 0.25);
  border-radius: 999px;
  padding: .2rem .6rem;
  white-space: nowrap;
}
.tf-links { gap: 1.6rem; }
.tf-links a { color: var(--tf-secondary); font-weight: 600; font-size: .95rem; transition: color .2s ease; }
.tf-links a:hover { color: var(--tf-cyan); }
.tf-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; font-size: 1.7rem; line-height: 1; color: var(--tf-primary); background: #fff; border: 1px solid var(--tf-border); border-radius: 12px; }
.tf-burger:hover, .tf-burger:focus { color: var(--tf-cyan); border-color: var(--tf-cyan); }

.tf-offcanvas { background: var(--tf-primary); color: #fff; width: 280px; }
.tf-offcanvas .btn-close { filter: invert(1); }
.tf-mobile-links { display: flex; flex-direction: column; gap: 1.2rem; margin: 2rem 0; }
.tf-mobile-links a { color: #fff; font-weight: 600; font-size: 1.1rem; }

/* Hero */
.tf-hero { position: relative; padding: 6rem 0 5rem; overflow: hidden; text-align: center; }
.tf-hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(227,27,41,0.10) 0%, rgba(227,27,41,0) 70%);
  z-index: 0;
  transition: transform .4s ease-out;
}
.tf-hero::after, .tf-hero::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
  animation: tf-float-blob 14s ease-in-out infinite;
}
.tf-hero::before {
  width: 260px; height: 260px;
  top: 8%; right: 6%;
  background: radial-gradient(circle, rgba(248,203,34,.16) 0%, rgba(248,203,34,0) 70%);
}
.tf-hero::after {
  width: 220px; height: 220px;
  bottom: 4%; left: 4%;
  background: radial-gradient(circle, rgba(16,185,129,.14) 0%, rgba(16,185,129,0) 70%);
  animation-delay: -6s;
}
@keyframes tf-float-blob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, 22px); }
}
@keyframes tf-float-img {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .tf-hero::before, .tf-hero::after { animation: none; }
}
.tf-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

/* Hero con arte real (dos columnas) */
.tf-hero.has-art { text-align: left; padding: 5.5rem 0 4rem; }
.tf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.tf-hero-inner--left { max-width: 560px; margin: 0; }
.tf-hero-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem 0;
}
.tf-hero-art img {
  filter: drop-shadow(0 26px 40px rgba(34,42,81,.28));
  width: auto;
  height: auto;
  max-width: 62%;
}
.tf-hero-art-1 { max-height: 360px; z-index: 2; animation: tf-float-img 6s ease-in-out infinite; }
.tf-hero-art-2 { max-height: 210px; margin-left: -56px; z-index: 3; animation: tf-float-img 6s ease-in-out infinite; animation-delay: -3s; }
.tf-hero-art-3 { display: none; }
@media (prefers-reduced-motion: reduce) {
  .tf-hero-art-1, .tf-hero-art-2 { animation: none; }
}

@media (min-width: 992px) {
  .tf-hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .tf-hero.has-art { text-align: left; }
}

.tf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--tf-cyan);
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 999px;
  padding: .4rem .9rem;
  margin-bottom: 1.2rem;
}
.tf-sub { font-size: 1.15rem; margin: 1.2rem auto 2rem; max-width: 620px; }
.tf-hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.tf-trust { display: flex; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }
.tf-trust-item { font-size: .9rem; font-weight: 600; color: var(--tf-secondary); display: inline-flex; align-items: center; gap: .4rem; }
.tf-trust-item i { color: var(--tf-cyan); }

.tf-hero-inner--left .tf-sub { margin-left: 0; }
.tf-hero-inner--left .tf-hero-cta,
.tf-hero-inner--left .tf-trust { justify-content: flex-start; }

/* Barra tecnología SAFE */
.tf-techbar { background: #fff; border-bottom: 1px solid var(--tf-border); padding: 1.8rem 0; }
.tf-techbar-inner { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.tf-techbar-logo { height: 30px; width: auto; }
.tf-techbar-inner p { margin: 0; max-width: 640px; font-size: .95rem; }

/* Proceso */
.tf-proceso { background: #fff; }
.tf-step { text-align: center; padding: 1.6rem 1rem; }
.tf-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tf-gradient);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 10px 22px rgba(227,27,41,.25);
}
.tf-proceso .row > div:nth-child(2) .tf-step-n { background: var(--tf-gradient-2); box-shadow: 0 10px 22px rgba(34,42,81,.28); }
.tf-proceso .row > div:nth-child(3) .tf-step-n { background: linear-gradient(135deg, #F8CB22 0%, #FF9F1C 100%); box-shadow: 0 10px 22px rgba(248,203,34,.32); }
.tf-proceso .row > div:nth-child(4) .tf-step-n { background: linear-gradient(135deg, #222A51 0%, #4A56A0 100%); box-shadow: 0 10px 22px rgba(34,42,81,.28); }
.tf-step h3 { margin-bottom: .4rem; }
.tf-step p { font-size: .92rem; margin: 0; }

.tf-migra {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: center;
  text-align: center;
  background: var(--tf-primary);
  border-radius: 24px;
  padding: 2.4rem;
  color: #fff;
}
.tf-migra img { max-width: 260px; width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.tf-migra h3 { color: #fff; margin-bottom: .5rem; }
.tf-migra p { color: #C9CEE6; margin: 0; max-width: 480px; }

@media (min-width: 768px) {
  .tf-migra { flex-direction: row; text-align: left; }
}

/* Secciones genéricas */
section { padding: 5rem 0; }
.tf-sec-head { max-width: 640px; margin: 0 auto 2.8rem; text-align: center; }
.tf-eyebrow2 { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tf-cyan); margin-bottom: .5rem; }

.tf-why { background: #fff; }

/* Stats */
.tf-stats { padding: 0 0 3.5rem; }
.tf-stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 1.4rem 1rem;
  height: 100%;
}
.tf-stat-n { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--tf-primary); letter-spacing: -.02em; }
.tf-stat-l { display: block; font-size: .82rem; font-weight: 600; color: var(--tf-muted); margin-top: .2rem; }

/* Cards */
.tf-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  padding: 1.9rem 1.8rem;
  height: 100%;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tf-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tf-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.tf-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(34, 42, 81, 0.1); border-color: transparent; }
.tf-card:hover::before { transform: scaleX(1); }
.tf-card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--tf-gradient);
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 10px 20px rgba(227,27,41,.22);
}
.tf-card h3 { margin-bottom: .4rem; }
.tf-card p { margin: 0; font-size: .92rem; }

/* Módulos */
.tf-modulos { background: #fff; }
.tf-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tf-chips span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--tf-cyan);
  background: rgba(227,27,41,.08);
  border-radius: 999px;
  padding: .2rem .65rem;
}

/* Marco de navegador */
.tf-browser {
  background: #0B1220;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(34,42,81,.22);
  border: 1px solid rgba(34,42,81,.12);
  animation: tf-float-img 7s ease-in-out infinite;
}
.tf-browser-bar { display: flex; gap: .4rem; padding: .6rem .8rem; background: #1E293B; }
.tf-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.tf-browser-bar span:nth-child(1) { background: #EF4444; }
.tf-browser-bar span:nth-child(2) { background: #F59E0B; }
.tf-browser-bar span:nth-child(3) { background: #22C55E; }
.tf-browser img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .tf-browser { animation: none; } }

/* Seguridad */
.tf-seguridad { background: var(--tf-primary); color: #fff; }
.tf-seguridad h2, .tf-seguridad .tf-eyebrow2 { color: #fff; }
.tf-seguridad p { color: #C9CEE6; }
.tf-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--tf-radius);
  padding: 1.2rem;
  text-align: center;
  height: 100%;
}
.tf-badge img { max-width: 90px; margin-bottom: .6rem; }
.tf-badge span { display: block; font-weight: 700; font-size: .85rem; }
.tf-badge-wide { display: flex; align-items: center; gap: .8rem; text-align: left; padding: .9rem 1.2rem; }
.tf-badge-wide img { max-width: 70px; margin-bottom: 0; filter: brightness(0) invert(1); }
.tf-badge-wide span { font-size: .85rem; }

/* App / Web tabs */
.tf-app { background: #fff; }
.tf-tabs { display: flex; justify-content: center; gap: .6rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.tf-tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--tf-border);
  background: #fff;
  color: var(--tf-secondary);
  font-weight: 700;
  font-size: .92rem;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tf-tab:hover { color: var(--tf-cyan); }
.tf-tab.is-active { background: var(--tf-gradient); color: #fff; border-color: transparent; box-shadow: var(--tf-shadow-glow); }
.tf-tab-panel { display: none; }
.tf-tab-panel.is-active { display: block; animation: tf-fade-in .35s ease; }
@keyframes tf-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tf-feat-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.tf-feat-list li { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; color: var(--tf-primary); font-size: .96rem; }
.tf-feat-list i { color: var(--tf-accent-emerald); font-size: 1.1rem; margin-top: .1rem; }

.tf-app-visual { display: flex; align-items: flex-end; justify-content: center; padding: 1.5rem 0; }
.tf-app-shot {
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(34,42,81,.16);
  border: 6px solid #fff;
  width: auto;
  height: auto;
  max-width: 58%;
  animation: tf-float-img 7s ease-in-out infinite;
}
.tf-app-shot-1 { max-height: 360px; z-index: 1; }
.tf-app-shot-2 { max-height: 300px; margin-left: -64px; z-index: 2; animation-delay: -3.5s; }
@media (prefers-reduced-motion: reduce) {
  .tf-app-shot { animation: none; }
}

/* Rubros / galería */
.tf-rubros { background: var(--tf-bg); }
.tf-gal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.tf-gal-item { flex: 0 0 calc(50% - .5rem); margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 32px rgba(34,42,81,.1); }
.tf-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tf-gal-item:hover img { transform: scale(1.04); }
@media (min-width: 768px) {
  .tf-gal-item { flex-basis: calc(33.333% - .67rem); }
}

/* Planes */
.tf-planes { position: relative; overflow: hidden; }
.tf-planes::before {
  content: "";
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(227,27,41,.12) 0%, rgba(227,27,41,0) 70%);
  z-index: 0;
}
.tf-price-card {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 28px;
  padding: 3.2rem 2.2rem;
  box-shadow: 0 32px 64px rgba(34,42,81,.12);
  border: 1px solid var(--tf-border);
}
.tf-price-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: var(--tf-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}
.tf-price-from {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: var(--tf-gradient);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .06em;
  padding: .3rem .9rem;
  border-radius: 999px;
}
.tf-price-amount { font-size: 4rem; font-weight: 800; color: var(--tf-primary); margin: .6rem 0 1rem; letter-spacing: -.03em; }
.tf-price-currency { font-size: 1.7rem; vertical-align: top; }
.tf-price-period { font-size: 1.1rem; font-weight: 600; color: var(--tf-muted); }
.tf-price-note { font-size: .88rem; margin-bottom: .3rem; }
.tf-price-card .btn { margin-top: 1.4rem; }

/* Tarjetas de plan (sin precio) */
.tf-plan {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 24px;
  padding: 2.2rem 1.8rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tf-plan:hover { transform: translateY(-8px); box-shadow: 0 28px 56px rgba(34,42,81,.12); }
.tf-plan h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.35rem; margin-bottom: .3rem; }
.tf-plan-logo { height: 30px; width: auto; }
.tf-plan-desc { font-size: .92rem; margin-bottom: 1.4rem; }
.tf-plan-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-direction: column; gap: .9rem; flex-grow: 1; }
.tf-plan-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--tf-primary); }
.tf-plan-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(227,27,41,.1);
  color: var(--tf-cyan);
}
.tf-plan--featured { border-color: transparent; box-shadow: 0 32px 64px rgba(34,42,81,.14); }
.tf-plan--featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: var(--tf-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}
.tf-plan-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tf-gradient);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
}

/* FAQ */
.tf-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.tf-faq-item {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tf-faq-item[open] { border-color: transparent; box-shadow: 0 16px 32px rgba(34,42,81,.08); }
.tf-faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--tf-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tf-faq-item summary::-webkit-details-marker { display: none; }
.tf-faq-item summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(227,27,41,.1);
  color: var(--tf-cyan);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform .25s ease, background-color .25s ease;
}
.tf-faq-item[open] summary::after { transform: rotate(45deg); background: var(--tf-gradient); color: #fff; }
.tf-faq-item p { margin: .8rem 0 0; font-size: .95rem; }

/* CTA final */
.tf-cta { background: var(--tf-primary); color: #fff; text-align: center; }
.tf-cta h2 { color: #fff; }
.tf-cta p { color: #C9CEE6; margin-bottom: 1.6rem; }

/* Contacto */
.tf-contact { background: #fff; }
.tf-form label { font-weight: 600; font-size: .88rem; color: var(--tf-secondary); }
.tf-form .form-control { border-radius: 10px; border-color: var(--tf-border); padding: .65rem .9rem; }
.tf-form .form-control:focus { border-color: var(--tf-cyan); box-shadow: 0 0 0 3px rgba(227,27,41,.15); }

.tf-contact-info { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2rem; }
.tf-contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.tf-contact-item i { font-size: 1.3rem; color: var(--tf-cyan); margin-top: .2rem; }
.tf-contact-item h3 { margin: 0 0 .2rem; font-size: 1rem; }
.tf-contact-item p { margin: 0; font-size: .92rem; }
.tf-contact-item a { color: var(--tf-muted); }
.tf-contact-item a:hover { color: var(--tf-cyan); }

.tf-social h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.tf-social-icons { display: flex; gap: .8rem; }
.tf-social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--tf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-primary);
  transition: background-color .2s ease, color .2s ease;
}
.tf-social-icons a:hover { background: var(--tf-cyan); color: #fff; border-color: var(--tf-cyan); }

/* Footer */
.tf-footer { background: var(--tf-primary); color: #A3AACB; padding: 4rem 0 1.4rem; }
.tf-foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tf-foot-col h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.tf-foot-col { display: flex; flex-direction: column; gap: .7rem; }
.tf-foot-col a, .tf-foot-col .tf-foot-addr { color: #A3AACB; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.tf-foot-col a:hover { color: #fff; }
.tf-foot-col-brand p { font-size: .88rem; margin: 1rem 0; max-width: 320px; }
.tf-foot-logos { display: flex; align-items: center; gap: .9rem; }
.tf-foot-logo { height: 30px; width: auto; }
.tf-foot-logo-safe { height: 24px; opacity: .9; filter: brightness(0) invert(1); }
.tf-foot-col-brand .tf-social-icons a { border-color: rgba(255,255,255,.18); color: #fff; }
.tf-footer small { display: block; text-align: center; margin-top: 1.4rem; font-size: .8rem; }

@media (min-width: 768px) {
  .tf-foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Widget de WhatsApp */
.tf-wa-widget { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }

.tf-whatsapp {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 14px 32px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.tf-whatsapp:hover { color: #fff; transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 40px rgba(37,211,102,.55); }
.tf-wa-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .55;
  animation: tf-wa-pulse 2.2s ease-out infinite;
}
@keyframes tf-wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.7); opacity: 0; }
}
.tf-wa-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #EF4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.tf-wa-widget.is-open .tf-wa-badge { display: none; }
@media (prefers-reduced-motion: reduce) {
  .tf-wa-ping { animation: none; display: none; }
}

.tf-wa-panel {
  width: min(320px, 84vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(34,42,81,.25);
  overflow: hidden;
  transform: translateY(16px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.tf-wa-widget.is-open .tf-wa-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.tf-wa-head {
  background: var(--tf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
}
.tf-wa-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px; }
.tf-wa-head strong { display: block; font-size: .92rem; }
.tf-wa-head span { display: flex; align-items: center; gap: .35rem; font-size: .76rem; color: #A3AACB; }
.tf-wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; display: inline-block; animation: tf-wa-dot-pulse 1.8s ease-in-out infinite; }
@keyframes tf-wa-dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.tf-wa-close { margin-left: auto; background: none; border: none; color: #A3AACB; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.tf-wa-close:hover { color: #fff; }

.tf-wa-body { background: #ECE5DD; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.tf-wa-bubble {
  background: #fff;
  border-radius: 12px 12px 12px 2px;
  padding: .7rem .9rem;
  font-size: .88rem;
  color: var(--tf-text);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  max-width: 92%;
}
.tf-wa-quick { display: flex; flex-direction: column; gap: .5rem; }
.tf-wa-quick a {
  background: #fff;
  border: 1px solid rgba(227,27,41,.25);
  color: var(--tf-cyan);
  font-weight: 700;
  font-size: .85rem;
  padding: .6rem .8rem;
  border-radius: 10px;
  text-align: center;
  transition: background-color .2s ease, color .2s ease;
}
.tf-wa-quick a:hover { background: #25D366; border-color: #25D366; color: #fff; }

/* Reveal on scroll */
.tf-reveal, .tf-reveal-l, .tf-reveal-r { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.tf-reveal { transform: translateY(24px); }
.tf-reveal-l { transform: translateX(-28px); }
.tf-reveal-r { transform: translateX(28px); }
.tf-reveal.is-visible, .tf-reveal-l.is-visible, .tf-reveal-r.is-visible { opacity: 1; transform: none; }
.tf-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.tf-stagger.is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tf-reveal, .tf-reveal-l, .tf-reveal-r, .tf-stagger > * { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 991.98px) {
  section { padding: 3.2rem 0; }
}

/* Utilidades página Libro de Reclamaciones */
.tf-hero--compact { padding-bottom: 2.5rem; }
.tf-lr-establishment, .tf-lr-form, .tf-lr-receipt { margin-bottom: 2rem; }
.tf-lr-form h2 { margin-bottom: .25rem; }
.tf-lr-required { font-size: .9rem; margin-bottom: 1.5rem; }
.tf-lr-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tf-lr-guardian { margin-top: 1.5rem; padding: 1.3rem; background: #F7F8FC; border: 1px solid var(--tf-border); border-radius: 12px; }
.tf-lr-guardian h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.tf-lr-legal { margin: 1.5rem 0; font-size: .9rem; }
.tf-lr-code { display: inline-block; margin: .4rem 0 1.2rem; padding: .55rem .9rem; border-radius: 9px; color: var(--tf-primary); background: #F7F8FC; font-weight: 800; letter-spacing: .06em; }
.tf-lr-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: .5rem 0 1.7rem; }
.tf-lr-summary div { padding: .85rem; border: 1px solid var(--tf-border); border-radius: 10px; }
.tf-lr-summary dt { color: var(--tf-secondary); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.tf-lr-summary dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .tf-card { padding: 1.3rem 1rem; } .tf-lr-summary { grid-template-columns: 1fr; } .tf-lr-form .tf-btn-cyan { width: 100%; } }
@media print { .tf-nav, .tf-footer, .tf-wa-widget, .tf-top, .tf-hero { display: none !important; } body { background: #fff; } .tf-contact { padding: 0; } .tf-lr-receipt { border: 0; box-shadow: none; } }
.tf-section--flush { padding-top: 0; }
.tf-card--doc { text-align: left; max-width: none; }
.tf-card--doc h2 { margin-bottom: 1rem; }
.tf-card--doc .tf-contact-info { margin-top: 1.4rem; }
.tf-card--doc .tf-price-note--spaced { margin-top: 1.4rem; }

/* Footer simple (Libro de Reclamaciones) */
.tf-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.tf-foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; max-width: 360px; }
.tf-foot-brand p { width: 100%; font-size: .85rem; margin: .4rem 0 0; }
.tf-foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.tf-foot-links a { color: #C9CEE6; font-size: .9rem; font-weight: 600; }
.tf-foot-links a:hover { color: #fff; }

/* Mazo de celulares (rota las capturas de la app) */
.tf-deck { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1 / .92; }
.tf-slot {
  position: absolute;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid #fff;
  background: #0B1220;
  box-shadow: 0 26px 52px rgba(34,42,81,.28);
}
.tf-slot-front { width: 44%; left: 28%; top: 0; z-index: 3; animation: tf-float-img 7s ease-in-out infinite; }
.tf-slot-back { width: 36%; left: 0; top: 9%; z-index: 1; transform: rotate(-6deg); }
.tf-slot-side { width: 36%; right: 0; top: 9%; z-index: 1; transform: rotate(6deg); }
.tf-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.tf-ph.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tf-slot-front { animation: none; } }

/* Contraste en secciones oscuras y footer */
.tf-footer p { color: #C9CEE6; }
.tf-footer .tf-foot-logo { height: 42px; }
.tf-footer .tf-foot-logo-safe { height: 32px; }
.tf-badge img { background: #fff; padding: .5rem .7rem; border-radius: 10px; }
.tf-badge-wide img { background: none; padding: 0; border-radius: 0; }

/* Visor de la plataforma web */
.tf-browser-view { position: relative; aspect-ratio: 4 / 3; background: #050608; }
.tf-browser .tf-browser-view .tf-wv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s ease; }
.tf-browser .tf-browser-view .tf-wv.is-on { opacity: 1; }
.tf-wvnav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1.1rem; }
.tf-wvbtn {
  border: 1px solid var(--tf-border);
  background: #fff;
  color: var(--tf-secondary);
  font-size: .8rem;
  font-weight: 700;
  padding: .4rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tf-wvbtn:hover { color: var(--tf-cyan); border-color: var(--tf-cyan); }
.tf-wvbtn.is-active { background: var(--tf-primary); border-color: var(--tf-primary); color: #fff; }

.tf-feat-list--grid { display: grid; grid-template-columns: 1fr; gap: .8rem 2rem; max-width: 820px; margin: 0 auto 2.2rem; }
@media (min-width: 768px) { .tf-feat-list--grid { grid-template-columns: 1fr 1fr; } }
.tf-webshow { max-width: 1040px; margin: 0 auto; }

/* Visor ampliado */
.tf-browser-view { cursor: zoom-in; }
.tf-wvhint { text-align: center; font-size: .78rem; font-weight: 600; color: var(--tf-muted); margin: .9rem 0 0; }
.tf-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 24, .94); overflow: auto; -webkit-overflow-scrolling: touch; padding: 3.2rem 0 1.5rem; }
.tf-lightbox[hidden] { display: none; }
.tf-lightbox img { display: block; margin: 0 auto; width: min(1500px, 96vw); height: auto; border-radius: 10px; }
.tf-lightbox-close { position: fixed; top: .8rem; right: .9rem; z-index: 101; width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff; color: var(--tf-primary); font-size: 1.8rem; line-height: 1; cursor: pointer; }
@media (max-width: 767.98px) {
  .tf-lightbox img { width: 1300px; max-width: none; margin: 0; }
  .tf-hero-art { padding: 0; }
  .tf-hero.has-art { padding: 3.5rem 0 2.5rem; }
  .tf-features .tf-card { padding: 1.2rem 1rem; }
  .tf-features .tf-card-ic { width: 42px; height: 42px; font-size: 1.15rem; margin-bottom: .8rem; }
  .tf-features .tf-card h3 { font-size: 1rem; }
  .tf-features .tf-card p { font-size: .85rem; }
}

body.tf-lock { overflow: hidden; }

@media (max-width: 767.98px) {
  .tf-footer { padding-bottom: 5.5rem; }
}

/* ══════════════════════════════════════════════════════════
   CAPA DE ANIMACIONES
   ══════════════════════════════════════════════════════════ */

@property --tf-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
:root { --tf-a: 0deg; }

/* Barra de progreso de lectura */
.tf-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: var(--tf-gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* Hero: aurora y retícula animadas */
.tf-hero-aurora {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
  opacity: .55;
  background:
    radial-gradient(24% 24% at 14% 22%, rgba(227,27,41,.14), rgba(227,27,41,0) 62%),
    radial-gradient(22% 22% at 80% 60%, rgba(255,122,69,.14), rgba(255,122,69,0) 62%);
  animation: tf-aurora 20s ease-in-out infinite alternate;
}
@keyframes tf-aurora {
  0% { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, 3%, 0) scale(1.12); }
}
.tf-hero-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(34,42,81,.14) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(62% 55% at 50% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(62% 55% at 50% 38%, #000 0%, transparent 78%);
  animation: tf-dots 26s linear infinite;
}
@keyframes tf-dots { to { background-position: 24px 24px; } }

/* Palabra rotativa del titular */
.tf-rot { display: grid; }
.tf-rot > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(.28em) rotateX(45deg);
  transform-origin: 50% 0;
  transition: opacity .3s ease, transform .3s ease;
}
.tf-rot > span.is-on {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease .32s, transform .5s cubic-bezier(.22,1,.36,1) .32s;
}

/* Nav: subrayado animado y sección activa */
.tf-links a { position: relative; }
.tf-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--tf-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.tf-links a:hover::after { transform: scaleX(1); }
.tf-links a.is-current { color: var(--tf-cyan); }
.tf-links a.is-current::after { transform: scaleX(1); }

/* Botones: destello que barre el botón */
.tf-btn-cyan { position: relative; overflow: hidden; }
.tf-btn-cyan::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-170%) skewX(-18deg);
  transition: transform .65s ease;
}
.tf-btn-cyan:hover::after { transform: translateX(330%) skewX(-18deg); }
.tf-hero-cta .tf-btn-cyan { animation: tf-cta-pulse 3.4s ease-in-out infinite; }
@keyframes tf-cta-pulse {
  0%, 100% { box-shadow: 0 18px 40px rgba(227,27,41,.28); }
  50% { box-shadow: 0 18px 52px rgba(227,27,41,.5); }
}

/* Tarjetas: foco que sigue al cursor + icono que reacciona */
.tf-card::after,
.tf-plan::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(227,27,41,.12), transparent 62%);
  transition: opacity .35s ease;
}
.tf-card:hover::after, .tf-plan:hover::after { opacity: 1; }
.tf-card:hover .tf-card-ic { animation: tf-ic-pop .55s ease; }
@keyframes tf-ic-pop {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.14) rotate(-7deg); }
  70% { transform: scale(1.05) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Pasos: línea que se dibuja y punto que la recorre */
.tf-pasos { position: relative; }
.tf-pasos .row { position: relative; z-index: 1; }
.tf-pasos-line {
  position: absolute;
  top: 47px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  border-radius: 3px;
  background: var(--tf-border);
}
.tf-pasos-line::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--tf-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(.4,0,.2,1) .3s;
}
.tf-pasos-line::before {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--tf-gradient);
  box-shadow: 0 0 0 6px rgba(227,27,41,.14);
  opacity: 0;
}
.tf-pasos.is-visible .tf-pasos-line::after { transform: scaleX(1); }
.tf-pasos.is-visible .tf-pasos-line::before { animation: tf-pasos-dot 5s cubic-bezier(.65,0,.35,1) 1.7s infinite; }
@keyframes tf-pasos-dot {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (max-width: 991.98px) { .tf-pasos-line { display: none; } }

/* Cinta infinita de módulos */
.tf-marquee {
  background: var(--tf-primary);
  padding: .9rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tf-marquee-track { display: flex; width: max-content; animation: tf-marquee 42s linear infinite; }
.tf-marquee:hover .tf-marquee-track { animation-play-state: paused; }
@keyframes tf-marquee { to { transform: translateX(-50%); } }
.tf-marquee-group { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; }
.tf-marquee-group span { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.tf-marquee-group i { color: var(--tf-cyan-light); font-size: 1.05rem; }

/* Galería: elevación y brillo */
.tf-gal-item { position: relative; transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
.tf-gal-item:hover { transform: translateY(-8px); box-shadow: 0 28px 52px rgba(34,42,81,.22); }
.tf-gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.42) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .85s ease;
  pointer-events: none;
}
.tf-gal-item:hover::after { transform: translateX(130%); }

/* Plan destacado: borde giratorio */
.tf-plan--featured::before {
  background: conic-gradient(from var(--tf-a), #E31B29, #FF6A3D, #F8CB22, #222A51, #E31B29);
  animation: tf-spin-border 7s linear infinite;
}
@keyframes tf-spin-border { to { --tf-a: 360deg; } }
.tf-plan-tag { animation: tf-tag-float 3.4s ease-in-out infinite; }
@keyframes tf-tag-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -4px); }
}

/* Seguridad: resplandor en movimiento */
.tf-seguridad { position: relative; overflow: hidden; }
.tf-seguridad::before {
  content: "";
  position: absolute;
  top: -30%; left: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(227,27,41,.22), rgba(227,27,41,0) 68%);
  animation: tf-float-blob 16s ease-in-out infinite;
  pointer-events: none;
}
.tf-seguridad .container { position: relative; z-index: 1; }
.tf-badge { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.tf-badge:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.4); box-shadow: 0 22px 44px rgba(0,0,0,.35); }

/* Stats y chips */
.tf-stat { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.tf-stat:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 20px 40px rgba(34,42,81,.1); }
.tf-chips span { transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.tf-chips span:hover { transform: translateY(-2px); background: var(--tf-cyan); color: #fff; }

/* WhatsApp: entrada escalonada */
.tf-wa-widget.is-open .tf-wa-bubble { animation: tf-fade-in .4s ease both; }
.tf-wa-widget.is-open .tf-wa-quick a { animation: tf-fade-in .4s ease both; }
.tf-wa-widget.is-open .tf-wa-quick a:nth-child(1) { animation-delay: .1s; }
.tf-wa-widget.is-open .tf-wa-quick a:nth-child(2) { animation-delay: .2s; }
.tf-wa-widget.is-open .tf-wa-quick a:nth-child(3) { animation-delay: .3s; }
.tf-wa-quick a { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.tf-wa-quick a:hover { transform: translateX(4px); }

/* Aparición con desenfoque y cascada */
.tf-reveal, .tf-reveal-l, .tf-reveal-r {
  filter: blur(6px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1), filter .75s ease;
}
.tf-reveal-l { transform: translateX(-32px) translateY(8px); }
.tf-reveal-r { transform: translateX(32px) translateY(8px); }
.tf-reveal.is-visible, .tf-reveal-l.is-visible, .tf-reveal-r.is-visible { filter: blur(0); }
.tf-stagger > * { transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.tf-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.tf-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.tf-stagger.is-visible > *:nth-child(3) { transition-delay: .2s; }
.tf-stagger.is-visible > *:nth-child(4) { transition-delay: .28s; }
.tf-stagger.is-visible > *:nth-child(5) { transition-delay: .36s; }
.tf-stagger.is-visible > *:nth-child(6) { transition-delay: .44s; }
.tf-stagger.is-visible > *:nth-child(7) { transition-delay: .52s; }
.tf-stagger.is-visible > *:nth-child(8) { transition-delay: .6s; }
.tf-stagger.is-visible > *:nth-child(9) { transition-delay: .68s; }

/* Subrayado que se dibuja en los títulos de sección */
.tf-sec-head h2 { position: relative; display: inline-block; padding-bottom: .4rem; }
.tf-sec-head h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 68px; height: 4px;
  border-radius: 4px;
  background: var(--tf-gradient);
  transform: translateX(-50%) scaleX(0);
  transition: transform .8s cubic-bezier(.4,0,.2,1) .25s;
}
.tf-sec-head.is-visible h2::after { transform: translateX(-50%) scaleX(1); }

/* Botón volver arriba */
.tf-top {
  position: fixed;
  left: 1.4rem; bottom: 1.4rem;
  z-index: 50;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--tf-border);
  background: #fff;
  color: var(--tf-primary);
  font-size: 1.15rem;
  box-shadow: 0 12px 28px rgba(34,42,81,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background-color .2s ease, color .2s ease;
  cursor: pointer;
}
.tf-top.is-on { opacity: 1; visibility: visible; transform: none; }
.tf-top:hover { background: var(--tf-primary); color: #fff; border-color: var(--tf-primary); }

@media (prefers-reduced-motion: reduce) {
  .tf-hero-aurora, .tf-hero-dots, .tf-marquee-track, .tf-plan--featured::before, .tf-plan-tag,
  .tf-seguridad::before, .tf-hero-cta .tf-btn-cyan, .tf-card-ic { animation: none !important; }
  .tf-pasos-line::after { transform: scaleX(1); }
  .tf-pasos-line::before { display: none; }
  .tf-rot > span { opacity: 1; transform: none; transition: none; }
  .tf-rot > span:not(.is-on) { display: none; }
  .tf-card::after, .tf-plan::after, .tf-gal-item::after, .tf-btn-cyan::after { display: none; }
  .tf-reveal, .tf-reveal-l, .tf-reveal-r { filter: none; }
}

/* Accesibilidad: salto al contenido y foco visible con teclado */
.tf-skip { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--tf-primary); color: #fff; font-weight: 700; padding: .7rem 1.1rem; border-radius: 10px; }
.tf-skip:focus { top: 1rem; color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible, .form-control:focus-visible, .form-check-input:focus-visible {
  outline: 3px solid var(--tf-accent-yellow);
  outline-offset: 2px;
}

/* Formulario de demo */
.tf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tf-consent { font-size: .86rem; color: var(--tf-muted); }
.tf-consent a { color: var(--tf-cyan); font-weight: 700; text-decoration: underline; }
.tf-form-ok, .tf-form-err { display: flex; gap: .6rem; align-items: flex-start; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 600; }
.tf-form-ok { background: rgba(16,185,129,.1); color: #047857; border: 1px solid rgba(16,185,129,.35); }
.tf-form-err { background: rgba(227,27,41,.08); color: #B91C1C; border: 1px solid rgba(227,27,41,.3); }
.tf-form-ok[hidden], .tf-form-err[hidden] { display: none; }

/* Footer: enlace al Libro de Reclamaciones con su ícono */
.tf-foot-libro { display: inline-flex !important; align-items: center; gap: .5rem; }
.tf-foot-libro img { height: 42px; width: auto; transition: opacity .2s ease; }
.tf-foot-libro:hover img { opacity: .8; }

/* Páginas legales */
.tf-legal-doc { background: #fff; border: 1px solid var(--tf-border); border-radius: 20px; padding: 2.4rem clamp(1.2rem, 4vw, 3rem); }
.tf-legal-doc h2 { font-size: 1.25rem; margin: 2rem 0 .7rem; }
.tf-legal-doc h2:first-of-type { margin-top: 1rem; }
.tf-legal-doc p, .tf-legal-doc li { font-size: .97rem; }
.tf-legal-doc ul { padding-left: 1.2rem; color: var(--tf-muted); }
.tf-legal-doc a { color: var(--tf-cyan); font-weight: 600; }
.tf-legal-date { font-size: .85rem; font-weight: 600; }
.tf-legal { padding-bottom: 4rem; }

/* Botón "Inicio" de las páginas secundarias en móvil */
.tf-nav-back { white-space: nowrap; padding: .45rem .95rem; font-size: .9rem; }
@media (max-width: 420px) {
  .tf-nav-inner:has(.tf-nav-back) .tf-brand-badge { display: none; }
}
fieldset > legend.form-label { font-size: .88rem; font-weight: 600; color: var(--tf-secondary); }

/* Hero: galería de escenas con logo SAFE */
.tf-hero-art { position: relative; }
.tf-hero-show {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: #E9ECF5;
  box-shadow: 0 34px 70px rgba(34,42,81,.25);
  border: 6px solid #fff;
}
.tf-hs { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s ease-out; }
.tf-hs.is-on { opacity: 1; transform: scale(1); }
.tf-hs-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(34,42,81,.45); backdrop-filter: blur(6px); }
.tf-hs-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.55); transition: width .4s ease, background-color .4s ease; }
.tf-hs-dots span.is-on { width: 22px; background: #fff; }
.tf-hero-art .tf-hero-art-2 {
  position: absolute;
  left: -28px;
  bottom: -26px;
  max-width: 46%;
  max-height: none;
  margin: 0;
  z-index: 3;
}
@media (max-width: 767.98px) {
  .tf-hero-show { border-radius: 20px; border-width: 4px; }
  .tf-hero-art .tf-hero-art-2 { left: -6px; bottom: -18px; max-width: 52%; }
  .tf-hero-art { margin-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-hs { transition: none; transform: none; }
}
.tf-hero-show .tf-hs { width: 100%; height: 100%; max-width: none; filter: none; }
.tf-hs-dots { left: auto; right: 14px; transform: none; }

/* Enlaces a la plataforma SAFE */
.tf-safe-link { display: inline-flex; align-items: center; transition: opacity .2s ease, transform .2s ease; }
.tf-safe-link:hover { opacity: .85; transform: translateY(-2px); }
a.tf-badge.tf-safe-link { display: flex; color: #fff; }
a.tf-badge.tf-safe-link:hover { color: #fff; opacity: 1; }
.tf-safe-text { color: inherit; text-decoration: underline; text-decoration-color: rgba(227,27,41,.4); text-underline-offset: 3px; }
.tf-safe-text:hover { color: var(--tf-cyan); }
