/* ===== CATEGORÍAS Y CANALES ===== */
.category-list {
  display: grid;
  gap: 16px;
}

.category {
  border-radius: 22px;
  overflow: hidden;
}

.category summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,0.03);
}

.category summary::-webkit-details-marker {
  display: none;
}

.category summary .count {
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  font-size: 0.92rem;
}

.channel-grid {
  display: grid;
  gap: 14px;
  padding: 18px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.channel-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background .2s ease;
  height: 100%;
}

.channel-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}

.channel-card .thumb {
  width: 100%;
  aspect-ratio: 16/12;
  object-fit: contain;
  background: rgba(8,8,18,.6);
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px;
}

.channel-card h4 {
  font-size: .97rem;
  line-height: 1.32;
}

.channel-card p {
  color: rgba(255,255,255,0.72);
  font-size: .85rem;
  min-height: 2.25rem;
}

/* ===== VPN ===== */
.vpn-section .lead {
  opacity: .95;
}

.vpn-filters,
.guides-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  justify-content: center;
}

.vpn-filters .btn-tab,
.guides-filters .btn-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  color: #f5f5ff;
  transition: all .2s ease;
}

.vpn-filters .btn-tab:hover,
.guides-filters .btn-tab:hover {
  background: rgba(255,255,255,0.1);
}

.vpn-filters .btn-tab.is-active,
.guides-filters .btn-tab.is-active {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #251800;
  border-color: transparent;
  font-weight: 700;
}

.vpn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.vpn-card,
.guide-card,
.price-card,
.device-card,
.comment-list .comment-card,
.vpn-guides details,
.requirements,
.note,
.tip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.vpn-card,
.guide-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vpn-card-head,
.guide-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vpn-logo,
.guide-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.vpn-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.vpn-name,
.guide-name {
  margin: 0;
  font-size: 1.08rem;
}

.vpn-badge,
.guide-badge {
  font-size: .75rem;
  padding: .24rem .56rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}

.vpn-badge.tier-gratis {
  background: rgba(48, 217, 122, .16);
  color: #cffff1;
}

.vpn-badge.tier-freemium {
  background: rgba(135, 107, 255, .16);
  color: #efe7ff;
}

.vpn-badge.tier-pago {
  background: rgba(255, 160, 122, .18);
  color: #ffe1d6;
}

.vpn-tagline,
.guide-tagline,
.vpn-notes,
.guide-note {
  color: rgba(255,255,255,0.78);
}

.vpn-actions,
.guide-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.vpn-actions .btn,
.guide-actions .btn {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-size: .92rem;
}

.vpn-actions .btn.primary {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border-color: transparent;
  color: #251800;
  font-weight: 700;
}

.vpn-actions .btn.outline {
  background: transparent;
}

.vpn-guide.collapse {
  border-top: 1px dashed rgba(255,255,255,0.14);
  padding-top: 10px;
  margin-top: 6px;
}

.vpn-guide details,
.vpn-guides details,
.faq {
  overflow: hidden;
}

.vpn-guide summary,
.vpn-guides summary,
.faq > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 18px;
}

.vpn-guides details {
  padding: 0;
  margin: 12px 0;
}

.guide-note {
  font-size: .9rem;
  margin-top: .25rem;
}

/* ===== GUÍAS ===== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.guide-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-full {
  padding: 28px;
  margin-top: 22px;
}

.guide-full img {
  border-radius: 16px;
}

.guide-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(255,255,255,0.14);
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-section h4 {
  margin-bottom: .75rem;
  color: #ffe497;
}

.guide-section code {
  background: rgba(255,255,255,0.08);
  padding: .2rem .45rem;
  border-radius: .45rem;
  font-family: monospace;
  border: 1px solid rgba(255,255,255,0.1);
}

.requirements,
.note,
.tip {
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.requirements {
  border-left: 4px solid #ffd700;
}

.note {
  border-left: 4px solid #ecc94b;
}

.tip {
  border-left: 4px solid #48bb78;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #251800;
  border-radius: 50%;
  margin-right: .5rem;
  font-weight: 800;
}

.share-guide-btn,
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.2rem;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  transition: .2s ease;
}

.back-to-top:hover,
.share-guide-btn:hover {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #251800;
}

/* ===== DISPOSITIVOS ===== */
.device-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 10px;
}

.device-card {
  margin: 0;
  text-align: center;
  padding: 20px;
}

.device-card img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 12px;
}

.device-card figcaption {
  font-weight: 700;
  color: #fff4c5;
}

.device-price {
  font-weight: 700;
  color: #ffe497;
  margin: .5rem 0;
}

.device-features {
  margin: .75rem 0;
}

.device-features ul {
  padding-left: 1.25rem;
  margin: .5rem 0;
}

.device-features li {
  margin-bottom: .25rem;
  font-size: .92rem;
  color: rgba(255,255,255,0.76);
}

/* ===== PRECIOS ===== */
.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 1.25rem 0;
}

.price-card {
  padding: 22px;
  transition: transform .2s ease, background .2s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.1);
}

.price-card h3 {
  margin: 0 0 .9rem;
  font-size: 1.2rem;
  color: #ffe497;
}

.now {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff6cf;
}

.before {
  font-weight: 500;
  color: #ffcbb8;
  text-decoration: line-through;
  margin-left: .5rem;
  font-size: 1rem;
}

.pricing-note {
  text-align: center;
}

/* ===== FAQ ===== */
.faq {
  margin-bottom: 1rem;
}

.faq-body {
  padding: 0 18px 18px;
  color: rgba(255,255,255,0.8);
}

