/*
Theme Name: TuMundoFitness
Theme URI: https://tumundofitness.com
Description: Tema oscuro y moderno para blog de fitness y afiliación. Diseñado para TuMundoFitness.com
Version: 1.0
Author: TuMundoFitness
Template: astra
Text Domain: tumundofitness
*/

/* ── VARIABLES ── */
:root {
  --black: #0f0f0f;
  --white: #fafaf7;
  --accent: #c8f04a;
  --accent-dark: #a3cc2a;
  --mid: #1a1a1a;
  --card: #181818;
  --border: rgba(255,255,255,0.08);
  --text-muted: #888;
  --text-secondary: #bbb;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  color: var(--white) !important;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
p { color: var(--text-secondary); margin-bottom: 1.2rem; font-weight: 300; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
strong { color: var(--white); font-weight: 500; }

/* ── ASTRA OVERRIDES ── */
.ast-container, .ast-container-fluid { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
#masthead, .site-header { background: rgba(15,15,15,0.95) !important; border-bottom: 1px solid var(--border) !important; backdrop-filter: blur(16px); position: fixed; top: 0; left: 0; right: 0; z-index: 999; }
#masthead .ast-container { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.site-title a { font-family: var(--font-display) !important; font-weight: 800 !important; font-size: 20px !important; color: var(--white) !important; }
.site-title a span.ast-header-break-point { display: none; }
#site-navigation .menu-item a, .main-header-menu .menu-item a {
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  transition: color 0.2s !important;
}
#site-navigation .menu-item a:hover { color: var(--white) !important; }
.ast-header-break-point .ast-mobile-header-stack { background: var(--black) !important; }
#page { padding-top: 64px; }
.ast-page-builder-template #page { padding-top: 64px; }
footer#colophon, .site-footer { background: var(--black) !important; border-top: 1px solid var(--border) !important; color: var(--text-muted) !important; }
.ast-footer-copyright { color: var(--text-muted) !important; font-size: 13px !important; }

/* ── HERO SECTION ── */
.tmf-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 32px 80px;
  position: relative;
  overflow: hidden;
}
.tmf-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(200,240,74,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(200,240,74,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.tmf-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
}
.tmf-hero-content { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; width: 100%; }
.tmf-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,240,74,0.1); border: 1px solid rgba(200,240,74,0.2);
  color: var(--accent); padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.tmf-hero-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.tmf-hero h1 {
  font-size: clamp(52px, 8vw, 108px) !important;
  font-weight: 800 !important;
  letter-spacing: -3px !important;
  line-height: 0.92 !important;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.tmf-hero h1 em { color: var(--accent); font-style: normal; }
.tmf-hero-sub {
  color: var(--text-secondary); font-size: 18px; font-weight: 300;
  max-width: 480px; line-height: 1.6; margin-bottom: 36px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.tmf-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}
.tmf-hero-stats {
  display: flex; gap: 48px; margin-top: 64px;
  padding-top: 40px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}
.tmf-stat-num {
  font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--white); line-height: 1;
}
.tmf-stat-num span { color: var(--accent); }
.tmf-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── BUTTONS ── */
.tmf-btn-primary {
  background: var(--accent); color: var(--black) !important;
  padding: 14px 32px; border-radius: 100px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s, background 0.15s;
  text-decoration: none;
}
.tmf-btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); opacity: 1; }
.tmf-btn-secondary {
  background: transparent; color: var(--white) !important;
  padding: 14px 32px; border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none;
}
.tmf-btn-secondary:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); opacity: 1; }

/* ── TICKER ── */
.tmf-ticker {
  background: var(--accent); overflow: hidden;
  padding: 12px 0; display: flex;
}
.tmf-ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 22s linear infinite;
}
.tmf-ticker-item {
  padding: 0 36px; font-family: var(--font-display);
  font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--black);
  display: inline-flex; align-items: center; gap: 16px;
}
.tmf-ticker-item::after { content: '✦'; font-size: 9px; }

