/* Landing /app/ — vista de la app oficial Talma Madrid */

.talma-app-page {
  padding-bottom: 72px;
}

.talma-app-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.talma-app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 28px 0 12px;
}

.talma-app-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(210, 174, 95, 0.42);
  background: rgba(210, 174, 95, 0.12);
  color: var(--talma-gold-3);
  font: 750 12px/1 Inter, Manrope, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.talma-app-hero h1 {
  margin: 0 0 14px;
  color: #fff8df;
  font: 850 clamp(2rem, 4vw, 3.15rem)/1.08 Inter, Manrope, system-ui, sans-serif;
  letter-spacing: -0.035em;
}

.talma-app-hero h1 em {
  font-style: normal;
  color: var(--talma-gold-2);
}

.talma-app-lead {
  margin: 0 0 22px;
  max-width: 38rem;
  color: var(--talma-muted);
  font: 500 1.05rem/1.55 Inter, system-ui, sans-serif;
}

.talma-app-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.talma-app-store {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  border-radius: 16px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 248, 223, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 8, 8, 0.72);
  color: #fff8df !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.talma-app-store:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px -22px rgba(210, 174, 95, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.talma-app-store.is-apple {
  background: linear-gradient(180deg, #f3d98a, #c9a247);
  border-color: #8a6a18;
}

body.talma-v2 a.talma-app-store.is-apple,
body.talma-v2 a.talma-app-store.is-apple span,
body.talma-v2 a.talma-app-store.is-apple small,
body.talma-v2 a.talma-app-store.is-apple strong,
body.talma-v2 a.talma-app-store.is-apple svg {
  color: #1a1408 !important;
  fill: #1a1408 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.talma-app-store svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.talma-app-store small {
  display: block;
  font: 750 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
}

body.talma-v2 a.talma-app-store.is-apple small {
  opacity: 0.82 !important;
}

.talma-app-store strong {
  display: block;
  margin-top: 2px;
  font: 800 15px/1.1 Inter, system-ui, sans-serif;
}

.talma-app-alt {
  margin: 0;
  color: rgba(255, 248, 223, 0.62);
  font: 500 0.9rem/1.45 Inter, system-ui, sans-serif;
}

.talma-app-alt a {
  color: var(--talma-gold-2);
}

.talma-app-phone {
  position: relative;
  justify-self: center;
  width: min(300px, 100%);
}

.talma-app-phone-glow {
  position: absolute;
  inset: 8% -18% auto;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(210, 174, 95, 0.38), transparent 68%);
  filter: blur(28px);
}

