/* ═══════════════════════════════════════════════════════════
   FITFINDER · Design System Unificado v3
   Clean · Professional · High-Performance
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  /* Brand (Opción A) */
  --primary:          #E85D3A;
  --primary-dark:     #B2442E;
  --primary-light:    #FF7F4D;
  --primary-glow:     rgba(232, 93, 58, 0.18);
  --secondary:        #F59E0B;

  /* Neutrals — warm white system */
  --bg-base:          #FAFAF8;
  --bg-surface:       #FFFFFF;
  --bg-card:          #FFFFFF;
  --bg-subtle:        #F5F4F1;
  --bg-input:         #F5F4F1;
  --bg-input-focus:   #FFFFFF;
  --bg-muted:         #F0EFec;

  /* Text */
  --text-main:        #18181B;
  --text-body:        #3F3F46;
  --text-muted:       #71717A;
  --text-dim:         #A1A1AA;

  /* Borders */
  --border:           #E4E4E7;
  --border-subtle:    #F0F0EE;
  --border-active:    rgba(232, 93, 58, 0.45);

  /* Shadows — more refined, less heavy */
  --shadow-xs:        0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:        0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:        0 12px 32px rgba(0,0,0,0.09), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl:        0 20px 48px rgba(0,0,0,0.1),  0 8px 20px rgba(0,0,0,0.05);
  --shadow-glow:      0 0 0 3px var(--primary-glow);

  /* Radii */
  --radius-xs:        4px;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --radius-2xl:       28px;
  --radius-full:      999px;

  /* Typography */
  --font-display:     'Syne', sans-serif;
  --font-body:        'Plus Jakarta Sans', sans-serif;

  /* Transition */
  --ease:             cubic-bezier(0.32, 0.72, 0, 1);
  --transition:       all 0.2s var(--ease);
  --transition-slow:  all 0.35s var(--ease);

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  text-align: center;
  padding: var(--space-16) var(--space-6) var(--space-10);
  position: relative;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: var(--space-3);
}

header h1 .emoji-icon {
  display: inline-block;
  animation: pulse-icon 3.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.1) rotate(-3deg); }
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

.subtitle strong {
  color: var(--text-body);
  font-weight: 600;
}

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-16);
}

/* ── Formulario Principal ───────────────────────────────── */
.routine-form,
.nutrition-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  margin-top: var(--space-8);
}

.routine-form::before,
.nutrition-form::before {
  content: '';
  position: absolute;
  top: 0; left: var(--space-8); right: var(--space-8);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

@media (max-width: 680px) {
  .routine-form,
  .nutrition-form {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
  }
  .routine-form::before,
  .nutrition-form::before {
    left: var(--space-5);
    right: var(--space-5);
  }
}

/* ── Form Label ──────────────────────────────────────────── */
.form-label {
  display: block;
  margin-bottom: var(--space-5);
}

.form-label > span:first-child {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.required {
  color: var(--primary);
}

/* ── Inputs & Selects ───────────────────────────────────── */
.form-label select,
.form-label input[type="number"],
.form-label input[type="text"],
.form-label input[type="email"],
.form-label textarea,
select,
input[type="number"],
input[type="text"]:not(.hp-field),
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  line-height: 1.5;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-label select:focus,
.form-label input:focus,
.form-label textarea:focus,
select:focus,
input:focus,
textarea:focus {
  border-color: var(--primary);
  background: var(--bg-input-focus);
  box-shadow: var(--shadow-glow);
}

select option {
  background: var(--bg-card);
  color: var(--text-main);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── Form Row ────────────────────────────────────────────── */
.form-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: 0;
}

.form-row .form-label {
  flex: 1;
}

@media (max-width: 520px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ── Checkbox Grid ──────────────────────────────────────── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.55rem 0.85rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  user-select: none;
  line-height: 1.3;
}

.checkbox-label:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: rgba(232, 93, 58, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(232, 93, 58, 0.08);
  color: var(--text-main);
}

/* ── Custom Input ────────────────────────────────────────── */
.custom-input {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.custom-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-glow);
}

/* ── Form Hint ───────────────────────────────────────────── */
.form-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: var(--space-1);
  line-height: 1.5;
}

/* ── Botón Principal ─────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(232, 93, 58, 0.35), 0 1px 3px rgba(232, 93, 58, 0.2);
  margin-top: var(--space-5);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 58, 0.4), 0 2px 8px rgba(232, 93, 58, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(232, 93, 58, 0.3);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ── Botones Secundarios ─────────────────────────────────── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(232, 93, 58, 0.07);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(232, 93, 58, 0.15);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

/* ── Loading State ──────────────────────────────────────── */
#loading {
  text-align: center;
  padding: var(--space-12) var(--space-4);
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto var(--space-4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Result Section ─────────────────────────────────────── */
.result-section {
  margin-top: var(--space-8);
  animation: fadeInUp 0.35s var(--ease) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Routine / Nutrition Card ───────────────────────────── */
.routine-card,
.nutrition-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.routine-card::before,
.nutrition-card::before {
  content: '';
  position: absolute;
  top: 0; left: var(--space-8); right: var(--space-8);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

@media (max-width: 680px) {
  .routine-card,
  .nutrition-card {
    padding: var(--space-5);
    border-radius: var(--radius-xl);
  }
  .routine-card::before,
  .nutrition-card::before {
    left: var(--space-5);
    right: var(--space-5);
  }
}

/* Header de la tarjeta */
.routine-header,
.nutrition-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.routine-header h2,
.nutrition-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: var(--space-1);
}

.routine-meta,
.nutrition-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Day Tabs ────────────────────────────────────────────── */
.day-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-3);
}

.day-tab {
  padding: 0.45rem 1rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.day-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 93, 58, 0.05);
}

.day-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(232, 93, 58, 0.35);
}

.day-content { display: none; }
.day-content.active {
  display: block;
  animation: fadeIn 0.25s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Exercise / Meal Items ──────────────────────────────── */
.exercises-list,
.meals-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.exercise-item,
.meal-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  transition: var(--transition);
  position: relative;
}

.exercise-item:hover,
.meal-item:hover {
  border-color: rgba(232, 93, 58, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.exercise-header,
.meal-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.exercise-number,
.meal-number {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exercise-header h3,
.meal-header h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
  line-height: 1.3;
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(232, 93, 58, 0.1);
  color: var(--primary);
  border: 1px solid rgba(232, 93, 58, 0.2);
  white-space: nowrap;
}

.badge-strength  { background: rgba(232,93,58,0.08);   color: var(--primary-dark); border-color: rgba(232,93,58,0.18); }
.badge-cardio    { background: rgba(2,132,199,0.08);   color: #0284C7; border-color: rgba(2,132,199,0.2); }
.badge-mobility  { background: rgba(217,119,6,0.08);   color: #B45309; border-color: rgba(217,119,6,0.2); }
.badge-core      { background: rgba(109,40,217,0.08);  color: #7C3AED; border-color: rgba(109,40,217,0.2); }
.badge-warmup    { background: rgba(5,150,105,0.08);   color: #059669; border-color: rgba(5,150,105,0.2); }
.badge-cooling   { background: rgba(14,165,233,0.08);  color: #0EA5E9; border-color: rgba(14,165,233,0.2); }

/* ── Descripciones ──────────────────────────────────────── */
.exercise-description,
.meal-description {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: var(--space-1) 0 var(--space-2);
  line-height: 1.55;
}

.exercise-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.exercise-details span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-muted);
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}

.exercise-equipment {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: var(--space-1) 0;
}

.exercise-tips {
  list-style: none;
  padding: 0;
  margin-top: var(--space-2);
}

.exercise-tips li {
  font-size: 0.81rem;
  color: var(--text-muted);
  padding: var(--space-1) 0 var(--space-1) var(--space-4);
  position: relative;
  line-height: 1.45;
}

.exercise-tips li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1em;
}

/* ── Macros (Nutrición) ─────────────────────────────────── */
.meal-macros {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.meal-macros span {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.77rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-body);
}

.meal-ingredients {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meal-ingredients li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding: 0.14rem 0 0.14rem var(--space-4);
  position: relative;
  line-height: 1.5;
}

.meal-ingredients li::before {
  content: '·';
  position: absolute;
  left: var(--space-1);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1em;
}

/* ── Daily Totals ───────────────────────────────────────── */
.daily-totals {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-4);
  text-align: center;
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.daily-totals::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.daily-totals div {
  min-width: 60px;
}

.daily-totals strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-bottom: 2px;
  line-height: 1;
}

.daily-totals span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Routine / Nutrition Footer ─────────────────────────── */
.routine-footer,
.nutrition-footer {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.routine-actions,
.nutrition-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.affiliate-disclosure {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.74rem;
  margin-bottom: var(--space-3);
}

/* ── Error Card ──────────────────────────────────────────── */
.error-card {
  background: #FFF5F5;
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #DC2626;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
}

.error-card h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
}

/* ── Navigation Links ────────────────────────────────────── */
.links, nav.links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
}

.links a {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.links a:hover {
  color: var(--primary);
}

.links span {
  color: var(--border);
  font-size: 1rem;
  line-height: 1;
}

/* ── Share Buttons ──────────────────────────────────────── */
.share-buttons {
    display: flex; gap: 10px; justify-content: center; margin: 1.5rem 0; flex-wrap: wrap;
}
.share-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    background: var(--bg-card); color: var(--text-main);
    text-decoration: none; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
    transition: var(--transition); border: 1.5px solid var(--border);
    min-height: 48px;
}
.share-btn:hover { background: var(--bg-subtle); transform: translateY(-2px); }
.share-btn.whatsapp { background: #e6f7e6; border-color: #86efac; color: #166534; }
.share-btn.whatsapp:hover { background: #d1fae5; }
.share-btn.facebook { background: #e6f0ff; border-color: #93c5fd; color: #1e40af; }
.share-btn.facebook:hover { background: #dbeafe; }

/* ── FAQ Section ────────────────────────────────────────── */
.faq-section {
    margin-top: var(--space-10);
}

.faq-section h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: var(--space-5);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    background: var(--bg-card);
}
.faq-item:last-of-type {
    border-bottom: none;
}
.faq-item[open] {
    background: #faf8f5;
}

.faq-question {
    padding: 1.3rem 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background 0.2s;
    user-select: none;
    background: transparent;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: #f5f4f1; }
.faq-question::before {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    display: inline-block;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.faq-item[open] .faq-question::before { content: "−"; }

.faq-answer {
    padding: 0 1.8rem 1.5rem 1.8rem;
    color: var(--text-body);
    line-height: 1.7;
    font-size: 0.95rem;
    background: transparent;
}
.faq-answer p { margin: 0 0 1rem 0; }
.faq-answer ul { margin-left: 1.5rem; margin-bottom: 1rem; }

@media (max-width: 560px) {
    .faq-question { padding: 1.2rem 1rem; font-size: 0.95rem; }
    .faq-answer { padding: 0 1rem 1.2rem 1rem; }
}

/* ── Disclaimer ─────────────────────────────────────────── */
.disclaimer {
  font-size: 0.79rem;
  color: var(--text-dim);
  text-align: center;
  padding: var(--space-4) var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: var(--space-6);
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: var(--space-8) var(--space-4) var(--space-10);
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
  background: var(--bg-surface);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

footer a:hover { color: var(--primary); }

/* ── Float Contact Button ────────────────────────────────── */
.float-contact {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(232, 93, 58, 0.45);
  z-index: 1000;
  align-items: center;
  gap: var(--space-2);
  transition: var(--transition);
}

.float-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 58, 0.5);
  background: var(--primary-dark);
}

/* ── Blog / Grid Cards ───────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(232, 93, 58, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-main);
  line-height: 1.4;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.card h3 a:hover { color: var(--primary); }

.card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ── Professionals Page ──────────────────────────────────── */
.professional-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition);
}

.professional-card:hover {
  border-color: rgba(232, 93, 58, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Alert / Status ──────────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-weight: 500;
  border-left: 3px solid;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(5, 150, 105, 0.08);
  color: #065F46;
  border-color: #059669;
}

.alert-error {
  background: rgba(220, 38, 38, 0.07);
  color: #991B1B;
  border-color: #EF4444;
}

/* ── Tablas Responsive ───────────────────────────────────── */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: var(--space-4) 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.responsive-table th,
.responsive-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}

.responsive-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.responsive-table tbody tr:hover {
  background: rgba(232, 93, 58, 0.03);
}

/* Scroll horizontal en móvil */
@media (max-width: 640px) {
  .responsive-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 0;
  }
  .responsive-table th,
  .responsive-table td {
    white-space: nowrap;
  }
}
/* ═══════════════════════════════════════════════════════════
   HOME PAGE — Estilos específicos unificados
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────── */
.home-hero {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #faf8f5 100%);
    border-bottom: 1px solid var(--border);
}
.badge-free {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 93, 58, 0.08);
    border: 1px solid rgba(232, 93, 58, 0.25);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(4px);
    letter-spacing: -0.01em;
    animation: softPulse 3s infinite ease-in-out;
}
@keyframes softPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 93, 58, 0.1); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(232, 93, 58, 0); }
}
.home-hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: #0f0f0f;
}
.home-hero h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ── CTA Grid ───────────────────────────────────────────── */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
@media (max-width: 560px) {
    .cta-grid { grid-template-columns: 1fr; }
}
.cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.8rem 1rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    min-height: 120px;
}
.cta-card.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(232, 93, 58, 0.25);
}
.cta-card.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(232, 93, 58, 0.35);
}
.cta-card.secondary {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
}
.cta-card.secondary:hover {
    background: rgba(245, 158, 11, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}
.cta-card .cta-icon { font-size: 2.2rem; }
.cta-card .cta-sub { font-size: 0.85rem; font-weight: 400; opacity: 0.8; }

.pros-hint {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.pros-hint a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px dashed rgba(232, 93, 58, 0.3);
}
.pros-hint a:hover { border-bottom-style: solid; }

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* ── Secciones Comunes ──────────────────────────────────── */
.home-section {
    padding: 3.5rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.home-section-alt {
    background: #f5f4f1;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 1.5rem;
}
.home-section-alt > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 auto 3rem;
}
@media (max-width: 720px) {
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; }
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(232, 93, 58, 0.3);
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Features ───────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}
@media (max-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    min-height: 48px;
}
.feature-pill:hover { border-color: var(--primary); background: rgba(232, 93, 58, 0.02); }