/* ── SECTIONS ── */
.tmf-section { padding: 90px 32px; }
.tmf-section-inner { max-width: 1140px; margin: 0 auto; }
.tmf-section-label {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.tmf-section-title {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.05; letter-spacing: -1.5px;
  color: var(--white); margin-bottom: 0;
}
.tmf-section-title em { color: var(--accent); font-style: normal; }
.tmf-section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}
.tmf-read-more {
  color: var(--accent); font-family: var(--font-display);
  font-weight: 600; font-size: 15px; display: inline-flex;
  align-items: center; gap: 6px; transition: gap 0.2s;
}
.tmf-read-more:hover { gap: 12px; opacity: 1; }
.tmf-read-more::after { content: '→'; }

/* ── ARTICLE CARDS ── */
.tmf-articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tmf-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s; cursor: pointer;
}
.tmf-card:hover { transform: translateY(-4px); border-color: rgba(200,240,74,0.2); }
.tmf-card-thumb {
  height: 180px; display: flex; align-items: center;
  justify-content: center; font-size: 52px;
  position: relative; overflow: hidden;
}
.tmf-card-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(200,240,74,0.07) 0%, transparent 70%);
}
.t1 { background: linear-gradient(135deg, #1a2a0a, #2d4a10); }
.t2 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.t3 { background: linear-gradient(135deg, #2a1a0a, #4a2d10); }
.t4 { background: linear-gradient(135deg, #1a0a2a, #2d1040); }
.t5 { background: linear-gradient(135deg, #0a1a2a, #103040); }
.t6 { background: linear-gradient(135deg, #2a0a1a, #401030); }
.tmf-card-body { padding: 20px; }
.tmf-cat-tag {
  background: rgba(200,240,74,0.12); color: var(--accent);
  padding: 3px 10px; border-radius: 100px; font-size: 11px;
  font-weight: 600; display: inline-block; margin-bottom: 10px;
}
.tmf-card-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.3px; color: var(--white);
  margin-bottom: 8px;
}
.tmf-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.tmf-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.tmf-read-time { font-size: 12px; color: var(--text-muted); }

/* ── PRODUCT RANKING ── */
.tmf-ranking-section { background: var(--mid); }
.tmf-ranking-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; margin-bottom: 48px;
}
.tmf-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tmf-badge {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px; font-size: 13px;
  color: var(--text-secondary); display: flex; align-items: center; gap: 6px;
}
.tmf-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: block; }
.tmf-product-list { display: flex; flex-direction: column; gap: 14px; }
.tmf-product-wrapper { position: relative; }
.tmf-winner-badge {
  position: absolute; top: -10px; left: 24px; z-index: 1;
  background: var(--accent); color: var(--black);
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
}
.tmf-product-row {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 22px 26px;
  display: grid; grid-template-columns: 44px 1fr auto auto;
  align-items: center; gap: 22px;
  transition: border-color 0.2s;
}
.tmf-product-row.winner { border-color: rgba(200,240,74,0.35); background: rgba(200,240,74,0.03); }
.tmf-rank { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--border); text-align: center; }
.tmf-product-row.winner .tmf-rank { color: var(--accent); }
.tmf-product-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.tmf-product-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.tmf-product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tmf-ptag { background: rgba(255,255,255,0.06); color: var(--text-secondary); padding: 2px 9px; border-radius: 100px; font-size: 11px; }
.tmf-ptag-accent { background: rgba(200,240,74,0.1); color: var(--accent); padding: 2px 9px; border-radius: 100px; font-size: 11px; }
.tmf-score { text-align: center; min-width: 56px; }
.tmf-score-num { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1; }
.tmf-score-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; margin-top: 3px; }
.tmf-amazon-btn {
  background: var(--accent); color: var(--black) !important;
  padding: 10px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 700; font-family: var(--font-display);
  white-space: nowrap; transition: transform 0.15s, background 0.15s;
  display: inline-flex; align-items: center; gap: 5px;
}
.tmf-amazon-btn:hover { background: var(--accent-dark); transform: translateY(-1px); opacity: 1; }
.tmf-affiliate-notice {
  margin-top: 20px; padding: 14px 18px;
  background: rgba(255,255,255,0.03); border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 12px;
  color: var(--text-muted); line-height: 1.5;
}

/* ── CATEGORIES ── */
.tmf-cats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px;
}
.tmf-cat-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px 22px;
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none; display: block;
}
.tmf-cat-card:hover { transform: translateY(-4px); border-color: rgba(200,240,74,0.2); opacity: 1; }
.tmf-cat-icon { font-size: 30px; display: block; margin-bottom: 14px; }
.tmf-cat-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.tmf-cat-count { font-size: 13px; color: var(--text-muted); }
.tmf-cat-arrow { color: var(--accent); font-size: 18px; margin-top: 14px; display: block; }

/* ── NEWSLETTER ── */
.tmf-newsletter-section { background: var(--mid); }
.tmf-newsletter {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.tmf-newsletter h2 { font-size: clamp(32px, 4vw, 48px) !important; letter-spacing: -1.5px !important; margin-bottom: 14px; }
.tmf-newsletter h2 em { color: var(--accent); font-style: normal; }
.tmf-newsletter p { color: var(--text-secondary); font-size: 17px; font-weight: 300; margin-bottom: 32px; }
.tmf-newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.tmf-newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 13px 22px; color: var(--white); font-size: 15px;
  font-family: var(--font-body); outline: none;
  transition: border-color 0.2s;
}
.tmf-newsletter-form input::placeholder { color: var(--text-muted); }
.tmf-newsletter-form input:focus { border-color: rgba(200,240,74,0.35); }
.tmf-newsletter-form button {
  background: var(--accent); color: var(--black);
  border: none; border-radius: 100px; padding: 13px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.tmf-newsletter-form button:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ── FOOTER ── */
.tmf-footer-inner { max-width: 1140px; margin: 0 auto; padding: 60px 32px 32px; }
.tmf-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.tmf-footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; max-width: 260px; line-height: 1.6; }
.tmf-footer-col h4 { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 16px; }
.tmf-footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tmf-footer-col ul li a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.tmf-footer-col ul li a:hover { color: var(--white); opacity: 1; }
.tmf-footer-bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.tmf-footer-bottom p { font-size: 13px; color: var(--text-muted); margin: 0; }
.tmf-footer-legal { display: flex; gap: 20px; }
.tmf-footer-legal a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.tmf-footer-legal a:hover { color: var(--white); opacity: 1; }

/* ── SINGLE ARTICLE ── */
.single .entry-title { font-family: var(--font-display) !important; font-size: clamp(32px, 5vw, 58px) !important; font-weight: 800 !important; letter-spacing: -2px !important; color: var(--white) !important; line-height: 1.05 !important; }
.single .entry-content { color: var(--text-secondary) !important; font-size: 16px; line-height: 1.8; font-weight: 300; }
.single .entry-content h2 { font-family: var(--font-display) !important; font-size: 28px !important; font-weight: 800 !important; letter-spacing: -0.5px !important; margin: 48px 0 16px !important; color: var(--white) !important; }
.single .entry-content h3 { font-family: var(--font-display) !important; font-size: 20px !important; font-weight: 700 !important; color: var(--white) !important; margin: 32px 0 12px !important; }
.single .entry-content p { color: var(--text-secondary) !important; }
.single .entry-content strong { color: var(--white) !important; font-weight: 500 !important; }
.single .entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.single .entry-content table th { background: var(--card); color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.single .entry-content table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-size: 14px; }
.single .entry-content table tr:hover td { background: rgba(255,255,255,0.02); }
.ast-article-single { max-width: 800px !important; margin: 0 auto !important; padding-top: 32px !important; }
.ast-post-format-image, .ast-blog-layout-1 .ast-article-post { background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tmf-hero { padding: 0 20px 60px; }
  .tmf-hero h1 { font-size: 48px !important; letter-spacing: -2px !important; }
  .tmf-hero-stats { gap: 24px; }
  .tmf-articles-grid { grid-template-columns: 1fr; }
  .tmf-ranking-intro { grid-template-columns: 1fr; gap: 32px; }
  .tmf-product-row { grid-template-columns: 36px 1fr; }
  .tmf-score, .tmf-amazon-btn { display: none; }
  .tmf-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .tmf-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tmf-newsletter-form { flex-direction: column; }
  .tmf-section { padding: 60px 20px; }
}
@media (max-width: 600px) {
  .tmf-cats-grid { grid-template-columns: 1fr 1fr; }
  .tmf-footer-grid { grid-template-columns: 1fr; }
}
