/* TF15 — Entornos de estilo RC9e (pack para index real)
 * Aplica brillos a:
 *  - Tarjetas de estilo  (.tf15-style-card[data-theme])
 *  - Pestañas superiores (.tf15-style-tab[data-theme])
 *  - Botón principal     (.tf15-style-btn-main)
 */

:root {
  --tf15-radius-card: 26px;
  --tf15-radius-pill: 999px;

  --tf15-royal-color:    #60a5fa;
  --tf15-chic-color:     #fb7185;
  --tf15-dream-color:    #a855f7;
  --tf15-glam-color:     #38bdf8;
  --tf15-boho-color:     #facc15;
  --tf15-princess-color: #f472b6;
}

/* TARJETAS (las ventanas grandes) */

.tf15-style-card {
  position: relative;
  border-radius: var(--tf15-radius-card);
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 18px 35px rgba(15, 23, 42, 0.8);
  transition:
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s ease;
}

.tf15-style-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.28s ease;
}

/* texto inferior opcional dentro de la tarjeta */
.tf15-style-card .tf15-style-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

/* Ya NO levantamos la tarjeta activa: todas quedan alineadas */
.tf15-style-card.is-active {
  transform: none;
}

/* Royal */
.tf15-style-card[data-theme="royal"] {
  border-color: rgba(96, 165, 250, 0.95);
}
.tf15-style-card[data-theme="royal"]::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.9), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.75), transparent 55%);
}
.tf15-style-card[data-theme="royal"].is-active {
  box-shadow:
    0 0 25px rgba(96, 165, 250, 0.7),
    0 0 0 1px rgba(147, 197, 253, 0.9);
}

/* Chic */
.tf15-style-card[data-theme="chic"] {
  border-color: rgba(248, 113, 113, 0.95);
}
.tf15-style-card[data-theme="chic"]::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(251, 113, 133, 0.9), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.8), transparent 55%);
}
.tf15-style-card[data-theme="chic"].is-active {
  box-shadow:
    0 0 25px rgba(251, 113, 133, 0.8),
    0 0 0 1px rgba(254, 205, 211, 0.95);
}

/* Dream */
.tf15-style-card[data-theme="dream"] {
  border-color: rgba(168, 85, 247, 0.95);
}
.tf15-style-card[data-theme="dream"]::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.9), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(94, 234, 212, 0.7), transparent 55%);
}
.tf15-style-card[data-theme="dream"].is-active {
  box-shadow:
    0 0 25px rgba(168, 85, 247, 0.85),
    0 0 0 1px rgba(221, 214, 254, 0.95);
}

/* Glam */
.tf15-style-card[data-theme="glam"] {
  border-color: rgba(56, 189, 248, 0.95);
}
.tf15-style-card[data-theme="glam"]::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.9), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(251, 191, 36, 0.75), transparent 55%);
}
.tf15-style-card[data-theme="glam"].is-active {
  box-shadow:
    0 0 25px rgba(56, 189, 248, 0.8),
    0 0 0 1px rgba(191, 219, 254, 0.95);
}

/* Boho */
.tf15-style-card[data-theme="boho"] {
  border-color: rgba(250, 204, 21, 0.95);
}
.tf15-style-card[data-theme="boho"]::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.9), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(248, 250, 252, 0.6), transparent 55%);
}
.tf15-style-card[data-theme="boho"].is-active {
  box-shadow:
    0 0 25px rgba(250, 204, 21, 0.85),
    0 0 0 1px rgba(254, 243, 199, 0.95);
}

/* Princess */
.tf15-style-card[data-theme="princess"] {
  border-color: rgba(244, 114, 182, 0.95);
}
.tf15-style-card[data-theme="princess"]::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.9), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(251, 207, 232, 0.85), transparent 55%);
}
.tf15-style-card[data-theme="princess"].is-active {
  box-shadow:
    0 0 25px rgba(244, 114, 182, 0.85),
    0 0 0 1px rgba(252, 231, 243, 0.95);
}

.tf15-style-card.is-active::before {
  opacity: 1;
}

/* PESTAÑAS SUPERIORES (Royal Experience, etc.) */