/* ── Guides ─────────────────────────────────────────────── */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
@media (max-width: 600px) {
    .guides-grid { grid-template-columns: 1fr; }
}
.guide-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}
.guide-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(232, 93, 58, 0.08);
    transform: translateY(-2px);
}
.guide-card .guide-icon { font-size: 2rem; flex-shrink: 0; }
.guide-card .guide-text { font-size: 0.95rem; }
.guide-card .guide-tag {
    display: block;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* ── Botones específicos de Home ────────────────────────── */
.btn-outline-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    min-height: 52px;
}
.btn-outline-home:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.home-guides-actions {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Why Block ──────────────────────────────────────────── */
.why-block {
    background: linear-gradient(135deg, #fff8f5 0%, #fff 100%);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(232, 93, 58, 0.15);
}
.why-block h2 { font-size: 1.9rem; margin-bottom: 0.5rem; text-align: center; }
.why-block .tagline { text-align: center; color: var(--primary); font-weight: 600; margin-bottom: 1.8rem; }
.why-block p { margin-bottom: 1rem; }
.why-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.why-list li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 1rem; }
.why-list li span { color: var(--primary); font-weight: 700; }

/* ── Profesionales ──────────────────────────────────────── */
.pros-section {
    padding: 3.5rem 1.5rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf8f5 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pros-section-inner { max-width: 960px; margin: 0 auto; }
.pros-section-header { text-align: center; margin-bottom: 2rem; }
.pros-section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.pros-section-header p { color: var(--text-muted); font-size: 1.1rem; }

.pros-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 720px) {
    .pros-mini-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
}
.pro-mini-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.pro-mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pro-mini-img { width: 100%; height: 160px; object-fit: cover; background: #e9e9e9; }
.pro-mini-body { padding: 1.2rem; }
.pro-mini-name { font-weight: 800; font-size: 1.1rem; color: var(--text-main); }
.pro-mini-city { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.pro-mini-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.6rem; }
.pro-mini-spec {
    background: #f0f0ee;
    color: var(--text-body);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}
.pro-mini-badge-prem {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.pro-mini-badge-plus {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #4F46E5);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.btn-pros-ver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(232, 93, 58, 0.3);
    min-height: 54px;
}
.btn-pros-ver:hover { background: var(--primary-dark); transform: translateY(-2px); }

.pros-section-cta { text-align: center; }

.pro-recruit-bar {
    background: #1e1e2a;
    color: #b0b0c0;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
}
.pro-recruit-bar a { color: #c084fc; font-weight: 700; text-decoration: none; margin-left: 6px; }
.pro-recruit-bar a:hover { color: #e9d5ff; }

/* ── CTA Inferior ──────────────────────────────────────── */
.cta-bottom {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: linear-gradient(145deg, #1e1e2a 0%, #14141c 100%);
    color: #fff;
}
.cta-bottom h2 { color: #fff; font-size: 2.2rem; margin-bottom: 0.8rem; }
.cta-bottom p { opacity: 0.8; font-size: 1rem; margin-bottom: 2rem; }
.cta-bottom-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-white {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #1e1e2a;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    font-weight: 700; font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    min-height: 56px;
}
.btn-cta-white:hover { background: #f0f0ff; transform: translateY(-3px); }
.btn-cta-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.3);
    font-weight: 600; font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    min-height: 56px;
}
.btn-cta-outline:hover { border-color: #fff; transform: translateY(-3px); }

.share-subtext {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}
/* ═══════════════════════════════════════════════════════════
   MODAL DE EXPLICACIÓN DETALLADA + INJURY + VARIANTS
   Usado en routine.php — oculto en impresión vía .no-print
   ═══════════════════════════════════════════════════════════ */

.btn-explain {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 12px;
    background: #f0f4ff;
    color: #4F46E5;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}
.btn-explain:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79,70,229,0.15);
}
.btn-explain svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Modal overlay */
.explain-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: overlayFadeIn 0.2s ease;
}
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal panel (bottom sheet en móvil) */
.explain-modal {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 0 env(safe-area-inset-bottom);
    animation: modalSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}
@keyframes modalSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (min-width: 680px) {
    .explain-modal-overlay {
        align-items: center;
        padding: 20px;
    }
    .explain-modal {
        border-radius: 16px;
        max-height: 85vh;
    }
}

/* Cabecera del modal */
.explain-modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 1;
}
.explain-modal-header .modal-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.explain-modal-header .modal-title-block { flex: 1; min-width: 0; }
.explain-modal-header h3 {
    margin: 0 0 2px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.explain-modal-header .modal-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}
.explain-modal-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #64748b;
    flex-shrink: 0;
    transition: background 0.15s;
}
.explain-modal-close:hover { background: #e2e8f0; color: #0f172a; }

/* Contenido del modal */
.explain-modal-body { padding: 16px 20px 24px; }

/* Badges de músculos */
.muscle-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.muscle-tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.muscle-tag.primary { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.muscle-tag.secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* Secciones del modal */
.explain-section { margin-bottom: 18px; }
.explain-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4F46E5;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.explain-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e7ff;
}

/* Lista de pasos */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.steps-list li {
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
}
.step-num-modal {
    background: #4F46E5;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* Lista de errores */
.errors-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.errors-list li {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
    padding: 6px 10px;
    background: #fef9ec;
    border-left: 3px solid #f59e0b;
    border-radius: 0 6px 6px 0;
}

/* Tips */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tips-list li {
    font-size: 0.85rem;
    color: #166534;
    line-height: 1.5;
    padding: 6px 10px;
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
    border-radius: 0 6px 6px 0;
}

/* ── Bloque Puntos clave para evitar lesiones ── */
.injury-accordion {
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f59e0b;
    background: #fffbeb;
}
.injury-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}
.injury-accordion-header:hover { background: #fef3c7; }
.injury-accordion-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.injury-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}
.injury-accordion-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #92400e;
}
.injury-count-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    background: rgba(245,158,11,0.2);
    color: #b45309;
    white-space: nowrap;
}
.injury-chevron {
    font-size: 0.75rem;
    color: #b45309;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.injury-chevron.open { transform: rotate(180deg); }
.injury-accordion-body {
    display: none;
    padding: 2px 14px 12px;
    border-top: 1px solid rgba(245,158,11,0.3);
}
.injury-accordion-body.open { display: block; }
.injury-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.injury-list li {
    font-size: 0.84rem;
    color: #78350f;
    line-height: 1.5;
    padding: 6px 10px 6px 12px;
    background: #fef9ec;
    border-left: 3px solid #f59e0b;
    border-radius: 0 6px 6px 0;
}

/* Variantes chips */
.variants-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-chip {
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
}

/* Badge dificultad */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}
.difficulty-badge.beginner { background: #dcfce7; color: #166534; }
.difficulty-badge.intermediate { background: #fef3c7; color: #92400e; }
.difficulty-badge.advanced { background: #fee2e2; color: #991b1b; }

/* Mensaje cuando no hay datos en el JSON */
.explain-not-found {
    text-align: center;
    padding: 24px 16px;
    color: #94a3b8;
}
.explain-not-found .not-found-icon { font-size: 2.5rem; margin-bottom: 8px; }
.explain-not-found p { font-size: 0.9rem; margin: 0; }

/* GIF animado en el modal */
.explain-gif-wrap {
    width: 100%;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.explain-gif {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Variantes clicables */
.variant-chip-clickable {
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    color: #5b21b6;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.variant-chip-clickable:hover {
    background: #c4b5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(91,33,182,0.18);
}
.variant-chip-arrow {
    font-size: 1rem;
    line-height: 1;
}
/* Botón volver a ejercicio principal */
.variant-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}
.variant-back-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
/* ── Banner contextual de entrenadores ──────────────────── */
.banner-entrenadores {
    margin: 1.5rem auto 0;
    max-width: 800px;
    display: none;
}
.banner-entrenadores-inner {
    background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 100%);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    text-align: center;
}
.banner-entrenadores h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.3rem;
}
.banner-entrenadores p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 1rem;
}
.banner-entrenadores .btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #4F46E5;
    color: #fff;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.2s;
}
.banner-entrenadores .btn-banner:hover {
    background: #4338ca;
}

/* ── Bloque "¿Por qué FitFinder?" ─────────────────────── */
.why-fitfinder-block {
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.why-fitfinder-inner {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 100%);
    border-radius: 16px;
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(79,70,229,0.07);
    border: 1px solid #e0e7ff;
}
.why-fitfinder-inner h2 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.why-fitfinder-inner .tagline {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.why-fitfinder-inner p {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.97rem;
}
.why-fitfinder-inner .why-fitfinder-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.why-fitfinder-inner .why-fitfinder-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #334155;
    font-size: 0.95rem;
}
.why-fitfinder-inner .why-fitfinder-list li .check-icon {
    color: #4F46E5;
    font-size: 1.1rem;
    flex-shrink: 0;
}
/* ── Banner contextual de nutricionistas ────────────────── */
.banner-nutricionistas {
    margin: 1.5rem auto 0;
    max-width: 800px;
    display: none;
}
.banner-nutricionistas-inner {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
    border: 1px solid #86efac;
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    text-align: center;
}
.banner-nutricionistas h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.3rem;
}
.banner-nutricionistas p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 1rem;
}
.banner-nutricionistas .btn-banner-nut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #fff;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.2s;
}
.banner-nutricionistas .btn-banner-nut:hover {
    background: #059669;
}
/* ── Bloque de preparación de recetas (nutrition.php) ──── */
.meal-prep-block {
    margin-top: 0.75rem;
}
.meal-prep-block .meal-prep-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-body);
    margin: 0 0 0.35rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.meal-prep-block ul.meal-ingredients {
    margin: 0;
    padding: 0;
    list-style: none;
}
.meal-prep-block ul.meal-ingredients li {
    font-size: 0.83rem;
    color: var(--text-muted);
    padding: 0.14rem 0 0.14rem var(--space-4);
    position: relative;
    line-height: 1.5;
}
.meal-prep-block ul.meal-ingredients li::before {
    content: '·';
    position: absolute;
    left: var(--space-1);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1em;
}
/* ═══════════════════════════════════════════════════════════
   GUÍAS DE EJERCICIOS — Estilos unificados
   ═══════════════════════════════════════════════════════════ */

