/* ============================================================
   AREA PRIVADA — members.css
   Cubre: index.php, access.php, content/index.php, content/template.php, admin/dashboard.php
   ============================================================ */

/* ── Shared: divider ──────────────────────────────────────── */
.divider {
  margin: 1.5rem 0 1rem;
  color: var(--text-secondary, #94a3b8);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color, #e2e8f0);
}

/* ── Shared: sidebar-header ───────────────────────────────── */
.sidebar-header {
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #208a88;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #208a88;
}

/* ── index.php — Página de compra ─────────────────────────── */
.vip-page {
  max-width: 520px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.vip-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 .5rem;
  color: var(--text-primary, #1e293b);
}
.vip-page .subtitle {
  color: var(--text-secondary, #64748b);
  font-size: 1rem;
  margin: 0 auto 2rem;

    padding: 0 0 20px 0;
    line-height: 19px;
}
}
.vip-price-box {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.vip-price {
  font-size: 3rem;
  font-weight: 800;
  color: #208a88;
  line-height: 1;
  margin-bottom: .25rem;
}
.vip-price small {
  font-size: .35em;
  color: var(--text-secondary, #64748b);
  font-weight: 400;
}
.vip-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}
.vip-features li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  font-size: .95rem;
  color: var(--text-secondary, #475569);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.vip-features li:last-child { border-bottom: none; }
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, #208a88, #115554);
  color: #fff;
  border-radius: 20px;
  padding: .3rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.access-link {
  display: inline-block;
  color: #208a88;
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
  padding: .6rem 1.5rem;
  border: 2px solid #208a88;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.access-link:hover { background: #208a88; color: #fff; }

/* ── access.php ───────────────────────────────────────────── */
.access-page {
  max-width: 440px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, #208a88, #115554);
  color: #fff;
  border-radius: 20px;
  padding: .3rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.access-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 .5rem;
  color: var(--text-primary, #1e293b);
}
.access-page .subtitle {
  color: var(--text-secondary, #64748b);
  font-size: 1rem;
  margin: 0 auto 2rem;
}
.vip-landing-aside .subtitle {
  padding: 0 0 20px 0;
}
.access-box {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.access-box input[type="text"] {
  width: 100%;
  padding: 14px;
  font-size: 1.3rem;
  text-align: center;
  letter-spacing: 4px;
  border: 2px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-sizing: border-box;
  text-transform: uppercase;
  font-family: monospace;
  background: #fff;
  transition: border-color .15s;
}
.access-box input[type="text"]:focus {
  outline: none;
  border-color: #208a88;
}
.access-btn {
  display: block;
  width: 100%;
  padding: .85rem;
  background: linear-gradient(135deg, #208a88, #115554);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .15s;
}
.access-btn:hover { opacity: .88; }
.error-msg {
  color: #e53e3e;
  font-size: .9rem;
  margin-bottom: 1rem;
  background: #fee2e2;
  padding: .6rem 1rem;
  border-radius: 8px;
}
.buy-link {
  display: inline-block;
  color: #208a88;
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
  padding: .6rem 1.5rem;
  border: 2px solid #208a88;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.buy-link:hover { background: #208a88; color: #fff; }

/* ── content/index.php — Hero y layout ───────────────────── */
.vip-hero {
  background: linear-gradient(135deg, #208a88 0%, #115554 100%);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}
.vip-hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin: 0 0 .5rem; }
.vip-hero p  { opacity: .88; font-size: 1.05rem; margin: 0 auto 1.5rem; max-width: 520px; }
.vip-hero-stats { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.vip-stat {
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  padding: .5rem 1.1rem;
  font-weight: 600;
  font-size: .85rem;
}
.vip-stat span { font-size: 1.2rem; display: block; }

.vip-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .vip-layout { grid-template-columns: 1fr; }
  .vip-sidebar {
    position: static !important;
    top: auto !important;
    max-height: none;
    order: 2;
  }
}

.vip-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 1.25rem;
  font-size: .875rem;
}
.member-card {
  background: linear-gradient(135deg, #208a88, #115554);
  color: #fff;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: .82rem;
}
.member-card strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.member-card .expiry { opacity: .85; font-size: .78rem; }

.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats li { margin: .15rem 0; }
.sidebar-cats a {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .6rem; border-radius: 8px;
  text-decoration: none; color: var(--text-secondary, #64748b);
  transition: background .15s, color .15s;
}
.sidebar-cats a:hover,
.sidebar-cats a.active { background: rgba(32,138,136,.1); color: #208a88; font-weight: 600; }

/* ── Logout btn / link (ambos usan el mismo estilo) ───────── */
.logout-btn,
.logout-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #e53e3e;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  margin-bottom: 1rem;
  transition: background .15s;
}
.logout-btn:hover,
.logout-link:hover { background: #c53030; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem; color: var(--text-secondary, #64748b); }
.empty-state h3 { font-size: 1.2rem; margin-bottom: .5rem; }

/* ── content/index.php — Grid 3 columnas ─────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .content-grid { grid-template-columns: 1fr; } }

.content-card {
  background: #fff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .15s, transform .15s;
}
.content-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.content-card-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: -1.25rem -1.25rem 1rem -1.25rem;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.content-cat-badge {
  display: block;
  width: 100%;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  padding: .35rem 1rem;
  letter-spacing: .06em;
  text-align: left;
}
.content-icon {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #208a88 0%, #115554 100%);
  color: #fff;
  font-size: 3rem;
  overflow: hidden;
}
.content-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-card-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin: 0; line-height: 1.3;
}
.content-card-desc {
  font-size: .85rem;
  color: var(--text-secondary, #64748b);
  margin: 0; line-height: 1.5;
  flex: 1;
}
.content-card-example {
  font-size: .82rem; color: #64748b;
  text-decoration: none;
  display: flex; align-items: center; gap: .3rem;
}
.content-card-example:hover { color: #208a88; }
.content-card-btns {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: auto;
}
.content-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem; border-radius: 9px;
  background: #2563eb; color: #fff;
  font-weight: 700; font-size: .9rem;
  text-decoration: none; transition: opacity .15s;
}
.content-btn-primary:hover { opacity: .88; }
.content-btn-tool { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.content-btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem; border-radius: 9px;
  border: 1.5px solid #2563eb; color: #2563eb;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; background: transparent;
  transition: background .15s, color .15s;
}
.content-btn-secondary:hover { background: #2563eb; color: #fff; }

/* ── content/template.php — Detalle recurso ──────────────── */
.skill-hero {
  background: linear-gradient(135deg, #208a88 0%, #115554 100%);
  color: #fff; padding: 3rem 2rem;
}
.skill-hero-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap;
}
.skill-hero-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.2);
  border-radius: 14px; font-size: 2rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.skill-hero-text h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 .4rem; }
.skill-hero-text p  { opacity: .88; margin: 0 0 1rem; font-size: 1rem; max-width: 560px; line-height: 1.5; }
.skill-hero-meta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-badge {
  background: rgba(255,255,255,.2); border-radius: 20px;
  padding: .25rem .8rem; font-size: .8rem; font-weight: 600;
}
.skill-body {
  max-width: 900px; margin: 2.5rem auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start;
}
@media (max-width: 760px) { .skill-body { grid-template-columns: 1fr; } }
.skill-section { margin-bottom: 2rem; }
.skill-section h2 {
  font-size: 1.1rem; font-weight: 700; color: #208a88;
  margin: 0 0 1rem; padding-bottom: .5rem;
  border-bottom: 2px solid rgba(32,138,136,.2);
}
.skill-section p, .skill-section li { font-size: .95rem; line-height: 1.65; color: var(--text-secondary, #475569); }
.skill-section ul { padding-left: 1.2rem; margin: 0; }
.skill-section ul li { margin-bottom: .4rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-top: .5rem;
}
.feature-item {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px; padding: 1rem;
}
.feature-item strong { display: block; font-size: .9rem; margin-bottom: .25rem; color: var(--text-primary, #1e293b); }
.feature-item span   { font-size: .82rem; color: var(--text-secondary, #64748b); line-height: 1.4; }
.skill-sidebar-box {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px; padding: 1.5rem; position: sticky; top: 90px;
}
.download-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .85rem;
  background: linear-gradient(135deg, #208a88, #115554);
  color: #fff; font-weight: 700; font-size: 1rem;
  border-radius: 10px; text-decoration: none;
  transition: opacity .15s; margin-bottom: 1rem;
}
.download-btn:hover { opacity: .88; }
.tool-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .85rem;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff; font-weight: 700; font-size: 1rem;
  border-radius: 10px; text-decoration: none;
  transition: opacity .15s; margin-bottom: 1rem;
}
.tool-btn:hover { opacity: .88; }
.skill-meta-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.skill-meta-list li {
  display: flex; justify-content: space-between;
  padding: .5rem 0; border-bottom: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-secondary, #64748b);
}
.skill-meta-list li:last-child { border-bottom: none; }
.skill-meta-list strong { color: var(--text-primary, #1e293b); }
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; margin-bottom: 1rem;
}
.back-link:hover { color: #fff; }

/* ── Admin dashboard ──────────────────────────────────────── */
.topbar {
  background: linear-gradient(135deg, #208a88, #115554);
  color: #fff; padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar h1 { margin: 0; font-size: 1.2rem; }
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .85rem; }
.topbar a:hover { color: #fff; }
.admin-container { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: #fff; border-radius: 12px; padding: 1.25rem;
  border: 1px solid #e2e8f0; text-align: center;
}
.stat-card .num { font-size: 2rem; font-weight: 800; color: #208a88; }
.stat-card .label { font-size: .82rem; color: #64748b; margin-top: .2rem; }
.admin-card { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; padding: 1.5rem; margin-bottom: 2rem; }
.admin-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: 1rem;
}
.admin-card-header h2 { margin: 0; font-size: 1.05rem; color: #1e293b; }
.btn { display: inline-block; padding: .5rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; border: none; }
.btn-green  { background: linear-gradient(135deg, #208a88, #115554); color: #fff; }
.btn-red    { background: #fee2e2; color: #e53e3e; }
.btn-blue   { background: #dbeafe; color: #2563eb; }
.btn-yellow { background: #fef9c3; color: #b45309; }
.btn-cancel { background: #f1f5f9; color: #64748b; }
.btn:hover { opacity: .85; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th {
  text-align: left; padding: .6rem .75rem; background: #f8fafc;
  color: #64748b; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; border-bottom: 2px solid #e2e8f0;
}
td { padding: .7rem .75rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 600; }
.badge-active    { background: #dcfce7; color: #16a34a; }
.badge-expired   { background: #fee2e2; color: #e53e3e; }
.badge-cancelled { background: #f1f5f9; color: #64748b; }
.code { font-family: monospace; font-size: .85rem; background: #f1f5f9; padding: .2rem .5rem; border-radius: 4px; letter-spacing: 1px; }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.search-bar { padding: .5rem .9rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .9rem; width: 240px; }
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 100;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal { background: #fff; border-radius: 14px; padding: 2rem; width: 100%; max-width: 460px; }
.modal h3 { margin: 0 0 1.25rem; font-size: 1.1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .83rem; color: #64748b; margin-bottom: .3rem; }
.form-group input, .form-group select { width: 100%; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .95rem; }
.modal-footer { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ── index.php — Landing VIP 2 columnas ──────────────────── */
.vip-landing {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .vip-landing { grid-template-columns: 1fr; }
  .vip-landing-aside {
    position: static !important;
    top: auto !important;
    order: 2;
  }
}

.vip-landing-aside {
  position: sticky;
  top: 90px;
}
.vip-landing-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: .5rem 0 .25rem;
  color: var(--text-primary, #1e293b);
}
.vip-landing-preview-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 .25rem;
  color: var(--text-primary, #1e293b);
}
.vip-landing-preview-sub {
  color: var(--text-secondary, #64748b);
  font-size: .95rem;
  margin: 0 0 1.5rem;
}