.tf15-style-tab {
  position: relative;
  border-radius: var(--tf15-radius-pill);
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(18, 24, 40, 0.75);
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 10px 20px rgba(15, 23, 42, 0.7);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.tf15-style-tab::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tf15-style-tab[data-theme="royal"]    { border-color: var(--tf15-royal-color); }
.tf15-style-tab[data-theme="chic"]     { border-color: var(--tf15-chic-color); }
.tf15-style-tab[data-theme="dream"]    { border-color: var(--tf15-dream-color); }
.tf15-style-tab[data-theme="glam"]     { border-color: var(--tf15-glam-color); }
.tf15-style-tab[data-theme="boho"]     { border-color: var(--tf15-boho-color); }
.tf15-style-tab[data-theme="princess"] { border-color: var(--tf15-princess-color); }

.tf15-style-tab.is-active {
  transform: translateY(-2px);
  color: #111827;
  background: #f9fafb;
  box-shadow:
    0 0 18px rgba(15, 23, 42, 0.8),
    0 0 30px rgba(250, 250, 250, 0.5);
}
.tf15-style-tab.is-active::before {
  opacity: 1;
}

.tf15-style-tab[data-theme="royal"].is-active::before {
  background: radial-gradient(circle at 50% 120%, rgba(96, 165, 250, 0.65), transparent 70%);
}
.tf15-style-tab[data-theme="chic"].is-active::before {
  background: radial-gradient(circle at 50% 120%, rgba(251, 113, 133, 0.65), transparent 70%);
}
.tf15-style-tab[data-theme="dream"].is-active::before {
  background: radial-gradient(circle at 50% 120%, rgba(168, 85, 247, 0.7), transparent 70%);
}
.tf15-style-tab[data-theme="glam"].is-active::before {
  background: radial-gradient(circle at 50% 120%, rgba(56, 189, 248, 0.7), transparent 70%);
}
.tf15-style-tab[data-theme="boho"].is-active::before {
  background: radial-gradient(circle at 50% 120%, rgba(250, 204, 21, 0.75), transparent 70%);
}
.tf15-style-tab[data-theme="princess"].is-active::before {
  background: radial-gradient(circle at 50% 120%, rgba(244, 114, 182, 0.75), transparent 70%);
}

/* BOTÓN PRINCIPAL "Aplicar estilo" */

.tf15-style-btn-main {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.6rem;
  border-radius: var(--tf15-radius-pill);
  border: 1px solid rgba(248, 250, 252, 0.7);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: #111827;
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.tf15-style-btn-main::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tf15-style-btn-main:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.9);
}

.tf15-style-btn-main:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(30, 64, 175, 0.8);
}

/* temas para el botón */

.tf15-style-btn-main.theme-royal {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  border-color: rgba(191, 219, 254, 0.95);
  color: #eff6ff;
}
.tf15-style-btn-main.theme-royal::before {
  opacity: 1;
  background:
    radial-gradient(circle at 0% 0%, rgba(147, 197, 253, 0.8), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.8), transparent 60%);
}

.tf15-style-btn-main.theme-chic {
  background: linear-gradient(135deg, #be123c, #fb7185);
  border-color: rgba(254, 205, 211, 0.95);
  color: #fff1f2;
}
.tf15-style-btn-main.theme-chic::before {
  opacity: 1;
  background:
    radial-gradient(circle at 0% 0%, rgba(248, 113, 113, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.9), transparent 60%);
}

.tf15-style-btn-main.theme-dream {
  background: linear-gradient(135deg, #7c3aed, #22c55e);
  border-color: rgba(221, 214, 254, 0.95);
  color: #f9fafb;
}
.tf15-style-btn-main.theme-dream::before {
  opacity: 1;
  background:
    radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.9), transparent 60%);
}

.tf15-style-btn-main.theme-glam {
  background: linear-gradient(135deg, #f97316, #facc15);
  border-color: rgba(254, 243, 199, 0.95);
  color: #451a03;
}
.tf15-style-btn-main.theme-glam::before {
  opacity: 1;
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(250, 204, 21, 0.9), transparent 60%);
}

.tf15-style-btn-main.theme-boho {
  background: linear-gradient(135deg, #facc15, #f97316);
  border-color: rgba(254, 249, 195, 0.95);
  color: #452103;
}
.tf15-style-btn-main.theme-boho::before {
  opacity: 1;
  background:
    radial-gradient(circle at 0% 0%, rgba(250, 204, 21, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(253, 224, 71, 0.9), transparent 60%);
}

.tf15-style-btn-main.theme-princess {
  background: linear-gradient(135deg, #db2777, #f472b6);
  border-color: rgba(252, 231, 243, 0.95);
  color: #fdf2f8;
}
.tf15-style-btn-main.theme-princess::before {
  opacity: 1;
  background:
    radial-gradient(circle at 0% 0%, rgba(244, 114, 182, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(251, 207, 232, 0.9), transparent 60%);
}

.tf15-style-btn-main.is-busy {
  pointer-events: none;
  opacity: 0.9;
}