/* ── Encabezado de guía ────────────────────────────────── */
.guia-header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    background: var(--bg-card);
}
.guia-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: var(--text-main);
    margin: 0 0 0.5rem;
}
.guia-header p {
    font-family: var(--font-body);
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Contenedor de guía individual ─────────────────────── */
.guia-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ── Enlace volver ─────────────────────────────────────── */
.guia-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.guia-volver:hover { color: var(--primary); }

/* ── Contenedor del GIF ───────────────────────────────── */
.guia-gif-container {
    text-align: center;
    margin: 2rem 0;
}
.guia-gif-container img {
    max-width: 100%;
    width: 360px;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

/* ── Contenido de la guía ─────────────────────────────── */
.guia-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-main);
    margin-top: 2rem;
}
.guia-content p, .guia-content li {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
}

/* ── Badge de guía ────────────────────────────────────── */
.guia-badge {
    display: inline-block;
    background: rgba(232, 93, 58, 0.1);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* ── Productos afiliados ──────────────────────────────── */
.guia-productos {
    background: var(--bg-subtle);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}
.guia-producto-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 16px;
}
.guia-producto-item img { width: 80px; height: 80px; object-fit: contain; }
.guia-producto-info h4 {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
}

/* ── Botón afiliado ───────────────────────────────────── */
.guia-btn-afiliado {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.guia-btn-afiliado:hover { background: var(--primary-dark); }

/* ── Enlace a la rutina ───────────────────────────────── */
.guia-rutina-link {
    display: block;
    text-align: center;
    margin: 2rem 0;
}

/* ── Relacionados ─────────────────────────────────────── */
.guia-relacionados {
    margin: 2.5rem 0;
}
.guia-relacionados h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 0 0 0.4rem;
    letter-spacing: 0.03em;
}
.guia-relacionados > p {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
}
.guia-relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.guia-relacionados-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.guia-relacionados-card:hover {
    border-color: rgba(232, 93, 58, 0.35);
    box-shadow: 0 4px 16px rgba(232, 93, 58, 0.08);
    transform: translateY(-2px);
    color: var(--primary-dark);
}
.guia-relacionados-card .guia-rel-arrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

/* ── Listado de guías ─────────────────────────────────── */
.guia-intro-text {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.guia-intro-text h2 {
    font-family: var(--font-display);
    color: var(--text-main);
    margin-top: 0;
}
.guia-intro-text p {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
}

/* Filtros */
.guia-filtros {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}
.guia-filtros label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.guia-filtro-select {
    padding: 0.6rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    background: var(--bg-card);
    color: var(--text-main);
    min-height: 44px;
}

/* Buscador */
.guia-buscador-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    max-width: 480px;
}
.guia-buscador-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.guia-buscador-input-wrap { position: relative; flex: 1; }
.guia-buscador-input {
    width: 100%;
    padding: 0.7rem 1.1rem;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-card);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    min-height: 44px;
    color: var(--text-main);
}
.guia-buscador-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 58, 0.1);
}
.guia-autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}
.guia-autocomplete-list.visible { display: block; }
.guia-autocomplete-item {
    padding: 0.65rem 1.1rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.guia-autocomplete-item:last-child { border-bottom: none; }
.guia-autocomplete-item:hover,
.guia-autocomplete-item.active {
    background: rgba(232, 93, 58, 0.05);
    color: var(--primary);
}
.guia-autocomplete-item .guia-item-badge {
    font-size: 0.7rem;
    background: rgba(232, 93, 58, 0.1);
    color: var(--primary-dark);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.guia-no-results-msg {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

/* ── Grid y cards de guías ────────────────────────────── */
.guia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.guia-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.guia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(232, 93, 58, 0.1);
}
.guia-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 0.5rem 0;
}
.guia-card h3 a {
    color: var(--text-main);
    text-decoration: none;
}
.guia-card p {
    color: var(--text-body);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Ajustes responsive para guías */
@media (max-width: 480px) {
    .guia-relacionados-grid { grid-template-columns: 1fr 1fr; }
    .guia-gif-container img { width: 100%; height: auto; }
}
/* ── Ajustes finales para unificar guías ── */
.guia-section-heading {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1rem;
}
.guia-section-heading h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0;
}
.guia-heading-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin-left: 1rem;
}

/* Enlace del generador dentro de intro-text */
.guia-intro-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
/* ═══════════════════════════════════════════════════════════
   SEO – Elementos específicos de seo.php
   ═══════════════════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────────────────── */
.seo-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.seo-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.seo-breadcrumb a:hover { color: var(--primary); }
.seo-breadcrumb .seo-sep { margin: 0 0.4rem; color: var(--text-dim); }
.seo-breadcrumb .seo-current { color: var(--text-main); font-weight: 500; }

/* ── Encabezado de la página SEO ───────────────────────── */
.seo-page-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.seo-page-header h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--text-main);
    margin: 0.5rem 0 0;
}

/* ── Etiquetas de tipo de contenido ────────────────────── */
.seo-type-label {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.seo-type-label.routine {
    background: rgba(232, 93, 58, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(232, 93, 58, 0.2);
}
.seo-type-label.nutrition {
    background: rgba(34, 160, 80, 0.1);
    color: #1E7E34;
    border: 1px solid rgba(34, 160, 80, 0.2);
}
.seo-type-label.guide {
    background: rgba(232, 93, 58, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(232, 93, 58, 0.2);
}

/* ── Bloque de introducción (rutinas/nutrición) ─────────── */
.seo-intro-block {
    background: var(--bg-subtle);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
}

/* ── Tarjeta principal (rutinas/nutrición) ──────────────── */
.seo-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}
.seo-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-top: 0;
    color: var(--text-main);
}

/* ── Lista estructurada (rutinas/nutrición) ─────────────── */
.seo-structure-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.seo-structure-list li {
    font-family: var(--font-body);
    color: var(--text-body);
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}
.seo-structure-list li:last-child { border-bottom: none; }
.seo-structure-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22A65E;
    font-weight: 700;
}

/* ── Botón CTA (reutiliza guia-btn-afiliado) ───────────── */
/* (ya existe, no se añade nada nuevo) */

/* ── Disclaimer médico ──────────────────────────────────── */
.seo-disclaimer-medical {
    background: #F0F4FF;
    border-left: 4px solid #3B82F6;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-body);
    font-family: var(--font-body);
}

/* ── Tips de seguridad ──────────────────────────────────── */
.seo-tips-seguridad {
    background: #FEF7E9;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #FF9F1C;
}
.seo-tips-seguridad-titulo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 0 0 1rem;
}
.seo-tips-seguridad ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.seo-tips-seguridad li {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
    padding: 0.25rem 0 0.25rem 1.5rem;
    position: relative;
}
.seo-tips-seguridad li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FF9F1C;
    font-weight: bold;
}

/* ── Sección de relacionados ────────────────────────────── */
.seo-related-section {
    background: var(--bg-subtle);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2.5rem;
}
.seo-related-section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-main);
    margin: 0 0 1rem;
}
.seo-related-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.seo-related-links a {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.seo-related-links a:hover {
    border-color: rgba(232, 93, 58, 0.35);
    box-shadow: 0 4px 16px rgba(232, 93, 58, 0.08);
    transform: translateY(-2px);
    color: var(--primary-dark);
}

/* ── Tabla dentro del contenido de la guía ──────────────── */
.guia-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    background: var(--bg-card);
}
.guia-content th {
    background: var(--bg-subtle);
    color: var(--text-main);
    font-weight: 700;
    text-align: left;
    padding: 1rem 1.2rem;
    border-bottom: 2px solid var(--border);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.85rem;
}
.guia-content td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-body);
    vertical-align: top;
}
.guia-content tr:last-child td { border-bottom: none; }
.guia-content tr:hover td { background-color: var(--bg-subtle); }

.guia-content table.ficha td:first-child {
    font-weight: 600;
    background-color: var(--bg-subtle);
    width: 30%;
}

@media (max-width: 600px) {
    .guia-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 12px;
    }
    .guia-content th, .guia-content td {
        padding: 0.75rem 1rem;
    }
}

/* ── Ajustes responsive para seo ────────────────────────── */
@media (max-width: 480px) {
    .seo-page-header h1 { font-size: 2rem; }
    .seo-related-links { grid-template-columns: 1fr 1fr; }
}
.guia-section-count {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 1rem;
}
/* Badges de tipo de contenido (blog-listado) */
.guia-badge.routine {
    background: rgba(232,93,58,0.1);
    color: var(--primary-dark);
}
.guia-badge.nutrition {
    background: rgba(34,160,80,0.1);
    color: #1E7E34;
}

/* Enlace "Leer más" en las tarjetas */
.guia-card-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
/* ═══════════════════════════════════════════════════════════
   PROFESSIONALS — Estilos unificados con prefijo pro-
   ═══════════════════════════════════════════════════════════ */

/* ── Grid y tarjetas ────────────────────────────────────── */
.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.pro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.pro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Planes */
.pro-card.plan-free { border: 1px solid #e2e8f0; }
.pro-card.plan-premium {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.pro-card.plan-premium:hover { box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2); }
.pro-card.plan-premium-plus {
    border: 2px solid #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.pro-card.plan-premium-plus:hover { box-shadow: 0 8px 28px rgba(124, 58, 237, 0.22); }

/* Imagen */
.pro-card-img-wrap {
    height: 180px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}
.pro-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.pro-card:hover .pro-card-img { transform: scale(1.05); }

/* Badges sobre la imagen */
.pro-card-mode-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}
.pro-card-plan-badge-premium {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.pro-card-plan-badge-plus {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

/* Cuerpo de la tarjeta */
.pro-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pro-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}
.pro-card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}
.pro-card-desc {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex: 1;
}
.pro-card-desc.free {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pro-card-desc.premium {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges de especialidad */
.pro-spec-badge {
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid;
}
.pro-spec-badge.entrenador {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #c4b5fd;
}
.pro-spec-badge.nutricionista {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}
.pro-spec-badge.fisioterapeuta {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

/* Badge disponibilidad */
.pro-badge-available {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.pro-badge-available.si { background: #dcfce7; color: #166534; }
.pro-badge-available.no { background: #fee2e2; color: #991b1b; }

/* Precio y rating */
.pro-card-price { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.pro-card-rating { font-size: 0.82rem; color: #f59e0b; margin-bottom: 6px; }

/* Botones de contacto */
.pro-btn-contact {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
    width: 100%;
    text-align: center;
    font-weight: 500;
    margin-bottom: 6px;
}
.pro-btn-contact:hover { background: #e2e8f0; }
.pro-btn-whatsapp {
    display: block;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
    transition: 0.2s;
}
.pro-btn-whatsapp:hover { background: #1ebe5d; color: #fff; }
.pro-btn-telefono {
    display: block;
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
    transition: 0.2s;
}
.pro-btn-telefono:hover { background: #4338ca; color: #fff; }
.pro-btn-perfil {
    display: block;
    background: var(--bg-card);
    border: 2px solid #4f46e5;
    color: #4f46e5;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
    transition: 0.2s;
}
.pro-btn-perfil:hover { background: #4f46e5; color: #fff; }
.pro-btns-extra {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.pro-btn-small {
    flex: 1;
    padding: 7px 6px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    color: #475569;
    background: #f8fafc;
    transition: 0.2s;
}
.pro-btn-small:hover { background: #e2e8f0; color: #0f172a; }

/* Filtros */
.pro-filters-wrap {
    max-width: 960px;
    margin: 0 auto 2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}
.pro-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (min-width: 560px) {
    .pro-filters-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
    .pro-filters-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
.pro-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pro-filter-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
}
.pro-filter-group select,
.pro-filter-group input {
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: var(--bg-card);
    box-sizing: border-box;
    font-size: 0.88rem;
    width: 100%;
    color: var(--text-main);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.pro-filter-group input {
    background-image: none;
    padding-right: 10px;
}
.pro-filter-group select:focus,
.pro-filter-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
@media (max-width: 559px) {
    .pro-filter-group.pro-filter-ciudad { grid-column: span 2; }
}
.pro-filters-btns {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.pro-btn-filtrar {
    flex: 1;
    padding: 10px 16px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.pro-btn-filtrar:hover { background: #4338ca; }
.pro-btn-limpiar {
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: var(--bg-card);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background 0.2s;
}
.pro-btn-limpiar:hover { background: #f1f5f9; }
.pro-filters-active-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
}

/* Resultados */
.pro-results-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Paginación */
.pro-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pro-pagination a,
.pro-pagination span {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    font-size: 0.9rem;
}
.pro-pagination a:hover { background: #f1f5f9; }
.pro-pagination .active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* Modal */
.pro-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.pro-modal-content {
    background: var(--bg-card);
    width: 92%;
    max-width: 460px;
    padding: 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.pro-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.pro-form-group {
    margin-bottom: 14px;
}
.pro-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.95em;
}
.pro-form-group input,
.pro-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}
.pro-btn-send {
    background: #4f46e5;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s;
}
.pro-btn-send:hover { background: #4338ca; }
.pro-btn-send:disabled { opacity: 0.7; cursor: not-allowed; }
#form-status {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9em;
    min-height: 20px;
}

/* Footer recruitment */
.pro-footer-recruit {
    margin-top: 0.75rem;
    font-weight: bold;
    font-size: 1.05rem;
    background: #e9f5e9;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
}
.pro-footer-recruit a {
    color: #2c7a2c;
    text-decoration: underline;
}

/* Ajuste responsive H1 */
@media (max-width: 640px) {
    header h1 { font-size: 6vw !important; line-height: 1.2 !important; }
}
/* Contenedor de especialidades */
.pro-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}
/* ═══════════════════════════════════════════════════════════
   PÁGINA SOBRE MÍ — Estilos unificados
   ═══════════════════════════════════════════════════════════ */

/* ── Envoltorio principal ──────────────────────────────── */
.profile-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--space-5) var(--space-16);
}

/* ── Hero ──────────────────────────────────────────────── */
.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-10) 0 var(--space-8);
    text-align: center;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    box-shadow: 0 4px 20px rgba(232, 93, 58, 0.3);
    flex-shrink: 0;
}
.profile-hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: var(--space-2);
}

/* ── Etiquetas ─────────────────────────────────────────── */
.profile-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-3);
}
.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Tarjeta de texto ───────────────────────────────────── */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-5);
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-8);
    right: var(--space-8);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0 0 var(--radius-full) var(--radius-full);
}
.profile-card p {
    font-size: 0.97rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: var(--space-5);
}
.profile-card p:last-child { margin-bottom: 0; }
.profile-card p em {
    color: var(--text-muted);
    font-style: italic;
}

/* ── Secciones internas ────────────────────────────────── */
.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-8);
    box-shadow: var(--shadow-xs);
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
}
.profile-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}
.profile-section-icon {
    width: 36px;
    height: 36px;
    background: rgba(232, 93, 58, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.profile-section h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
}
.profile-section p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}
.profile-section p:last-child { margin-bottom: 0; }

/* ── Lista de checks ───────────────────────────────────── */
.profile-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.profile-check-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: 0.93rem;
    color: var(--text-body);
    line-height: 1.55;
}
.profile-check-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── CTA de contacto ──────────────────────────────────── */
.profile-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
}
.profile-cta::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}
.profile-cta::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.profile-cta h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-2);
    position: relative;
}
.profile-cta p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: var(--space-5);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.profile-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: #fff;
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.profile-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #fff8f5;
}

