/* ============================================================
   TestSCS V2 — Diseño Moderno (inspirado en la app)
   ============================================================ */

/* ── Variables ── */
:root {
  --primary:       #1E3A8A;
  --primary-light: #3B82F6;
  --primary-dark:  #172554;
  --secondary:     #3498db;
  --tertiary:      #45c38c;
  --tertiary-dark: #2d8a64;
  --accent:        #667eea;
  --accent-dark:   #5a67d8;
  --bg:            #F1F5F9;
  --surface:       #FFFFFF;
  --surface-alt:   #F8FAFC;
  --text-primary:  #0F172A;
  --text-secondary:#64748B;
  --text-muted:    #94A3B8;
  --border:        #E2E8F0;
  --error:         #EF4444;
  --error-bg:      #FEF2F2;
  --success:       #10B981;
  --success-bg:    #ECFDF5;
  --warning:       #F59E0B;
  --warning-bg:    #FFFBEB;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:     0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
  --shadow-xl:     0 20px 40px rgba(0,0,0,.1);
  --transition:    all .2s ease;
}
/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

/* ── Navbar ── */
.navbar-v2 {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-v2__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}

.navbar-v2__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-v2__brand img {
  height: 40px;
  width: auto;
}

.navbar-v2__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.navbar-v2__links > li { position: relative; }

.navbar-v2__links > li > a,
.navbar-v2__links > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.navbar-v2__links > li > a:hover,
.navbar-v2__links > li > button:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

.navbar-v2__links > li > a.active {
  background: var(--primary);
  color: #fff;
}

/* Dropdowns */
.dropdown-menu-v2 {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 100;
  list-style: none;
  margin: 0;
}

.dropdown-menu-v2.show { display: block; }

.dropdown-menu-v2 a {
  display: block;
  padding: 8px 12px;
  font-size: .88rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu-v2 a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

/* Sub-dropdown (desktop) */
.dropdown-submenu-v2 { position: relative; }

.dropdown-menu-v2 .dropdown-submenu-v2 > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dropdown-menu-v2 .dropdown-submenu-v2 > a .submenu-chevron {
  font-size: .65rem;
  transition: transform .2s ease;
}

@media (min-width: 992px) {
  .dropdown-submenu-v2 .dropdown-menu-v2 {
    top: -8px;
    left: calc(100% + 4px);
  }

}

@media (max-width: 991px) {
  .dropdown-submenu-v2 .dropdown-menu-v2 {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
}

/* Search */
.nav-search-item-v2 {
  flex: 1;
  max-width: 360px;
}

.search-container-v2 {
  position: relative;
  width: 100%;
}

.search-input-wrapper-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: var(--transition);
}

.search-input-wrapper-v2:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  background: var(--surface);
}

.search-icon-v2 {
  color: var(--text-muted);
  font-size: .85rem;
  flex-shrink: 0;
}

#testSearchInput {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 0;
  font-size: .88rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

#testSearchInput::placeholder {
  color: var(--text-muted);
}

.search-clear-v2 {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: var(--text-muted);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}

.search-clear-v2:hover {
  background: var(--text-secondary);
}

.search-dropdown-v2 {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 8px;
}

.search-dropdown-v2.show { display: block; }

.search-group-v2 {
  padding: 6px 10px 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-top: 4px;
}

.search-group-v2:first-child { margin-top: 0; }

.search-item-v2 {
  display: block;
  padding: 8px 10px;
  font-size: .85rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.search-item-v2:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

@media (max-width: 991px) {
  .nav-search-item-v2 {
    max-width: none;
    width: 100%;
  }
  .search-dropdown-v2 {
    position: static;
    box-shadow: none;
    border: 1px solid var(--border);
    max-height: 300px;
  }
}

/* Mobile toggle */
.navbar-v2__toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 991px) {
  .navbar-v2__toggle { display: block; margin-left: auto; }
  .navbar-v2__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
  }
  .navbar-v2__links.open { display: flex; }
  .navbar-v2__links > li > a,
  .navbar-v2__links > li > button {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
  }
  .dropdown-menu-v2 {
    position: static !important;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
}