.talma-app-phone-screen {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 560px;
  padding: 10px 10px 12px;
  border-radius: 42px;
  border: 1px solid rgba(255, 248, 223, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    #070707;
  box-shadow:
    0 44px 100px -34px rgba(0, 0, 0, 0.96),
    0 0 0 1px rgba(210, 174, 95, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.talma-app-notch {
  width: 92px;
  height: 16px;
  margin: 4px auto 8px;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.talma-app-slides {
  position: relative;
  min-height: 512px;
}

.talma-app-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 6px 2px;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.talma-app-slide.is-on {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transform: none;
  pointer-events: auto;
}

.talma-app-slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff8df;
}

.talma-app-slide-top span {
  font: 800 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.16em;
  color: var(--talma-gold-3);
}

.talma-app-slide-top strong {
  font: 750 12px/1 Inter, system-ui, sans-serif;
}

.talma-hr,
.talma-recover {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 4px auto 0;
}

.talma-hr-ring,
.talma-hr svg,
.talma-recover svg {
  width: 100%;
  height: 100%;
}

.talma-hr-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.talma-hr-value,
.talma-recover-value {
  fill: none;
  stroke: #ef5350;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 220 314;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  filter: drop-shadow(0 0 8px rgba(239, 83, 80, 0.65));
  animation: talma-pulse 1.15s ease-in-out infinite;
}

.talma-recover-value {
  stroke: #66bb6a;
  stroke-dasharray: 246 314;
  filter: drop-shadow(0 0 8px rgba(102, 187, 106, 0.55));
  animation: none;
}

.talma-hr-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
}

.talma-hr-core small,
.talma-hr-core em {
  font: 750 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 223, 0.55);
}

.talma-hr-core b {
  font: 850 42px/0.95 Inter, system-ui, sans-serif;
  letter-spacing: -0.04em;
}

.talma-ecg {
  display: block;
  width: 100%;
  height: 40px;
}

.talma-ecg path {
  fill: none;
  stroke: #ef5350;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: talma-ecg 2.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(239, 83, 80, 0.55));
}

.talma-zones {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  padding: 0 4px;
}

.talma-zones .z {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
  font: 800 9px/1 Inter, system-ui, sans-serif;
  color: #0a0a0a;
}

.z1 { background: #9e9e9e; }
.z2 { background: #42a5f5; }
.z3 { background: #66bb6a; }
.z4 { background: #ffa726; }
.z5 { background: #ef5350; }

.talma-zones .is-now {
  box-shadow: 0 0 18px rgba(255, 167, 38, 0.55);
  transform: scaleY(1.04);
}

.talma-hr-meta,
.talma-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.talma-hr-meta div,
.talma-hub-grid div {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.talma-hr-meta small,
.talma-hub-grid small {
  display: block;
  color: rgba(255, 248, 223, 0.5);
  font: 750 9px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.talma-hr-meta b,
.talma-hub-grid b {
  display: block;
  margin-top: 4px;
  color: #fff8df;
  font: 800 15px/1 Inter, system-ui, sans-serif;
}

.talma-hub-grid {
  grid-template-columns: 1fr 1fr;
}

.talma-hub-grid em {
  color: rgba(255, 248, 223, 0.42);
  font: 650 10px/1 Inter, system-ui, sans-serif;
}

.talma-rings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 6px;
}

.talma-ring {
  text-align: center;
}

.talma-ring .dial {
  --p: 0.7;
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 6px;
}

.talma-ring .dial::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(var(--ring) calc(var(--p) * 1turn), rgba(255, 255, 255, 0.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
  mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
}

.talma-ring b {
  position: relative;
  color: #fff;
  font: 800 15px/1 Inter, system-ui, sans-serif;
}

.talma-ring small {
  display: block;
  color: rgba(255, 248, 223, 0.55);
  font: 700 10px/1 Inter, system-ui, sans-serif;
}

.r-green { --ring: #66bb6a; }
.r-orange { --ring: #ffa726; }
.r-gold { --ring: #d2ae5f; }
.r-purple { --ring: #ab47bc; }
.r-pink { --ring: #ec407a; }
.r-blue { --ring: #42a5f5; }

.pill-hoy {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(210, 174, 95, 0.2);
  color: var(--talma-gold-3) !important;
  font-size: 10px !important;
}

.talma-ses-title {
  margin: 0;
  color: #fff8df;
  font: 800 16px/1.15 Inter, system-ui, sans-serif;
}

.talma-ses-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.talma-ses-tiles div {
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(66, 165, 245, 0.1);
  border: 1px solid rgba(66, 165, 245, 0.22);
  text-align: center;
}

.talma-ses-tiles small {
  display: block;
  color: #90caf9;
  font: 750 9px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.talma-ses-tiles b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font: 800 13px/1 Inter, system-ui, sans-serif;
}

.talma-ses-nivel {
  display: flex;
  justify-content: center;
}

.talma-ses-nivel .dial {
  width: 86px;
  height: 86px;
}

.talma-ses-load {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.talma-ses-load .dial {
  width: 62px;
  height: 62px;
}

.talma-ses-load b {
  font-size: 13px;
}

.talma-ses-ex {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.talma-ses-ex li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff8df;
  font: 750 11px/1.2 Inter, system-ui, sans-serif;
}

.talma-ses-ex em {
  color: var(--talma-gold-3);
  font-style: normal;
  font-weight: 800;
}

.talma-carnet {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 12px 10px;
  border-radius: 22px;
  background: linear-gradient(160deg, #4a1010 0%, #1a0808 70%, #0d0606 100%);
  border: 1px solid rgba(239, 83, 80, 0.45);
  box-shadow:
    0 18px 40px -20px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(239, 83, 80, 0.18);
}

.talma-carnet-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #ffcdd2;
}

.talma-carnet-top b {
  font: 900 28px/0.9 Inter, system-ui, sans-serif;
}

.talma-carnet-top div {
  text-align: center;
}

.talma-carnet-top small {
  display: block;
  font: 800 9px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.talma-carnet-top strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font: 800 12px/1 Inter, system-ui, sans-serif;
}

.talma-carnet-top em {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 205, 210, 0.4);
  background: rgba(0, 0, 0, 0.35);
  font: 800 9px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
  font-style: normal;
}

.talma-carnet-stripe {
  display: block;
  width: 100%;
  height: 6px;
  margin: 10px 0 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, #c62828, #ef5350);
  box-shadow: 0 0 14px rgba(239, 83, 80, 0.55);
}

.talma-carnet-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #ef5350;
  background: radial-gradient(circle at 35% 30%, #6d1b1b, #2a0b0b);
  color: #fff8df;
  font: 850 26px/1 Inter, system-ui, sans-serif;
  box-shadow: 0 0 20px rgba(239, 83, 80, 0.35);
}

.talma-carnet-name {
  margin: 12px 0 0;
  color: #fff8e6;
  font: 800 17px/1.15 Inter, system-ui, sans-serif;
  text-align: center;
}

.talma-carnet-club {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font: 750 10px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
}

.talma-carnet-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(239, 83, 80, 0.35);
  text-align: center;
}

.talma-carnet-stats small {
  display: block;
  color: rgba(255, 205, 210, 0.65);
  font: 750 8px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.08em;
}

.talma-carnet-stats b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font: 800 14px/1 Inter, system-ui, sans-serif;
}

.talma-radar-wrap {
  margin-top: 4px;
  padding: 8px 8px 6px;
  border-radius: 16px;
  background: rgba(66, 165, 245, 0.08);
  border: 1px solid rgba(66, 165, 245, 0.22);
}

.talma-radar-wrap p {
  margin: 0 0 4px;
  color: #90caf9;
  font: 750 11px/1 Inter, system-ui, sans-serif;
}

.talma-radar {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto;
}

.talma-radar .grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.talma-radar .fill {
  fill: rgba(66, 165, 245, 0.32);
  stroke: #42a5f5;
  stroke-width: 2;
}

.talma-radar circle {
  fill: #90caf9;
}

.talma-radar-wrap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.talma-radar-wrap li {
  color: rgba(255, 248, 223, 0.55);
  font: 650 9px/1 Inter, system-ui, sans-serif;
}

.talma-load {
  display: grid;
  gap: 8px;
}

.talma-load .row {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  color: rgba(255, 248, 223, 0.7);
  font: 750 10px/1 Inter, system-ui, sans-serif;
}

.talma-load i {
  height: 8px;
  width: var(--w);
  border-radius: 99px;
  background: var(--c);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent);
}

.talma-app-phone-caption {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  text-align: center;
  color: var(--talma-gold-3);
  font: 750 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.talma-app-phone-dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.talma-app-phone-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 248, 223, 0.28);
  cursor: pointer;
}

.talma-app-phone-dots .is-on {
  width: 18px;
  background: var(--talma-gold-2);
}

@keyframes talma-pulse {
  50% { stroke-dasharray: 236 314; filter: drop-shadow(0 0 14px rgba(239, 83, 80, 0.9)); }
}

@keyframes talma-ecg {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .talma-hr-value,
  .talma-ecg path { animation: none; }
}

.talma-app-section {
  margin-top: 48px;
}

.talma-app-section h2 {
  margin: 0 0 8px;
  color: #fff8df;
  font: 800 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 Inter, system-ui, sans-serif;
}

.talma-app-section > p {
  margin: 0 0 22px;
  color: var(--talma-muted);
  max-width: 40rem;
  font: 500 1rem/1.55 Inter, system-ui, sans-serif;
}

.talma-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.talma-app-card {
  padding: 18px 16px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 248, 223, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 8, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.talma-app-card .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(210, 174, 95, 0.16);
  color: var(--talma-gold-3);
  font-size: 18px;
}

.talma-app-card h3 {
  margin: 0 0 8px;
  color: #fff8df;
  font: 800 1.02rem/1.2 Inter, system-ui, sans-serif;
}

.talma-app-card p {
  margin: 0;
  color: rgba(255, 248, 223, 0.72);
  font: 500 0.92rem/1.5 Inter, system-ui, sans-serif;
}

.talma-app-cta {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(210, 174, 95, 0.34);
  background:
    radial-gradient(circle at 12% 0%, rgba(210, 174, 95, 0.22), transparent 46%),
    rgba(8, 8, 8, 0.62);
  text-align: center;
}

.talma-app-cta h2 {
  margin: 0 0 8px;
}

.talma-app-cta p {
  margin: 0 auto 18px;
}

.talma-app-cta .talma-app-stores {
  justify-content: center;
}

.talma-app-legal {
  margin: 22px 0 0;
  text-align: center;
  color: rgba(255, 248, 223, 0.48);
  font: 500 0.82rem/1.5 Inter, system-ui, sans-serif;
}

.talma-app-legal a {
  color: var(--talma-gold-2);
}

@media (max-width: 860px) {
  .talma-app-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .talma-app-phone {
    order: -1;
  }

  .talma-app-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .talma-app-grid {
    grid-template-columns: 1fr;
  }

  .talma-app-store {
    width: 100%;
  }
}