/* ── Firma ─────────────────────────────────────────────── */
.profile-signature {
    text-align: right;
    padding: var(--space-5) 0 var(--space-2);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}
.profile-signature span { color: var(--primary); }

/* ── Nota afiliados ────────────────────────────────────── */
.profile-affiliate-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
    padding: var(--space-4);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    line-height: 1.6;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
    .profile-card,
    .profile-section {
        padding: var(--space-5);
    }
    .profile-card::before {
        left: var(--space-5);
        right: var(--space-5);
    }
    .profile-cta {
        padding: var(--space-6) var(--space-5);
    }
}
/* ═══════════════════════════════════════════════════════════
   CONTACTO — Estilos unificados (prefijo contact-)
   ═══════════════════════════════════════════════════════════ */

/* ── Envoltorio principal ──────────────────────────────── */
.contact-wrapper {
    max-width: 520px;
    margin: 2rem auto;
}

/* ── Tarjeta del formulario ────────────────────────────── */
.contact-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* ── Cabecera ───────────────────────────────────────────── */
.contact-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.contact-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.contact-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Grupos de formulario ──────────────────────────────── */
.contact-form-group {
    margin-bottom: 1.2rem;
}
.contact-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
}
.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--bg-input);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-input);
    color: var(--text-main);
    transition: var(--transition);
    font-family: inherit;
    box-sizing: border-box;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232, 93, 58, 0.1);
}
.contact-form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ── Texto de ayuda ────────────────────────────────────── */
.contact-form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ── Botón de envío ────────────────────────────────────── */
.contact-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(232, 93, 58, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 93, 58, 0.6);
}
.contact-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Mensajes de estado (alertas) ──────────────────────── */
.contact-alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: contactSlideIn 0.3s ease-out;
}
@keyframes contactSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.contact-alert-success {
    background: #dcfce7;
    color: #166534;
    border-color: #16a34a;
}
.contact-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #dc2626;
}

/* ── Campo honeypot (anti-spam) ────────────────────────── */
.contact-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Enlaces inferiores ─────────────────────────────────── */
.contact-links {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.contact-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}
.contact-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.contact-links span {
    color: var(--border);
}

/* ── Checkbox de privacidad ────────────────────────────── */
.contact-privacy-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    padding: 0.85rem 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-input);
    transition: var(--transition);
}
.contact-privacy-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 93, 58, 0.1);
}
.contact-privacy-group input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}
.contact-privacy-group label {
    font-weight: 400 !important;
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
    cursor: pointer;
    line-height: 1.5;
    margin-bottom: 0 !important;
}
.contact-privacy-group label a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}
.contact-privacy-group label a:hover {
    opacity: 0.8;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    .contact-header h1 {
        font-size: 1.3rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   PÁGINAS LEGALES — Estilos unificados (prefijo legal-)
   ═══════════════════════════════════════════════════════════ */

.legal-container {
    max-width: 850px;
    margin: 2rem auto;
    background: var(--bg-card);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border);
}
.legal-container h2 {
    font-family: var(--font-display);
    color: var(--text-main);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
}
.legal-container h3 {
    color: var(--text-body);
    font-size: 1.3rem;
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}
.legal-container p,
.legal-container li {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}
.legal-container ul {
    padding-left: 1.8rem;
    margin: 1rem 0;
}
.legal-container a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.legal-container a:hover {
    text-decoration: underline;
}

.legal-last-updated {
    margin-top: 2.5rem;
    font-style: italic;
    color: var(--text-dim);
    text-align: right;
    border-top: 1px dashed var(--border);
    padding-top: 1.5rem;
}

@media (max-width: 640px) {
    .legal-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    .legal-container h2 {
        font-size: 1.5rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   PARA PROFESIONALES — Estilos unificados (prefijo pro-page-)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────── */
.pro-page-hero {
    background: linear-gradient(135deg, #4F46E5 0%, #7c3aed 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.pro-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}
.pro-page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
}
.pro-page-hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}
.pro-page-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    position: relative;
}
.pro-page-hero-stat {
    text-align: center;
}
.pro-page-hero-stat-num {
    font-size: 2.2rem;
    font-weight: 800;
}
.pro-page-hero-stat-lbl {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ── Banner de plazas ───────────────────────────────────── */
.pro-page-plazas-banner {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    padding: 1.2rem 1.5rem;
    text-align: center;
}
.pro-page-plazas-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.pro-page-plazas-city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 0.5rem;
}
.pro-page-plazas-city-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.78rem;
}
.pro-page-plazas-full-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #94a3b8;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}
.pro-page-plazas-full-banner strong {
    color: #e2e8f0;
}

/* ── Secciones ──────────────────────────────────────────── */
.pro-page-section {
    padding: 4rem 1.5rem;
}
.pro-page-section-alt {
    background: #f8fafc;
}
.pro-page-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.pro-page-section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* ── Pasos ─────────────────────────────────────────────── */
.pro-page-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 860px;
    margin: 0 auto;
}
.pro-page-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
}
.pro-page-step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.pro-page-step-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.pro-page-step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Planes ─────────────────────────────────────────────── */
.pro-page-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}
.pro-page-plan-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pro-page-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.pro-page-plan-card.featured {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}
.pro-page-plan-card.top {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}
.pro-page-plan-badge-wrap {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.pro-page-plan-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.pro-page-plan-badge.popular {
    background: #f59e0b;
    color: #fff;
}
.pro-page-plan-badge.top-badge {
    background: linear-gradient(135deg, #7c3aed, #4F46E5);
    color: #fff;
}
.pro-page-plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}
.pro-page-plan-price {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.pro-page-plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}
.pro-page-plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 40px;
}
.pro-page-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.pro-page-plan-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
}
.pro-page-plan-features li:last-child {
    border-bottom: none;
}
.pro-page-plan-features li .pro-page-plan-icon {
    flex-shrink: 0;
}
.pro-page-btn-plan {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}
.pro-page-btn-plan.free-btn {
    background: #f1f5f9;
    color: #475569;
}
.pro-page-btn-plan.free-btn:hover {
    background: #e2e8f0;
}
.pro-page-btn-plan.premium-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}
.pro-page-btn-plan.premium-btn:hover {
    opacity: 0.9;
}
.pro-page-btn-plan.plus-btn {
    background: linear-gradient(135deg, #7c3aed, #4F46E5);
    color: #fff;
}
.pro-page-btn-plan.plus-btn:hover {
    opacity: 0.9;
}

/* ── Tabla comparativa ─────────────────────────────────── */
.pro-page-compare-wrap {
    max-width: 760px;
    margin: 0 auto;
    overflow-x: auto;
}
.pro-page-compare-table {
    width: 100%;
    border-collapse: collapse;
}
.pro-page-compare-table th {
    padding: 12px 16px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
}
.pro-page-compare-table th:first-child {
    text-align: left;
}
.pro-page-compare-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    color: var(--text-body);
    text-align: center;
}
.pro-page-compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-main);
}
.pro-page-compare-table tr:hover td {
    background: var(--bg-subtle);
}
.pro-page-th-free {
    background: #f1f5f9;
    border-radius: 8px 8px 0 0;
    color: #475569;
}
.pro-page-th-prem {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    border-radius: 8px 8px 0 0;
}
.pro-page-th-plus {
    background: linear-gradient(135deg, #7c3aed, #4F46E5);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

/* ── FAQ ───────────────────────────────────────────────── */
.pro-page-faq-wrap {
    max-width: 700px;
    margin: 0 auto;
}
.pro-page-faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.pro-page-faq-q {
    width: 100%;
    background: var(--bg-card);
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}
.pro-page-faq-q:hover {
    background: var(--bg-subtle);
}
.pro-page-faq-a {
    display: none;
    padding: 0 20px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.pro-page-faq-a.open {
    display: block;
}

/* ── Formulario de alta ────────────────────────────────── */
.pro-page-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
}
.pro-page-form-group {
    margin-bottom: 1rem;
}
.pro-page-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.pro-page-form-group input,
.pro-page-form-group select,
.pro-page-form-group textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg-input);
    color: var(--text-main);
}
.pro-page-form-group textarea {
    resize: vertical;
}
.pro-page-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4F46E5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.pro-page-btn-submit:hover {
    opacity: 0.9;
}
.pro-page-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.pro-page-form-status {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    min-height: 20px;
}

/* ── CTA final ─────────────────────────────────────────── */
.pro-page-cta-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    text-align: center;
    padding: 4rem 1.5rem;
}
.pro-page-cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.pro-page-cta-banner p {
    color: #94a3b8;
    margin-bottom: 2rem;
}
.pro-page-btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.pro-page-btn-cta:hover {
    opacity: 0.9;
    color: #fff;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
    .pro-page-hero {
        padding: 3rem 1rem 2.5rem;
    }
    .pro-page-plan-card {
        padding: 2rem 1rem;
    }
    .pro-page-plazas-inner {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* ═══════════════════════════════════════════════════════════
   PROFESSIONAL PROFILE — Estilos unificados (prefijo pro-profile-)
   ═══════════════════════════════════════════════════════════ */

/* ── Envoltorio ────────────────────────────────────────── */
.pro-profile-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ── Cabecera ──────────────────────────────────────────── */
.pro-profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.pro-profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border);
}
.pro-profile-header-info {
    flex: 1;
    min-width: 200px;
}
.pro-profile-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
    color: var(--text-main);
}
.pro-profile-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