/* ── Hero ── */
.hero-v2 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 48px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-v2__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-v2 h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}

.hero-v2 p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.hero-v2__search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero-v2__search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 50px;
  background: rgba(255,255,255,.95);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  outline: none;
  transition: var(--transition);
}

.hero-v2__search input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(59,130,246,.25), var(--shadow-lg);
}

.hero-v2__search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

/* ── Layout Grid ── */
.layout-v2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 991px) {
  .layout-v2 {
    grid-template-columns: 1fr;
  }
}

/* ── Cards ── */
.card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 20px;
}

.card-v2:hover {
  box-shadow: var(--shadow-md);
}

.card-v2 h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-v2 p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 12px;
}

.card-v2 p:last-child { margin-bottom: 0; }

/* ── Category Sections ── */
.category-section-v2 {
  margin-bottom: 28px;
}

.category-section-v2__title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 10px;
  padding-left: 4px;
}

.category-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.category-card-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.category-card-v2:hover {
  border-color: var(--primary-light);
  background: var(--surface-alt);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.category-card-v2__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-v2--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}

.btn-v2--primary:hover {
  box-shadow: 0 4px 14px rgba(30,58,138,.35);
  transform: translateY(-1px);
  color: #fff;
}

.btn-v2--success {
  background: linear-gradient(135deg, var(--tertiary) 0%, var(--tertiary-dark) 100%);
  color: #fff;
}

.btn-v2--success:hover {
  box-shadow: 0 4px 14px rgba(69,195,140,.35);
  transform: translateY(-1px);
  color: #fff;
}

.btn-v2--outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-secondary);
}

.btn-v2--outline:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--surface-alt);
}

.btn-v2--full { width: 100%; }

.btn-v2:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Test Screen ── */
.test-header-v2 {
  padding: 16px 20px;
  background: transparent;
  position: sticky;
  top: 64px;
  z-index: 50;
}

.test-header-v2__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
}

.test-header-v2__progress {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.test-header-v2__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width .3s ease;
}

.test-header-v2__counter {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.test-question-v2 {
  max-width: 1000px;
  margin: 32px auto;
  padding: 0 20px;
}

.test-question-v2__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.test-question-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.test-question-v2__enunciado {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0 0 24px;
}

.test-option-v2 {
  display: block;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .95rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.5;
}

.test-option-v2:hover:not(:disabled) {
  border-color: var(--primary-light);
  background: var(--surface-alt);
}

.test-option-v2--correct {
  background: var(--success-bg) !important;
  border-color: var(--success) !important;
  color: #065F46 !important;
}

.test-option-v2--wrong {
  background: var(--error-bg) !important;
  border-color: var(--error) !important;
  color: #991B1B !important;
}

.test-option-v2:disabled { cursor: default; }

/* ── Results ── */
.results-v2 {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.results-v2__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.results-v2__score {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0;
}

.results-v2__stat {
  text-align: center;
}

.results-v2__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.results-v2__stat-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}

/* ── Chips (número de preguntas) ── */
.chips-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.chip-v2 { display: none; }

.chip-v2__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.chip-v2__label:hover {
  border-color: var(--primary-light);
  background: var(--surface-alt);
}

.chip-v2:checked + .chip-v2__label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Toggle Switch ── */
.toggle-v2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-primary);
}

.toggle-v2 input { display: none; }

.toggle-v2__track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
}

.toggle-v2__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.toggle-v2 input:checked + .toggle-v2__track {
  background: var(--primary);
}

.toggle-v2 input:checked + .toggle-v2__track .toggle-v2__thumb {
  transform: translateX(20px);
}

/* ── Post-it / Noticias ── */
.post-it-v2 {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: var(--transition);
}

.post-it-v2:hover { box-shadow: var(--shadow-md); }

.post-it-v2__date {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.post-it-v2__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
}