.bullets {
  padding-left: 1.4rem;
  margin: 1rem 0;
}

.bullets li {
  margin-bottom: .5rem;
}

/* ===== TABLA ===== */
.table-wrap {
  overflow: auto;
  margin: 1.5rem 0;
  border-radius: 20px;
}

.stats {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.stats th, .stats td {
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.stats thead th {
  background: rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  font-weight: 700;
}

.stats tr.total td {
  background: rgba(255,255,255,0.05);
  font-weight: 800;
}

/* ===== COMENTARIOS ===== */
.comments-shell {
  padding: 24px;
}

.comment-form {
  margin-bottom: 1.5rem;
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}

.comment-form input,
.comment-form select,
.comment-form textarea,
.reply-form textarea {
  padding: .95rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  font: inherit;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.comment-form input:focus,
.comment-form select:focus,
.comment-form textarea:focus,
.reply-form textarea:focus {
  outline: none;
  border-color: rgba(255,215,0,0.45);
}


.comment-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color: #fff;
  background-color: rgba(255,255,255,0.08);
}

.comment-form select option,
.comment-form select optgroup {
  color: #fff;
  background: #2e2b49;
}

.comment-form select option:checked {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #111;
}

.comment-form select:invalid {
  color: rgba(255,255,255,0.72);
}

.comment-form button {
  align-self: start;
  padding: .8rem 1.3rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-list .comment-card {
  padding: 18px;
}

.comment-list .comment-card.alt {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid rgba(255,255,255,0.28);
}

.replies {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.reply-form {
  margin-top: .75rem;
  display: grid;
  gap: .5rem;
  grid-template-columns: 1fr;
}

.btn.btn-link {
  background: none;
  border: none;
  color: #ffe497;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: .5rem;
  font-size: .92rem;
}

.comment-list small {
  color: rgba(255,255,255,0.62);
  font-size: .85em;
}


.category-notice {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.reply-form input {
  padding: .95rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  font: inherit;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.reply-card h5 {
  margin-bottom: .35rem;
}


/* ===== COMERCIAL FINAL ===== */
.brochure-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.brochure-layout.reverse {
  grid-template-columns: 1fr 1fr;
}

.brochure-copy {
  display: grid;
  gap: 14px;
}

.brochure-media {
  display: flex;
  justify-content: center;
}

.brochure-img,
.brochure-inline {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.feature-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: rgba(255,255,255,0.88);
}

.feature-list li::marker {
  color: #ffd700;
}

.offer-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.offer-mini-card,
.commercial-price-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.offer-mini-card {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.offer-mini-card span {
  color: #ffe497;
  font-weight: 700;
}

.offer-mini-card.featured {
  background: linear-gradient(135deg, rgba(255,215,0,.16), rgba(255,140,0,.14));
  border-color: rgba(255,215,0,.3);
}

.commercial-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.commercial-price-card {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.commercial-price-card h3 {
  font-size: 1.4rem;
}

.commercial-price-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
}

.commercial-price-card li {
  color: rgba(255,255,255,0.88);
}

.commercial-price-card li strong,
.price-topline,
.commercial-price-card.featured-card h3,
.shine-title {
  color: #ffe497;
}

.commercial-price-card.featured-card {
  background: linear-gradient(180deg, rgba(255,215,0,.12), rgba(255,140,0,.08));
  border-color: rgba(255,215,0,.24);
}

.price-topline {
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.brochure-inline-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.info-brochure-section .section-shell,
.offer-section .section-shell {
  padding: 28px;
}


/* ===== EMBY HOME + EXPLORADOR ===== */
.emby-home-preview .section-header,
.emby-home-preview .premium-center,
#explora-emby .section-header {
  margin-bottom: 22px;
}

.emby-carousel-shell {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.emby-carousel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.emby-carousel-head h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.emby-carousel-head p {
  color: rgba(255,255,255,.72);
  margin: 0;
}

.emby-carousel-actions {
  display: flex;
  gap: 10px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.carousel-arrow:hover {
  background: rgba(255,255,255,.12);
}

.emby-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.emby-track::-webkit-scrollbar { height: 10px; }
.emby-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
}

.emby-card {
  min-width: 0;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
}

.emby-card.is-compact .emby-card-body p { display: none; }

.emby-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: rgba(13,12,30,.9);
}

.emby-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.emby-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #ffe497;
  background: linear-gradient(135deg, #1c1640, #3d255f);
}

.emby-card.no-image .emby-fallback { display: flex; }

.emby-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(10,10,20,.68);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .74rem;
  font-weight: 700;
}

.emby-card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.emby-card-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
}

.emby-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: .86rem;
}

.emby-card-body p {
  color: rgba(255,255,255,.74);
  font-size: .9rem;
  line-height: 1.45;
  margin: 0;
}

.emby-preview-cta,
.emby-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.emby-filters-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, .7fr));
  gap: 14px;
  margin-bottom: 20px;
}

.emby-filter { display: grid; gap: 8px; }
.emby-filter label { font-weight: 700; font-size: .92rem; }

.emby-filter input,
.emby-filter select {
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(15,15,30,.82);
  color: #fff;
  padding: 0 14px;
}

.emby-filter select option {
  background: #17162b;
  color: #fff;
}

.emby-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.emby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.emby-grid-loading,
.emby-loading-card {
  color: rgba(255,255,255,.76);
  padding: 14px;
}

.comment-form select,
.reply-form select,
.comment-form input,
.comment-form textarea,
.reply-form input,
.reply-form textarea {
  background: rgba(15,15,30,.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

.comment-form select option {
  background: #17162b;
  color: #fff;
}