/* Badges de plan */
.pro-profile-plan-badge-premium {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.pro-profile-plan-badge-plus {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* Especialidades */
.pro-profile-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.8rem;
}
.pro-profile-spec-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.pro-profile-spec-badge.entrenador {
    background: #ede9fe;
    color: #5b21b6;
}
.pro-profile-spec-badge.nutricionista {
    background: #d1fae5;
    color: #065f46;
}
.pro-profile-spec-badge.fisioterapeuta {
    background: #fef3c7;
    color: #92400e;
}

/* Disponibilidad */
.pro-profile-available-yes {
    background: #dcfce7;
    color: #166534;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.pro-profile-available-no {
    background: #fee2e2;
    color: #991b1b;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── Botones de contacto ───────────────────────────────── */
.pro-profile-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}
.pro-profile-btn-wa {
    background: #25d366;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.pro-profile-btn-wa:hover { opacity: 0.9; color: #fff; }
.pro-profile-btn-tel {
    background: #4f46e5;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.pro-profile-btn-tel:hover { opacity: 0.9; color: #fff; }
.pro-profile-btn-msg {
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.pro-profile-btn-msg:hover { background: var(--bg-subtle); }
.pro-profile-btn-web {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: #4f46e5;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.pro-profile-btn-web:hover { background: var(--bg-subtle); }
.pro-profile-btn-share {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.pro-profile-btn-share:hover { background: var(--bg-subtle); }

/* ── Secciones ──────────────────────────────────────────── */
.pro-profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
}
.pro-profile-section h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}
.pro-profile-section p {
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

/* ── TinyMCE contenido ─────────────────────────────────── */
.pro-profile-tinymce-content {
    color: var(--text-body);
    line-height: 1.7;
}
.pro-profile-tinymce-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 0.5rem 0;
}
.pro-profile-tinymce-content h1,
.pro-profile-tinymce-content h2,
.pro-profile-tinymce-content h3 {
    color: var(--text-main);
    margin: 1rem 0 0.5rem;
}
.pro-profile-tinymce-content ul,
.pro-profile-tinymce-content ol {
    padding-left: 1.5rem;
}
.pro-profile-tinymce-content table {
    width: 100%;
    border-collapse: collapse;
}
.pro-profile-tinymce-content td,
.pro-profile-tinymce-content th {
    padding: 8px;
    border: 1px solid var(--border);
}

/* ── Galería ───────────────────────────────────────────── */
.pro-profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.pro-profile-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.pro-profile-gallery img:hover {
    transform: scale(1.03);
}

/* ── Vídeo ─────────────────────────────────────────────── */
.pro-profile-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.pro-profile-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* ── Valoraciones ──────────────────────────────────────── */
.pro-profile-review-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
}
.pro-profile-review-item:last-child {
    border-bottom: none;
}
.pro-profile-review-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 4px;
}
.pro-profile-review-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}
.pro-profile-review-date {
    color: var(--text-dim);
    font-size: 0.8rem;
}
.pro-profile-review-comment {
    color: var(--text-body);
    margin-top: 6px;
    font-size: 0.92rem;
}

/* ── Formulario de valoración ──────────────────────────── */
.pro-profile-review-form input,
.pro-profile-review-form textarea,
.pro-profile-review-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    margin-bottom: 10px;
    background: var(--bg-input);
    color: var(--text-main);
}
.pro-profile-review-form select {
    background: var(--bg-card);
}
.pro-profile-btn-review-submit {
    background: #4f46e5;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: opacity 0.2s;
}
.pro-profile-btn-review-submit:hover {
    opacity: 0.9;
}

/* ── Modal de contacto ─────────────────────────────────── */
.pro-profile-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.pro-profile-modal-content {
    background: var(--bg-card);
    width: 92%;
    max-width: 460px;
    padding: 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--shadow-xl);
}
.pro-profile-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.pro-profile-form-group {
    margin-bottom: 14px;
}
.pro-profile-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.95em;
    color: var(--text-main);
}
.pro-profile-form-group input,
.pro-profile-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-main);
}
.pro-profile-btn-send {
    background: #4f46e5;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: opacity 0.2s;
}
.pro-profile-btn-send:hover {
    opacity: 0.9;
}

/* ── Enlace volver ─────────────────────────────────────── */
.pro-profile-back-link {
    text-align: center;
    margin-top: 2rem;
}
.pro-profile-back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 600px) {
    .pro-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pro-profile-contact-buttons {
        justify-content: center;
    }
}
/* ═══════════════════════════════════════════════════════════
   BUSCADOR DE GUÍAS (seo-data.php) — Estilos unificados
   ═══════════════════════════════════════════════════════════ */