.post-it-v2__content {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.post-it-v2__content p { margin: 0 0 6px; }
.post-it-v2__content a { color: var(--primary-light); }

/* ── App Promo Card ── */
.app-promo-v2 {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.app-promo-v2 h2 {
  color: #92400E;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.app-promo-v2 p { color: #78350F; }

/* ── Ko-fi Section ── */
.kofi-v2 {
  text-align: center;
  padding: 32px 24px;
}

.kofi-v2__img {
  border-radius: 50%;
  max-width: 75px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.kofi-v2__img:hover { transform: scale(1.1); }

/* ── Facebook Card ── */
.fb-card-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 20px;
}

.fb-card-v2:hover {
  border-color: #1877F2;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.fb-card-v2__icon {
  font-size: 1.8rem;
  color: #1877F2;
}

.fb-card-v2__text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

/* ── Blog ── */
.blog-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.blog-card-v2:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-card-v2__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card-v2__placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card-v2__body { padding: 20px; }

.blog-card-v2__date {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-v2__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.4;
}

.blog-card-v2__excerpt {
  font-size: .88rem;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}

.blog-card-v2__link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* ── Blog Post ── */
.blog-post-v2 {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 20px;
}

.blog-post-v2__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.blog-post-v2__img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  max-height: 360px;
  object-fit: cover;
}

.blog-post-v2 h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0 0 20px;
  line-height: 1.3;
}

.blog-post-v2__content {
  line-height: 1.8;
  color: var(--text-primary);
}

.blog-post-v2__content h2 { font-size: 1.4rem; color: var(--primary); margin-top: 32px; }
.blog-post-v2__content h3 { font-size: 1.15rem; margin-top: 24px; }
.blog-post-v2__content p { margin-bottom: 16px; }
.blog-post-v2__content a { color: var(--primary-light); }
.blog-post-v2__content blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── Footer ── */
.footer-v2 {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding: 32px 20px;
  text-align: center;
  font-size: .85rem;
  margin-top: 48px;
}

.footer-v2 a { color: rgba(255,255,255,.85); }
.footer-v2 a:hover { color: #fff; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ── Ad container ── */
.ad-container-v2 {
  max-width: 900px;
  margin: 0 auto 24px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn .3s ease; }

/* ── Reto badge ── */
.reto-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.reto-badge-v2:hover {
  box-shadow: 0 4px 14px rgba(102,126,234,.4);
  transform: translateY(-1px);
  color: #fff;
}

.navbar-v2__links > li > a.pro-access-btn-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff !important;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(245,158,11,.3);
  transition: var(--transition);
}
.navbar-v2__links > li > a.pro-access-btn-v2:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 14px rgba(245,158,11,.5);
  transform: translateY(-1px);
  color: #fff !important;
}

/* ── PRO badge ── */
.pro-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
/* ============================================================
   KAWAII REDESIGN (Single Column)
   ============================================================ */

.hero-kawaii-v2 {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 10px 30px rgba(161, 196, 253, 0.3);
  margin-bottom: 40px;
}

.hero-kawaii-v2__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-kawaii-v2 h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

.wave-emoji {
  display: inline-block;
  animation: wave-animation 2s infinite;
  transform-origin: 70% 70%;
}
@keyframes wave-animation {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.hero-kawaii-v2 p {
  color: #3b82f6;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 32px;
}

.hero-kawaii-v2__search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero-kawaii-v2__search input {
  width: 100%;
  padding: 18px 24px 18px 54px;
  font-size: 1.05rem;
  border: 4px solid #fff;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e3a8a;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  outline: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.hero-kawaii-v2__search input:focus {
  border-color: #fcd34d;
  box-shadow: 0 15px 35px rgba(252, 211, 77, 0.3);
  transform: translateY(-2px);
}

.hero-kawaii-v2__search .search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.2rem;
  pointer-events: none;
}

.container-kawaii-v2 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.category-section-kawaii {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.category-section-kawaii__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-grid-kawaii {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.category-card-kawaii {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card-kawaii__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fcd34d;
  color: #b45309;
  border-radius: 12px;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.category-card-kawaii:hover {
  border-color: #a1c4fd;
  background: #fff;
  color: #1e3a8a;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(161, 196, 253, 0.2);
}
.category-card-kawaii:hover .category-card-kawaii__icon {
  transform: rotate(10deg) scale(1.1);
  background: #a1c4fd;
  color: #fff;
}

.extras-grid-kawaii {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card-kawaii {
  border-radius: 24px;
  padding: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.hover-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

.bg-pastel-yellow { background: #fef3c7; border: 2px solid #fde68a; color: #78350f; }
.bg-pastel-blue { background: #e0f2fe; border: 2px solid #bae6fd; color: #0369a1; }
.bg-pastel-facebook { background: #bfdbfe; border: 2px solid #93c5fd; color: #1e40af; }
.bg-pastel-facebook h2 { color: #1d4ed8 !important; }

.card-kawaii h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-orange { color: #ea580c; }
.text-blue { color: #2563eb; }
.text-pink { color: #ec4899; }
.text-white { color: #fff; }

.kawaii-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 24px;
}

.news-grid-kawaii {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.news-card-kawaii {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 2px solid #fbcfe8;
  box-shadow: 0 4px 15px rgba(251, 207, 232, 0.4);
}

.news-card-kawaii__date {
  display: inline-block;
  background: #fbcfe8;
  color: #be185d;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.news-card-kawaii h3 {
  font-size: 1.15rem;
  color: #1e3a8a;
  margin: 0 0 12px;
}

.news-card-kawaii__content {
  font-size: 0.9rem;
  color: #475569;
}

/* ============================================================
   Soporte de Estilos Heredados del Blog Antiguo (V2)
   ============================================================ */

.blog-post-v2__content .post-pro-container {
  display: block;
  width: 100%;
}

.blog-post-v2__content .ficha_convocatoria {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  text-align: justify;
}

.blog-post-v2__content .ficha_convocatoria h2,
.blog-post-v2__content .ficha_convocatoria h3,
.blog-post-v2__content .ficha_convocatoria h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
}

.blog-post-v2__content .ficha_convocatoria p {
  margin-bottom: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: justify;
}

.blog-post-v2__content .ficha_convocatoria ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.blog-post-v2__content .ficha_convocatoria li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Tablas de convocatorias */
.blog-post-v2__content .tabla-convocatoria {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  border: 1px solid var(--border);
}

.blog-post-v2__content .tabla-convocatoria th {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.blog-post-v2__content .tabla-convocatoria td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  background: #ffffff;
}

.blog-post-v2__content .tabla-convocatoria tr:last-child td {
  border-bottom: none;
}

.blog-post-v2__content .tabla-convocatoria tr:nth-child(even) td {
  background-color: var(--surface-alt);
}

/* Botón: Enlace Oficial */
.blog-post-v2__content .enlace-oficial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background-color: var(--primary-light);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.blog-post-v2__content .enlace-oficial:hover {
  background-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -1px rgba(30, 58, 138, 0.25);
}

/* Enlaces y descargas de Documentos Oficiales */
.blog-post-v2__content .enlaces-docs {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-post-v2__content .enlaces-docs a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #f0fdf4; /* Verde suave sanitario/médico */
  border: 1px solid #bbf7d0;
  color: #15803d !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.blog-post-v2__content .enlaces-docs a:hover {
  background-color: #dcfce7;
  transform: translateX(3px);
}

/* Botones Premium PRO */
.blog-post-v2__content .boton-pro-container {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.blog-post-v2__content .btn-pro-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: #4b2a00 !important;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-post-v2__content .btn-pro-header:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
  filter: brightness(1.05);
}

.blog-post-v2__content .btn-pro-label {
  background-color: rgba(0, 0, 0, 0.15);
  color: #4b2a00;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  margin-right: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}