.buscador-wrap-guias {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    max-width: 480px;
    width: 100%;
}
.buscador-icon-guias {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}
.buscador-input-wrap-guias {
    position: relative;
    flex: 1;
}
.buscador-input-guias {
    width: 100%;
    padding: 0.7rem 1.1rem;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-card);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    min-height: 44px;
    color: var(--text-main);
}
.buscador-input-guias:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 58, 0.1);
}
.autocomplete-list-guias {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}
.autocomplete-list-guias.visible {
    display: block;
}
.autocomplete-item-guias {
    padding: 0.65rem 1.1rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.autocomplete-item-guias:last-child {
    border-bottom: none;
}
.autocomplete-item-guias:hover,
.autocomplete-item-guias.active {
    background: rgba(232, 93, 58, 0.05);
    color: var(--primary);
}
.autocomplete-item-guias .item-badge-guias {
    font-size: 0.7rem;
    background: rgba(232, 93, 58, 0.1);
    color: var(--primary-dark);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.no-results-msg-guias {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-body);
}
/* ── Responsive (general) ────────────────────────────────── */
@media (max-width: 680px) {
  header {
    padding: var(--space-10) var(--space-5) var(--space-8);
  }

  header h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
  }

  .container {
    padding: var(--space-5) var(--space-4) var(--space-12);
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .day-tabs { gap: var(--space-2); }
  .day-tab { font-size: 0.78rem; padding: 0.4rem 0.75rem; }

  .exercise-header h3,
  .meal-header h3 { font-size: 0.93rem; }

  .daily-totals { gap: var(--space-3); }

  .float-contact {
    display: flex;
    bottom: 80px;
  }

  .links { gap: var(--space-1) var(--space-4); }
  .links a { font-size: 0.8rem; }

  .routine-actions,
  .nutrition-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .routine-actions .btn-secondary,
  .routine-actions .btn-outline,
  .nutrition-actions .btn-secondary,
  .nutrition-actions .btn-outline {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* SOLUCIÓN FUERTE PARA H1 EN MÓVILES */
@media (max-width: 640px) {
    body header h1 {
        font-size: 6vw !important;
        line-height: 1.2 !important;
        margin: 0.5rem 0 !important;
        padding: 0 0.25rem !important;
        text-align: center !important;
    }
    body header h1 span {
        font-size: inherit;
        display: inline;
    }
}
/* ═══════════════════════════════════════════════════════════
   FITFINDER · Dark Mode + Mobile Enhancement Layer
   CAPA 1: automático · CAPA 2: manual con botón 🌙
   ═══════════════════════════════════════════════════════════ */

/* ── Botón toggle ───────────────────────────────────────── */
.theme-toggle {
  position:fixed; top:16px; right:16px; z-index:99999;
  background:var(--bg-card); border:1.5px solid var(--border);
  border-radius:var(--radius-full); padding:7px 14px; cursor:pointer;
  font-family:var(--font-body); font-size:0.8rem; font-weight:600;
  color:var(--text-muted); display:flex; align-items:center; gap:6px;
  transition:all 0.2s; box-shadow:var(--shadow-sm);
  -webkit-tap-highlight-color:transparent; user-select:none;
}
.theme-toggle:hover { border-color:var(--primary); color:var(--primary); }
.theme-toggle .icon-sun  { display:none; }
.theme-toggle .icon-moon { display:inline; }
body.dark .theme-toggle .icon-sun  { display:inline; }
body.dark .theme-toggle .icon-moon { display:none; }
@media (prefers-color-scheme:dark) {
  .theme-toggle:not(body.light .theme-toggle) .icon-sun  { display:inline; }
  .theme-toggle:not(body.light .theme-toggle) .icon-moon { display:none; }
}
@media (max-width:480px) {
  .theme-toggle { top:calc(12px + env(safe-area-inset-top)); right:calc(12px + env(safe-area-inset-right)); padding:6px 12px; font-size:0.75rem; }
  .theme-toggle .toggle-label { display:none; }
}

/* ══════════════════════════════════════════════════════════
   REGLAS COMPARTIDAS — aplicadas en CAPA 1 y CAPA 2
   Para evitar repetición se usa un comentario de referencia.
   Los selectores de CAPA 1 usan body:not(.light)
   Los de CAPA 2 usan body.dark
══════════════════════════════════════════════════════════ */

/* ── CAPA 1: automático ─────────────────────────────────── */
@media (prefers-color-scheme:dark) {
  body:not(.light) {
    --bg-base:#0f0f0f; --bg-surface:#1a1a1a; --bg-card:#1a1a1a;
    --bg-subtle:#222222; --bg-input:#222222; --bg-input-focus:#2a2a2a; --bg-muted:#2a2a2a;
    --text-main:#f4f4f5; --text-body:#cccccc; --text-muted:#aaaaaa; --text-dim:#777777;
    --border:#333333; --border-subtle:#2a2a2a;
    --shadow-xs:0 1px 3px rgba(0,0,0,0.3); --shadow-sm:0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:0 4px 16px rgba(0,0,0,0.4); --shadow-lg:0 12px 32px rgba(0,0,0,0.45);
    --shadow-glow:0 0 0 3px rgba(232,93,58,0.25);
    background-color:#0f0f0f !important; color:#cccccc;
  }
  body:not(.light) header { background:#1a1a1a; border-bottom-color:#333; }
  body:not(.light) header h1 { color:#f4f4f5; }
  body:not(.light) .subtitle { color:#aaaaaa; }
  body:not(.light) .subtitle strong { color:#cccccc; }
  body:not(.light) h2,body:not(.light) h3,body:not(.light) h4 { color:#f4f4f5; }
  body:not(.light) p { color:#cccccc; }
  body:not(.light) li { color:#cccccc; }
  body:not(.light) select {
    background:#222222; color:#f4f4f5; border-color:#333;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaaaaa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 14px center;
    -webkit-appearance:none; appearance:none;
  }
  body:not(.light) select option { background:#222222; color:#f4f4f5; }
  body:not(.light) input[type="number"],body:not(.light) input[type="text"]:not(.hp-field),
  body:not(.light) input[type="email"],body:not(.light) textarea { background:#222222; color:#f4f4f5; border-color:#333; }
  body:not(.light) .checkbox-label { background:#222222; border-color:#333; color:#aaaaaa; }
  body:not(.light) .checkbox-label:hover { border-color:var(--primary); color:#f4f4f5; background:rgba(232,93,58,0.08); }
  body:not(.light) .checkbox-label:has(input:checked) { border-color:var(--primary); background:rgba(232,93,58,0.12); color:#f4f4f5; }
  body:not(.light) .form-label>span:first-child { color:#aaaaaa; }
  body:not(.light) .form-hint { color:#777; }
  body:not(.light) .routine-form,body:not(.light) .nutrition-form { background:#1a1a1a; border-color:#333; }
  body:not(.light) .routine-card,body:not(.light) .nutrition-card { background:#1a1a1a; border-color:#333; }
  body:not(.light) .routine-header h2,body:not(.light) .nutrition-header h2 { color:#f4f4f5; }
  body:not(.light) .routine-header,body:not(.light) .nutrition-header { border-bottom-color:#333; }
  body:not(.light) .routine-meta,body:not(.light) .nutrition-meta { color:#777; }
  body:not(.light) .exercise-item,body:not(.light) .meal-item { background:#222222; border-color:#333; }
  body:not(.light) .exercise-header h3,body:not(.light) .meal-header h3 { color:#f4f4f5; }
  body:not(.light) .exercise-description,body:not(.light) .meal-description { color:#aaaaaa; }
  body:not(.light) .exercise-details span { background:#2a2a2a; border-color:#333; color:#cccccc; }
  body:not(.light) .exercise-tips li { color:#aaaaaa; }
  body:not(.light) .exercise-equipment { color:#777; }
  body:not(.light) .meal-macros span { background:#2a2a2a; border-color:#333; color:#cccccc; }
  body:not(.light) .meal-ingredients li { color:#aaaaaa; }
  body:not(.light) .daily-totals { background:#222222; border-color:#333; }
  body:not(.light) .daily-totals span { color:#777; }
  body:not(.light) .day-tab { background:#222222; border-color:#333; color:#aaaaaa; }
  body:not(.light) .day-tab:hover { border-color:var(--primary); color:var(--primary); }
  body:not(.light) .day-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
  body:not(.light) .faq-item { background:#1e1e1e; border-color:#333; }
  body:not(.light) .faq-item[open] { border-color:rgba(232,93,58,0.35); }
  body:not(.light) .faq-question { background:#1e1e1e; color:#f4f4f5 !important; }
  body:not(.light) .faq-question:hover { background:rgba(232,93,58,0.06); color:var(--primary) !important; }
  body:not(.light) .faq-answer { background:#222222; color:#aaaaaa; border-top-color:#333; }
  body:not(.light) .faq-answer a { color:var(--primary); }
  body:not(.light) .faq-section h2 { color:#f4f4f5; }
  body:not(.light) .card { background:#1e1e1e !important; border-color:#333 !important; }
  body:not(.light) .card h3 { color:#f4f4f5; }
  body:not(.light) .card h3 a { color:#f4f4f5 !important; }
  body:not(.light) .card h3 a:hover { color:var(--primary) !important; }
  body:not(.light) .card p { color:#aaaaaa !important; }
  body:not(.light) .professional-card { background:#1e1e1e; border-color:#333; }
  body:not(.light) .disclaimer { background:#1e1e1e; border-color:#333; color:#777; }
  body:not(.light) footer { background:#1a1a1a; border-top-color:#333; color:#777; }
  body:not(.light) footer a { color:#aaaaaa; }
  body:not(.light) footer a:hover { color:var(--primary); }
  body:not(.light) .links { border-top-color:#333; }
  body:not(.light) .links a { color:#aaaaaa; }
  body:not(.light) .links span { color:#333; }
  body:not(.light) .share-btn { background:#222222; border-color:#333; color:#aaaaaa; }
  body:not(.light) .error-card { background:rgba(220,38,38,0.1); border-color:rgba(220,38,38,0.3); color:#fca5a5; }
  body:not(.light) .alert-success { background:rgba(5,150,105,0.12); color:#6ee7b7; }
  body:not(.light) .alert-error { background:rgba(220,38,38,0.1); color:#fca5a5; }
  body:not(.light) .loader { border-color:#333; border-top-color:var(--primary); }
  body:not(.light) .badge-cardio   { color:#38bdf8; border-color:rgba(56,189,248,0.3);  background:rgba(56,189,248,0.1); }
  body:not(.light) .badge-warmup   { color:#34d399; border-color:rgba(52,211,153,0.3);  background:rgba(52,211,153,0.1); }
  body:not(.light) .badge-cooling  { color:#7dd3fc; border-color:rgba(125,211,252,0.3); background:rgba(125,211,252,0.1); }
  body:not(.light) .badge-core     { color:#a78bfa; border-color:rgba(167,139,250,0.3); background:rgba(167,139,250,0.1); }
  body:not(.light) .badge-mobility { color:#fbbf24; border-color:rgba(251,191,36,0.3);  background:rgba(251,191,36,0.1); }
  /* Modal routine.php */
  body:not(.light) .explain-modal { background:#1a1a1a !important; }
  body:not(.light) .explain-modal-header { background:#1a1a1a !important; border-bottom-color:#333 !important; }
  body:not(.light) .explain-modal-header h3 { color:#f4f4f5 !important; }
  body:not(.light) .explain-modal-header .modal-subtitle { color:#aaaaaa !important; }
  body:not(.light) .explain-modal-close { background:#2a2a2a !important; color:#aaaaaa !important; }
  body:not(.light) .explain-modal-close:hover { background:#333 !important; color:#f4f4f5 !important; }
  body:not(.light) .explain-section-title { color:#818cf8 !important; }
  body:not(.light) .explain-section-title::after { background:#333 !important; }
  body:not(.light) .steps-list li { color:#f4f4f5 !important; }
  body:not(.light) .errors-list li { background:rgba(245,158,11,0.08) !important; border-left-color:#f59e0b !important; color:#fcd34d !important; }
  body:not(.light) .tips-list li { background:rgba(34,197,94,0.08) !important; border-left-color:#22c55e !important; color:#86efac !important; }
  body:not(.light) .muscle-tag.primary { background:rgba(139,92,246,0.15) !important; color:#c4b5fd !important; border-color:rgba(196,181,253,0.3) !important; }
  body:not(.light) .muscle-tag.secondary { background:#2a2a2a !important; color:#aaaaaa !important; border-color:#333 !important; }
  body:not(.light) .variant-chip { background:#2a2a2a !important; border-color:#333 !important; color:#cccccc !important; }
  body:not(.light) .difficulty-badge.beginner { background:rgba(34,197,94,0.12) !important; color:#86efac !important; }
  body:not(.light) .difficulty-badge.intermediate { background:rgba(245,158,11,0.12) !important; color:#fcd34d !important; }
  body:not(.light) .difficulty-badge.advanced { background:rgba(239,68,68,0.12) !important; color:#fca5a5 !important; }
  /* index.php */
  body:not(.light) .step-card { background:#1e1e1e !important; border-color:#333 !important; }
  body:not(.light) .step-card h3 { color:#f4f4f5 !important; }
  body:not(.light) .step-card p { color:#aaaaaa !important; }
  body:not(.light) .home-hero h1 { color:#f4f4f5; }
  body:not(.light) .home-hero h1 span { color:#818cf8; }
  body:not(.light) .cta-card.secondary { background:rgba(34,197,94,0.1) !important; color:#86efac !important; }
  body:not(.light) .why-block { background:#1a1a1a !important; border-color:#333 !important; }
  body:not(.light) .why-block h2 { color:#f4f4f5 !important; }
  body:not(.light) .why-block .tagline { color:#aaaaaa !important; }
  body:not(.light) .why-block p { color:#cccccc !important; }
  body:not(.light) .why-list li { color:#cccccc !important; }
  body:not(.light) .guide-card { background:#1e1e1e !important; border-color:#333 !important; }
  body:not(.light) .guide-card .guide-text { color:#cccccc !important; }
  body:not(.light) .guide-card .guide-tag { color:#818cf8 !important; }
  body:not(.light) .pro-mini-card { background:#1e1e1e !important; border-color:#333 !important; }
  body:not(.light) .pro-mini-name { color:#f4f4f5 !important; }
  body:not(.light) .pro-mini-city { color:#aaaaaa !important; }
  body:not(.light) .pro-mini-spec { background:#2a2a2a !important; color:#cccccc !important; }
  /* professionals.php */
  body:not(.light) .card-badge,body:not(.light) .card-mode-badge { background:rgba(30,30,30,0.95) !important; color:#f4f4f5 !important; }
  body:not(.light) .card-desc { color:#aaaaaa !important; }
  body:not(.light) .card-price { color:#aaaaaa !important; }
  body:not(.light) .btn-contact { background:#2a2a2a !important; border-color:#333 !important; color:#cccccc !important; }
  body:not(.light) .btn-perfil { background:#1e1e1e !important; border-color:#818cf8 !important; color:#818cf8 !important; }
  body:not(.light) .btn-small { background:#2a2a2a !important; border-color:#333 !important; color:#aaaaaa !important; }
  body:not(.light) .modal-content { background:#1a1a1a !important; }
  body:not(.light) .modal-close { color:#aaaaaa !important; }
  body:not(.light) .results-count { color:#aaaaaa !important; }
  body:not(.light) .badge-available.si { background:rgba(34,197,94,0.12) !important; color:#86efac !important; }
  body:not(.light) .badge-available.no { background:rgba(239,68,68,0.12) !important; color:#fca5a5 !important; }
  /* professional_profile.php */
  body:not(.light) .profile-section { background:#1a1a1a !important; border-color:#333 !important; }
  body:not(.light) .profile-section h2 { color:#f4f4f5 !important; border-bottom-color:#333 !important; }
  body:not(.light) .profile-section p { color:#aaaaaa !important; }
  body:not(.light) .profile-meta { color:#aaaaaa !important; }
  body:not(.light) .tinymce-content { color:#cccccc !important; }
  body:not(.light) .tinymce-content h1,body:not(.light) .tinymce-content h2,body:not(.light) .tinymce-content h3 { color:#f4f4f5 !important; }
  body:not(.light) .review-comment { color:#aaaaaa !important; }
  body:not(.light) .review-date { color:#777 !important; }
  body:not(.light) .btn-msg { background:#2a2a2a !important; border-color:#333 !important; color:#f4f4f5 !important; }
  body:not(.light) .btn-web { background:#1e1e1e !important; border-color:#333 !important; color:#818cf8 !important; }
  body:not(.light) .btn-share { background:#1e1e1e !important; border-color:#333 !important; color:#aaaaaa !important; }
  /* guias-ejercicios.php — intro-text y cards */
  body:not(.light) .intro-text { background:#1a1a1a !important; }
  body:not(.light) .intro-text h2 { color:#f4f4f5 !important; }
  body:not(.light) .intro-text p { color:#cccccc !important; }
  body:not(.light) .intro-text li { color:#cccccc !important; }
  body:not(.light) .intro-text strong { color:#f4f4f5 !important; }
  body:not(.light) .intro-text a { color:#FF6B35 !important; }
  body:not(.light) .blog-header { background:#1a1a1a !important; }
  body:not(.light) .blog-header h1 { color:#f4f4f5 !important; }
  body:not(.light) .blog-header p { color:#aaaaaa !important; }
  body:not(.light) .filtro-select { background:#222222 !important; border-color:#333 !important; color:#f4f4f5 !important; }
  body:not(.light) .volver { color:#aaaaaa !important; }
  body:not(.light) .volver:hover { color:var(--primary) !important; }
  /* guias individuales (seo.php) */
  body:not(.light) .breadcrumb { color:#777 !important; }
  body:not(.light) .breadcrumb a { color:#777 !important; }
  body:not(.light) .breadcrumb a:hover { color:#FF4D00 !important; }
  body:not(.light) .breadcrumb .sep { color:#444 !important; }
  body:not(.light) .breadcrumb .current { color:#aaaaaa !important; }
  body:not(.light) .seo-page-header { border-bottom-color:#333 !important; }
  body:not(.light) .seo-page-header h1 { color:#f4f4f5 !important; }
  body:not(.light) .type-label.routine { background:rgba(255,77,0,0.15) !important; color:#FF6B35 !important; border-color:rgba(255,77,0,0.3) !important; }
  body:not(.light) .type-label.nutrition { background:rgba(34,160,80,0.15) !important; color:#4ade80 !important; border-color:rgba(34,160,80,0.3) !important; }
  body:not(.light) .type-label.guide { background:rgba(255,77,0,0.15) !important; color:#FF6B35 !important; border-color:rgba(255,77,0,0.3) !important; }
  body:not(.light) .intro-block { background:rgba(255,77,0,0.06) !important; border-color:rgba(255,77,0,0.2) !important; color:#cccccc !important; }
  body:not(.light) .seo-card { background:#1a1a1a !important; border-color:#333 !important; }
  body:not(.light) .seo-card h2 { color:#f4f4f5 !important; }
  body:not(.light) .structure-list li { background:#222222 !important; border-color:#333 !important; color:#cccccc !important; }
  body:not(.light) .guide-content { background:#1a1a1a !important; border-color:#333 !important; color:#cccccc !important; }
  body:not(.light) .guide-content h2,body:not(.light) .guide-content h3 { color:#f4f4f5 !important; }
  body:not(.light) .guide-content p { color:#cccccc !important; }
  body:not(.light) .guide-content li { color:#cccccc !important; }
  body:not(.light) .guide-content strong { color:#f4f4f5 !important; }
  body:not(.light) .guide-content a { color:#FF6B35 !important; }
  body:not(.light) .guide-content .faq { border-top-color:#333 !important; }
  body:not(.light) .disclaimer-medical { background:rgba(255,159,28,0.08) !important; border-left-color:#FF9F1C !important; color:#cccccc !important; }
  body:not(.light) .disclaimer-medical strong { color:#FF9F1C !important; }
  body:not(.light) .related-section { background:#1a1a1a !important; border-color:#333 !important; }
  body:not(.light) .related-section h2 { color:#777 !important; }
  body:not(.light) .related-links a { background:#222222 !important; border-color:#333 !important; color:#cccccc !important; }
  body:not(.light) .related-links a:hover { border-color:rgba(255,77,0,0.3) !important; background:rgba(255,77,0,0.06) !important; color:#FF4D00 !important; }
  body:not(.light) .seo-nav { border-top-color:#333 !important; }
  body:not(.light) .seo-nav a { color:#aaaaaa !important; }
  body:not(.light) .seo-nav a:hover { color:#FF4D00 !important; }
  body:not(.light) .seo-nav span { color:#444 !important; }
  body:not(.light) .productos-afiliados { background:#1e1e1e !important; }
  body:not(.light) .producto-item { background:#2a2a2a !important; }
  body:not(.light) .producto-item h4 { color:#f4f4f5 !important; }
  body:not(.light) .relacionados { background:#1e1e1e !important; }
  body:not(.light) .relacionados h3 { color:#f4f4f5 !important; }
  body:not(.light) .relacionados li a { background:#2a2a2a !important; border-color:#333 !important; color:#cccccc !important; }
  /* Fondos blancos/claros inline — lista completa */
  body:not(.light) [style*="background:#fff"],body:not(.light) [style*="background: #fff"],
  body:not(.light) [style*="background:white"],body:not(.light) [style*="background: white"],
  body:not(.light) [style*="background:#f8fafc"],body:not(.light) [style*="background: #f8fafc"],
  body:not(.light) [style*="background:#f9f9f9"],body:not(.light) [style*="background: #f9f9f9"],
  body:not(.light) [style*="background:#f1f5f9"],body:not(.light) [style*="background: #f1f5f9"],
  body:not(.light) [style*="background:#FAF8F5"],body:not(.light) [style*="background: #FAF8F5"],
  body:not(.light) [style*="background:#FAF8F6"],body:not(.light) [style*="background: #FAF8F6"],
  body:not(.light) [style*="background:#F0EDE8"],body:not(.light) [style*="background: #F0EDE8"],
  body:not(.light) [style*="background:#fef7e9"],body:not(.light) [style*="background: #fef7e9"],
  body:not(.light) [style*="background:#f0f4ff"],body:not(.light) [style*="background: #f0f4ff"] { background:#1e1e1e !important; }
  /* Textos oscuros inline */
  body:not(.light) [style*="color:#0f172a"],body:not(.light) [style*="color: #0f172a"] { color:#f4f4f5 !important; }
  body:not(.light) [style*="color:#1A1512"],body:not(.light) [style*="color: #1A1512"] { color:#f4f4f5 !important; }
  body:not(.light) [style*="color:#1e293b"],body:not(.light) [style*="color: #1e293b"] { color:#f4f4f5 !important; }
  body:not(.light) [style*="color:#4A3828"],body:not(.light) [style*="color: #4A3828"] { color:#cccccc !important; }
  body:not(.light) [style*="color:#334155"],body:not(.light) [style*="color: #334155"] { color:#cccccc !important; }
  body:not(.light) [style*="color:#3A302A"],body:not(.light) [style*="color: #3A302A"] { color:#cccccc !important; }
  body:not(.light) [style*="color:#475569"],body:not(.light) [style*="color: #475569"] { color:#aaaaaa !important; }
  body:not(.light) [style*="color:#64748b"],body:not(.light) [style*="color: #64748b"] { color:#aaaaaa !important; }
  body:not(.light) [style*="color:#6B6056"],body:not(.light) [style*="color: #6B6056"] { color:#aaaaaa !important; }
  body:not(.light) [style*="color:#94a3b8"],body:not(.light) [style*="color: #94a3b8"] { color:#777 !important; }
  body:not(.light) [style*="color:#A09080"],body:not(.light) [style*="color: #A09080"] { color:#777 !important; }
}

/* ── CAPA 2: manual body.dark ───────────────────────────── */
body.dark {
  --bg-base:#0f0f0f; --bg-surface:#1a1a1a; --bg-card:#1a1a1a;
  --bg-subtle:#222222; --bg-input:#222222; --bg-input-focus:#2a2a2a; --bg-muted:#2a2a2a;
  --text-main:#f4f4f5; --text-body:#cccccc; --text-muted:#aaaaaa; --text-dim:#777777;
  --border:#333333; --border-subtle:#2a2a2a;
  --shadow-xs:0 1px 3px rgba(0,0,0,0.3); --shadow-sm:0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:0 4px 16px rgba(0,0,0,0.4); --shadow-lg:0 12px 32px rgba(0,0,0,0.45);
  --shadow-glow:0 0 0 3px rgba(232,93,58,0.25);
  background-color:#0f0f0f !important; color:#cccccc;
}
body.dark header { background:#1a1a1a; border-bottom-color:#333; }
body.dark header h1 { color:#f4f4f5; }
body.dark .subtitle { color:#aaaaaa; }
body.dark .subtitle strong { color:#cccccc; }
body.dark h2,body.dark h3,body.dark h4 { color:#f4f4f5; }
body.dark p { color:#cccccc; }
body.dark li { color:#cccccc; }
body.dark select {
  background:#222222; color:#f4f4f5; border-color:#333;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaaaaa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center;
  -webkit-appearance:none; appearance:none;
}
body.dark select option { background:#222222; color:#f4f4f5; }
body.dark input[type="number"],body.dark input[type="text"]:not(.hp-field),
body.dark input[type="email"],body.dark textarea { background:#222222; color:#f4f4f5; border-color:#333; }
body.dark .checkbox-label { background:#222222; border-color:#333; color:#aaaaaa; }
body.dark .checkbox-label:hover { border-color:var(--primary); color:#f4f4f5; background:rgba(232,93,58,0.08); }
body.dark .checkbox-label:has(input:checked) { border-color:var(--primary); background:rgba(232,93,58,0.12); color:#f4f4f5; }
body.dark .form-label>span:first-child { color:#aaaaaa; }
body.dark .form-hint { color:#777; }
body.dark .routine-form,body.dark .nutrition-form { background:#1a1a1a; border-color:#333; }
body.dark .routine-card,body.dark .nutrition-card { background:#1a1a1a; border-color:#333; }
body.dark .routine-header h2,body.dark .nutrition-header h2 { color:#f4f4f5; }
body.dark .routine-header,body.dark .nutrition-header { border-bottom-color:#333; }
body.dark .routine-meta,body.dark .nutrition-meta { color:#777; }
body.dark .exercise-item,body.dark .meal-item { background:#222222; border-color:#333; }
body.dark .exercise-header h3,body.dark .meal-header h3 { color:#f4f4f5; }
body.dark .exercise-description,body.dark .meal-description { color:#aaaaaa; }
body.dark .exercise-details span { background:#2a2a2a; border-color:#333; color:#cccccc; }
body.dark .exercise-tips li { color:#aaaaaa; }
body.dark .exercise-equipment { color:#777; }
body.dark .meal-macros span { background:#2a2a2a; border-color:#333; color:#cccccc; }
body.dark .meal-ingredients li { color:#aaaaaa; }
body.dark .daily-totals { background:#222222; border-color:#333; }
body.dark .daily-totals span { color:#777; }
body.dark .day-tab { background:#222222; border-color:#333; color:#aaaaaa; }
body.dark .day-tab:hover { border-color:var(--primary); color:var(--primary); }
body.dark .day-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
body.dark .faq-item { background:#1e1e1e; border-color:#333; }
body.dark .faq-item[open] { border-color:rgba(232,93,58,0.35); }
body.dark .faq-question { background:#1e1e1e; color:#f4f4f5 !important; }
body.dark .faq-question:hover { background:rgba(232,93,58,0.06); color:var(--primary) !important; }
body.dark .faq-answer { background:#222222; color:#aaaaaa; border-top-color:#333; }
body.dark .faq-answer a { color:var(--primary); }
body.dark .faq-section h2 { color:#f4f4f5; }
body.dark .card { background:#1e1e1e !important; border-color:#333 !important; }
body.dark .card h3 { color:#f4f4f5; }
body.dark .card h3 a { color:#f4f4f5 !important; }
body.dark .card h3 a:hover { color:var(--primary) !important; }
body.dark .card p { color:#aaaaaa !important; }
body.dark .professional-card { background:#1e1e1e; border-color:#333; }
body.dark .disclaimer { background:#1e1e1e; border-color:#333; color:#777; }
body.dark footer { background:#1a1a1a; border-top-color:#333; color:#777; }
body.dark footer a { color:#aaaaaa; }
body.dark footer a:hover { color:var(--primary); }
body.dark .links { border-top-color:#333; }
body.dark .links a { color:#aaaaaa; }
body.dark .links span { color:#333; }
body.dark .share-btn { background:#222222; border-color:#333; color:#aaaaaa; }
body.dark .error-card { background:rgba(220,38,38,0.1); border-color:rgba(220,38,38,0.3); color:#fca5a5; }
body.dark .alert-success { background:rgba(5,150,105,0.12); color:#6ee7b7; }
body.dark .alert-error { background:rgba(220,38,38,0.1); color:#fca5a5; }
body.dark .loader { border-color:#333; border-top-color:var(--primary); }
body.dark .badge-cardio   { color:#38bdf8; border-color:rgba(56,189,248,0.3);  background:rgba(56,189,248,0.1); }
body.dark .badge-warmup   { color:#34d399; border-color:rgba(52,211,153,0.3);  background:rgba(52,211,153,0.1); }
body.dark .badge-cooling  { color:#7dd3fc; border-color:rgba(125,211,252,0.3); background:rgba(125,211,252,0.1); }
body.dark .badge-core     { color:#a78bfa; border-color:rgba(167,139,250,0.3); background:rgba(167,139,250,0.1); }
body.dark .badge-mobility { color:#fbbf24; border-color:rgba(251,191,36,0.3);  background:rgba(251,191,36,0.1); }
/* Modal routine.php */
body.dark .explain-modal { background:#1a1a1a !important; }
body.dark .explain-modal-header { background:#1a1a1a !important; border-bottom-color:#333 !important; }
body.dark .explain-modal-header h3 { color:#f4f4f5 !important; }
body.dark .explain-modal-header .modal-subtitle { color:#aaaaaa !important; }
body.dark .explain-modal-close { background:#2a2a2a !important; color:#aaaaaa !important; }
body.dark .explain-modal-close:hover { background:#333 !important; color:#f4f4f5 !important; }
body.dark .explain-section-title { color:#818cf8 !important; }
body.dark .explain-section-title::after { background:#333 !important; }
body.dark .steps-list li { color:#f4f4f5 !important; }
body.dark .errors-list li { background:rgba(245,158,11,0.08) !important; border-left-color:#f59e0b !important; color:#fcd34d !important; }
body.dark .tips-list li { background:rgba(34,197,94,0.08) !important; border-left-color:#22c55e !important; color:#86efac !important; }
body.dark .muscle-tag.primary { background:rgba(139,92,246,0.15) !important; color:#c4b5fd !important; border-color:rgba(196,181,253,0.3) !important; }
body.dark .muscle-tag.secondary { background:#2a2a2a !important; color:#aaaaaa !important; border-color:#333 !important; }
body.dark .variant-chip { background:#2a2a2a !important; border-color:#333 !important; color:#cccccc !important; }
body.dark .difficulty-badge.beginner { background:rgba(34,197,94,0.12) !important; color:#86efac !important; }
body.dark .difficulty-badge.intermediate { background:rgba(245,158,11,0.12) !important; color:#fcd34d !important; }
body.dark .difficulty-badge.advanced { background:rgba(239,68,68,0.12) !important; color:#fca5a5 !important; }
/* index.php */
body.dark .step-card { background:#1e1e1e !important; border-color:#333 !important; }
body.dark .step-card h3 { color:#f4f4f5 !important; }
body.dark .step-card p { color:#aaaaaa !important; }
body.dark .home-hero h1 { color:#f4f4f5; }
body.dark .home-hero h1 span { color:#818cf8; }
body.dark .cta-card.secondary { background:rgba(34,197,94,0.1) !important; color:#86efac !important; }
body.dark .why-block { background:#1a1a1a !important; border-color:#333 !important; }
body.dark .why-block h2 { color:#f4f4f5 !important; }
body.dark .why-block .tagline { color:#aaaaaa !important; }
body.dark .why-block p { color:#cccccc !important; }
body.dark .why-list li { color:#cccccc !important; }
body.dark .guide-card { background:#1e1e1e !important; border-color:#333 !important; }
body.dark .guide-card .guide-text { color:#cccccc !important; }
body.dark .guide-card .guide-tag { color:#818cf8 !important; }
body.dark .pro-mini-card { background:#1e1e1e !important; border-color:#333 !important; }
body.dark .pro-mini-name { color:#f4f4f5 !important; }
body.dark .pro-mini-city { color:#aaaaaa !important; }
body.dark .pro-mini-spec { background:#2a2a2a !important; color:#cccccc !important; }
/* professionals.php */
body.dark .card-badge,body.dark .card-mode-badge { background:rgba(30,30,30,0.95) !important; color:#f4f4f5 !important; }
body.dark .card-desc { color:#aaaaaa !important; }
body.dark .card-price { color:#aaaaaa !important; }
body.dark .btn-contact { background:#2a2a2a !important; border-color:#333 !important; color:#cccccc !important; }
body.dark .btn-perfil { background:#1e1e1e !important; border-color:#818cf8 !important; color:#818cf8 !important; }
body.dark .btn-small { background:#2a2a2a !important; border-color:#333 !important; color:#aaaaaa !important; }
body.dark .modal-content { background:#1a1a1a !important; }
body.dark .modal-close { color:#aaaaaa !important; }
body.dark .results-count { color:#aaaaaa !important; }
body.dark .badge-available.si { background:rgba(34,197,94,0.12) !important; color:#86efac !important; }
body.dark .badge-available.no { background:rgba(239,68,68,0.12) !important; color:#fca5a5 !important; }
/* professional_profile.php */
body.dark .profile-section { background:#1a1a1a !important; border-color:#333 !important; }
body.dark .profile-section h2 { color:#f4f4f5 !important; border-bottom-color:#333 !important; }
body.dark .profile-section p { color:#aaaaaa !important; }
body.dark .profile-meta { color:#aaaaaa !important; }
body.dark .tinymce-content { color:#cccccc !important; }
body.dark .tinymce-content h1,body.dark .tinymce-content h2,body.dark .tinymce-content h3 { color:#f4f4f5 !important; }
body.dark .review-comment { color:#aaaaaa !important; }
body.dark .review-date { color:#777 !important; }
body.dark .btn-msg { background:#2a2a2a !important; border-color:#333 !important; color:#f4f4f5 !important; }
body.dark .btn-web { background:#1e1e1e !important; border-color:#333 !important; color:#818cf8 !important; }
body.dark .btn-share { background:#1e1e1e !important; border-color:#333 !important; color:#aaaaaa !important; }
/* guias-ejercicios.php — intro-text y cards */
body.dark .intro-text { background:#1a1a1a !important; }
body.dark .intro-text h2 { color:#f4f4f5 !important; }
body.dark .intro-text p { color:#cccccc !important; }
body.dark .intro-text li { color:#cccccc !important; }
body.dark .intro-text strong { color:#f4f4f5 !important; }
body.dark .intro-text a { color:#FF6B35 !important; }
body.dark .blog-header { background:#1a1a1a !important; }
body.dark .blog-header h1 { color:#f4f4f5 !important; }
body.dark .blog-header p { color:#aaaaaa !important; }
body.dark .filtro-select { background:#222222 !important; border-color:#333 !important; color:#f4f4f5 !important; }
body.dark .volver { color:#aaaaaa !important; }
body.dark .volver:hover { color:var(--primary) !important; }
/* seo.php */
body.dark .breadcrumb { color:#777 !important; }
body.dark .breadcrumb a { color:#777 !important; }
body.dark .breadcrumb a:hover { color:#FF4D00 !important; }
body.dark .breadcrumb .sep { color:#444 !important; }
body.dark .breadcrumb .current { color:#aaaaaa !important; }
body.dark .seo-page-header { border-bottom-color:#333 !important; }
body.dark .seo-page-header h1 { color:#f4f4f5 !important; }
body.dark .type-label.routine { background:rgba(255,77,0,0.15) !important; color:#FF6B35 !important; border-color:rgba(255,77,0,0.3) !important; }
body.dark .type-label.nutrition { background:rgba(34,160,80,0.15) !important; color:#4ade80 !important; border-color:rgba(34,160,80,0.3) !important; }
body.dark .type-label.guide { background:rgba(255,77,0,0.15) !important; color:#FF6B35 !important; border-color:rgba(255,77,0,0.3) !important; }
body.dark .intro-block { background:rgba(255,77,0,0.06) !important; border-color:rgba(255,77,0,0.2) !important; color:#cccccc !important; }
body.dark .seo-card { background:#1a1a1a !important; border-color:#333 !important; }
body.dark .seo-card h2 { color:#f4f4f5 !important; }
body.dark .structure-list li { background:#222222 !important; border-color:#333 !important; color:#cccccc !important; }
body.dark .guide-content { background:#1a1a1a !important; border-color:#333 !important; color:#cccccc !important; }
body.dark .guide-content h2,body.dark .guide-content h3 { color:#f4f4f5 !important; }
body.dark .guide-content p { color:#cccccc !important; }
body.dark .guide-content li { color:#cccccc !important; }
body.dark .guide-content strong { color:#f4f4f5 !important; }
body.dark .guide-content a { color:#FF6B35 !important; }
body.dark .guide-content .faq { border-top-color:#333 !important; }
body.dark .disclaimer-medical { background:rgba(255,159,28,0.08) !important; border-left-color:#FF9F1C !important; color:#cccccc !important; }
body.dark .disclaimer-medical strong { color:#FF9F1C !important; }
body.dark .related-section { background:#1a1a1a !important; border-color:#333 !important; }
body.dark .related-section h2 { color:#777 !important; }
body.dark .related-links a { background:#222222 !important; border-color:#333 !important; color:#cccccc !important; }
body.dark .related-links a:hover { border-color:rgba(255,77,0,0.3) !important; background:rgba(255,77,0,0.06) !important; color:#FF4D00 !important; }
body.dark .seo-nav { border-top-color:#333 !important; }
body.dark .seo-nav a { color:#aaaaaa !important; }
body.dark .seo-nav a:hover { color:#FF4D00 !important; }
body.dark .seo-nav span { color:#444 !important; }
body.dark .productos-afiliados { background:#1e1e1e !important; }
body.dark .producto-item { background:#2a2a2a !important; }
body.dark .producto-item h4 { color:#f4f4f5 !important; }
body.dark .relacionados { background:#1e1e1e !important; }
body.dark .relacionados h3 { color:#f4f4f5 !important; }
body.dark .relacionados li a { background:#2a2a2a !important; border-color:#333 !important; color:#cccccc !important; }
/* Fondos blancos/claros inline — lista completa */
body.dark [style*="background:#fff"],body.dark [style*="background: #fff"],
body.dark [style*="background:white"],body.dark [style*="background: white"],
body.dark [style*="background:#f8fafc"],body.dark [style*="background: #f8fafc"],
body.dark [style*="background:#f9f9f9"],body.dark [style*="background: #f9f9f9"],
body.dark [style*="background:#f1f5f9"],body.dark [style*="background: #f1f5f9"],
body.dark [style*="background:#FAF8F5"],body.dark [style*="background: #FAF8F5"],
body.dark [style*="background:#FAF8F6"],body.dark [style*="background: #FAF8F6"],
body.dark [style*="background:#F0EDE8"],body.dark [style*="background: #F0EDE8"],
body.dark [style*="background:#fef7e9"],body.dark [style*="background: #fef7e9"],
body.dark [style*="background:#f0f4ff"],body.dark [style*="background: #f0f4ff"] { background:#1e1e1e !important; }
/* Textos oscuros inline */
body.dark [style*="color:#0f172a"],body.dark [style*="color: #0f172a"] { color:#f4f4f5 !important; }
body.dark [style*="color:#1A1512"],body.dark [style*="color: #1A1512"] { color:#f4f4f5 !important; }
body.dark [style*="color:#1e293b"],body.dark [style*="color: #1e293b"] { color:#f4f4f5 !important; }
body.dark [style*="color:#4A3828"],body.dark [style*="color: #4A3828"] { color:#cccccc !important; }
body.dark [style*="color:#334155"],body.dark [style*="color: #334155"] { color:#cccccc !important; }
body.dark [style*="color:#3A302A"],body.dark [style*="color: #3A302A"] { color:#cccccc !important; }
body.dark [style*="color:#475569"],body.dark [style*="color: #475569"] { color:#aaaaaa !important; }
body.dark [style*="color:#64748b"],body.dark [style*="color: #64748b"] { color:#aaaaaa !important; }
body.dark [style*="color:#6B6056"],body.dark [style*="color: #6B6056"] { color:#aaaaaa !important; }
body.dark [style*="color:#94a3b8"],body.dark [style*="color: #94a3b8"] { color:#777 !important; }
body.dark [style*="color:#A09080"],body.dark [style*="color: #A09080"] { color:#777 !important; }

/* ══════════════════════════════════════════════════════════
   TABLET (481px – 1024px)
══════════════════════════════════════════════════════════ */
@media (min-width:481px) and (max-width:1024px) {
  .container { max-width:620px; }
  .btn-primary { padding:15px 24px; font-size:1rem; border-radius:var(--radius-lg); }
  .btn-secondary,.btn-outline { padding:12px 20px; font-size:0.92rem; }
  .checkbox-grid { grid-template-columns:repeat(3,1fr); }
  .checkbox-label { padding:12px 10px; font-size:0.88rem; }
}

/* ══════════════════════════════════════════════════════════
   MÓVIL (≤480px)
══════════════════════════════════════════════════════════ */
@media (max-width:480px) {
  body { padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom); padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
  header { padding:calc(var(--space-8) + env(safe-area-inset-top)) var(--space-5) var(--space-6); }
  header h1 { font-size:clamp(1.5rem,6.5vw,2rem) !important; letter-spacing:-0.01em; }
  .subtitle { font-size:0.88rem; line-height:1.5; }
  .container { padding:var(--space-4) var(--space-4) var(--space-10); }
  .routine-form,.nutrition-form { padding:var(--space-5) var(--space-4); border-radius:var(--radius-xl); margin-top:var(--space-5); }
  .form-label>span:first-child { font-size:0.8rem; }
  select,input[type="number"],input[type="text"]:not(.hp-field),input[type="email"],textarea { padding:14px; font-size:1rem; min-height:52px; }
  select { background-position:right 14px center; padding-right:2.8rem; }
  .checkbox-grid { grid-template-columns:repeat(2,1fr); gap:var(--space-2); }
  .checkbox-label { padding:12px 10px; font-size:0.85rem; border-radius:var(--radius-md); min-height:48px; }
  .btn-primary { width:100%; padding:16px 20px; font-size:1.05rem; font-weight:700; border-radius:var(--radius-full); min-height:56px; margin-top:var(--space-6); letter-spacing:0.02em; }
  .btn-secondary,.btn-outline { width:100%; padding:14px 20px; font-size:0.95rem; border-radius:var(--radius-full); min-height:52px; justify-content:center; }
  .routine-actions,.nutrition-actions { flex-direction:column; align-items:stretch; gap:var(--space-3); }
  .routine-card,.nutrition-card { padding:var(--space-4); border-radius:var(--radius-xl); }
  .exercise-item,.meal-item { padding:var(--space-3) var(--space-4); }
  .exercise-header h3,.meal-header h3 { font-size:0.95rem; line-height:1.3; }
  .exercise-description,.meal-description { font-size:0.84rem; }
  .daily-totals { padding:var(--space-4) var(--space-3); gap:var(--space-3); }
  .daily-totals strong { font-size:1.2rem; }
  .daily-totals span { font-size:0.62rem; }
  .day-tabs { gap:var(--space-2); padding-bottom:var(--space-3); }
  .day-tab { font-size:0.78rem; padding:8px 14px; min-height:38px; }
  footer { padding:var(--space-6) var(--space-4) calc(var(--space-8) + env(safe-area-inset-bottom)); }
  .links,nav.links { flex-direction:column; align-items:center; gap:var(--space-3); }
  .links a { font-size:0.88rem; padding:var(--space-1) 0; }
  .links span { display:none; }
  .float-contact { display:flex; bottom:calc(24px + env(safe-area-inset-bottom)); right:calc(16px + env(safe-area-inset-right)); padding:0.85rem 1.3rem; font-size:0.92rem; border-radius:var(--radius-full); box-shadow:0 6px 20px rgba(232,93,58,0.5); }
  .faq-question { font-size:0.9rem; padding:var(--space-4); }
  .faq-answer { font-size:0.88rem; padding:var(--space-3) var(--space-4) var(--space-4); }
}

/* ── Móvil muy pequeño (≤360px) ───────────────────────── */
@media (max-width:360px) {
  header h1 { font-size:clamp(1.3rem,6vw,1.6rem) !important; }
  .subtitle { font-size:0.82rem; }
  .btn-primary { font-size:0.95rem; padding:14px 16px; min-height:52px; }
  .btn-secondary,.btn-outline { font-size:0.88rem; min-height:48px; }
  .checkbox-label { font-size:0.8rem; padding:10px 8px; }
  .exercise-header h3,.meal-header h3 { font-size:0.88rem; }
}