/* RTL generado por bin/rtl_css.js desde academy.css md5=3ad4186c6d52a71d0368d3231bb17834: no editar */
/* Academia TravCrew (06/11, src/Academy.php): lista de guías y cada guía. Mismo sistema visual (hueso, tarjetas blancas, noche y oro).
   Texto en una columna ≤ 70ch; en el celular todo en una columna y nada se sale de su caja. */
.pg-academy .acciones { gap: 10px; }
.pg-academy .lp-top-signup { height: 40px; min-height: 0; padding: 0 18px; font-size: 14px; }
.ac-wrap { width: 100%; max-width: 1080px; margin: 0 auto; min-width: 0; }
.ac-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 13px; color: var(--gris); }
.ac-crumbs a { color: var(--gris); }
.ac-crumbs [aria-current] { color: var(--tinta); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ac-head { max-width: 760px; }
.ac-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--gris); } /* 12/11: sin versalitas espaciadas (Estética V2, tanda 2) */
.ac-head h1 { margin: 0; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; overflow-wrap: break-word; }
.ac-head .sub, .ac-lead { margin: 12px 0 0; font-size: 18px; line-height: 1.5; color: var(--gris); max-width: 66ch; }
.ac-meta { margin: 12px 0 0; font-size: 13px; color: var(--gris-c); }

.ac-cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ac-card { min-width: 0; }
.ac-card a { display: flex; flex-direction: column; height: 100%; padding: 20px 22px; border-radius: var(--r); background: var(--papel); border: 1px solid var(--linea);
  box-shadow: var(--sombra-s); color: var(--tinta); text-decoration: none; }
.ac-card a:hover { border-color: var(--oro); }
.ac-card a:focus-visible { outline: 2px solid var(--oro-o); outline-offset: 2px; }
.ac-card-tag { font-size: 12px; font-weight: 600; color: var(--gris); }
.ac-card h3, .ac-card h2 { margin: 8px 0 6px; font-size: 19px; line-height: 1.22; overflow-wrap: break-word; }
.ac-card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--gris); flex: 1; }
.ac-card-more { font-size: 13px; font-weight: 600; color: var(--oro-o); }

.ac-art { margin: 0; padding: clamp(20px, 4vw, 44px); border-radius: var(--r); background: var(--papel); border: 1px solid var(--linea); box-shadow: var(--sombra-s); }
.ac-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }
.ac-cols > .ac-toc { order: -1; }
@media (min-width: 1100px) {
  /* La guía a la izquierda (≤ 70ch) y el índice fijo a la derecha: sin espacio muerto en pantallas anchas. */
  .ac-cols { grid-template-columns: minmax(0, 70ch) minmax(220px, 1fr); gap: 48px; align-items: start; }
  .ac-cols > .ac-toc { order: 0; position: sticky; top: 24px; margin-top: 34px; }
}
.ac-toc { margin: 24px 0 0; padding: 14px 18px; border-radius: var(--r-s); border: 1px solid var(--linea-f); max-width: 70ch; }
.ac-toc h2 { margin: 0 0 6px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.ac-toc ol { margin: 0; padding-right: 20px; display: grid; gap: 4px; font-size: 15px; }
.ac-body { max-width: 70ch; margin-top: 8px; font-size: 17px; line-height: 1.65; }
.ac-body h2 { margin: 34px 0 10px; font-size: 24px; line-height: 1.2; scroll-margin-top: 90px; }
.ac-body p { margin: 0 0 14px; }
.ac-body ul, .ac-body ol { margin: 0 0 16px; padding-right: 22px; }
.ac-body li { margin: 0 0 6px; }
.ac-body strong { font-weight: 700; color: var(--tinta); }
.ac-body a, .ac-src a { color: var(--oro-o); text-underline-offset: 3px; }
.ac-tip { margin: 6px 0 18px; padding: 14px 18px; border-right: 4px solid var(--oro); border-radius: var(--r-s) 0 0 var(--r-s); background: #FFFBF1; }
.ac-tip p { margin: 0; font-size: 15.5px; }

.ac-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 34px 0 0; padding: 24px 26px; border-radius: var(--r);
  background-color: var(--noche); color: var(--crema); }
.ac-cta-tx { flex: 1 1 360px; min-width: 0; }
.ac-cta h2 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.ac-cta p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--crema); }
.ac-cta .ac-cta-note { margin-top: 8px; font-size: 13px; opacity: .8; }
.ac-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-wrap > .ac-cta { margin-top: 36px; }
/* En la lista, la invitación es la última "tarjeta" (07/11: 8 guías + invitación = 3 filas llenas en 3 columnas). */
.ac-card-cta { min-width: 0; display: flex; }
.ac-card-cta .ac-cta { margin: 0; width: 100%; }

.ac-src { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--linea); max-width: 70ch; }
.ac-src h2 { margin: 0 0 8px; font-size: 16px; }
.ac-src ul { margin: 0; padding-right: 20px; font-size: 14px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.ac-src-note { margin: 10px 0 0; font-size: 13px; color: var(--gris); }
.ac-more { margin: 40px 0 0; }
.ac-more h2 { margin: 0; font-size: 22px; }
.ac-more .ac-cards { margin-top: 14px; }
.ac-more > p { margin: 16px 0 0; font-weight: 600; }

@media (max-width: 760px) {
  .pg-academy .lp-top-signup { display: none; }
  .ac-head .sub, .ac-lead { font-size: 16.5px; }
  .ac-body { font-size: 16px; }
  .ac-body h2 { font-size: 21px; margin-top: 28px; }
  .ac-art { padding: 18px 16px; border-radius: var(--r-s); }
  .ac-cta { padding: 20px 18px; }
  .ac-cta-btns, .ac-cta-btns .btn { width: 100%; }
  .ac-cta-btns .btn { justify-content: center; }
}

/* En la página de inicio (LandingView::academy) */
#academia .ac-cards { margin-top: 24px; }
.lp-ac-all { margin: 18px 0 0; font-weight: 600; }
.lp-ac-all a { color: var(--oro-o); }
/* En el celular el inicio tiene que seguir corto (≤ 7 pantallas, browser_landing): ahí la Academia queda en el pie ("Academia"). */
@media (max-width: 760px) { #academia { display: none; } }

/* Calculadoras públicas (07/11, PublicCalc): tarjeta de arriba, servidor y preguntas. */
.pc-top { margin-bottom: 16px; }
.pc-top h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; overflow-wrap: break-word; }
.pc-top .ac-lead { font-size: 16.5px; }
.pc-srv { margin-top: 14px; max-width: 460px; }
.pc-srv-pick { display: grid; gap: 6px; }
.pc-srv-pick span { font-weight: 600; font-size: 14px; }
.pc-srv-note { margin: 6px 0 0; }
.pc-more { margin-top: 24px; }
.pc-faq { max-width: 70ch; margin-top: 18px; }
.pc-faq > h2 { font-size: 22px; margin: 0 0 8px; }
.pc-q { border-top: 1px solid var(--linea); }
.pc-q:last-child { border-bottom: 1px solid var(--linea); }
.pc-q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; cursor: pointer; list-style: none; }
.pc-q summary::-webkit-details-marker { display: none; }
.pc-q summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--oro-o); }
.pc-q[open] summary::after { content: "−"; }
.pc-q summary h3 { margin: 0; font-size: 16.5px; line-height: 1.35; min-width: 0; }
.pc-q p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; color: var(--gris); }
.pc-guide { margin: 20px 0 0; font-size: 15px; }
.pc-guide a { color: var(--oro-o); font-weight: 600; }
.pc-others { margin-top: 32px; }
.card > .h1-like { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
/* 07/11 (SEO): páginas de referencia (src/Wiki.php): servidores, tribus y tropas. */
.wk .wk-sec { margin: 0 0 18px; padding: 20px 22px; min-width: 0; }
.wk .wk-sec > h2 { margin: 0 0 12px; font-size: 1.15rem; }
.wk .wk-sec ul { margin: 0; padding-right: 20px; line-height: 1.6; }
.wk-tbl { width: 100%; }
@media (min-width: 640px) { .wk-tbl td, .wk-tbl th { white-space: nowrap; } }
@media (max-width: 639px) { .wk-srv.tbl.stack td:first-child { min-width: 0; } }
.wk-tbl td:first-child { white-space: normal; min-width: 9rem; }
.wk-tbl td .chip { margin-right: 4px; }
.wk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 10px; }
.wk-stat { min-width: 0; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.wk-stat span { display: block; font-size: 13px; color: var(--gris); }
.wk-stat b { display: block; margin-top: 2px; font-size: 1.35rem; font-family: var(--font-titulo); }
.wk-extra { margin-top: 14px !important; color: var(--gris); }
.wk-tools { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.wk-tools a { color: var(--oro-o); font-weight: 600; }
.wk-chips { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wk-chips a.chip { text-decoration: none; }
.wk .ac-meta { margin-top: 6px; }

/* Estadísticas e inactivos públicos (07/11, WorldPublic) */
.wp .wp-up { color: var(--ok); font-weight: 600; white-space: nowrap; }
.wp .wp-down { color: var(--rojo); font-weight: 600; white-space: nowrap; }
.wp-chart { display: block; width: 100%; height: 120px; fill: var(--oro); }
.wp-chart rect:hover { fill: var(--oro-o, #a8843f); }
.wp-chart-l { display: flex; justify-content: space-between; margin: 4px 0 0; }
.wp-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 14px; }
.wp-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.wp-form input { width: 9rem; max-width: 100%; }
.wp-form label + label input, .wp-form .wp-xy + label input { width: 6rem; }
/* 11/11: X e Y en dos cajas */
.wp-xy { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.wp-form .xy-pair input { width: 5rem; }
.wp-count { margin: 0 0 10px; }
.wp .wk-tbl td { overflow-wrap: break-word; }
.wp-tbl td:first-child { min-width: 0; }
.wp-tbl td a { overflow-wrap: anywhere; }
.wp-rk td:first-child, .wp-rk th:first-child { width: 1%; white-space: nowrap; }
.wp-tbl .num-c { white-space: nowrap; }
.wp-sub { display: none; }
@media (max-width: 640px) {
  .wp-tbl .wp-mh { display: none; }
  .wp-sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--gris); }
  .wp-tbl th, .wp-tbl td { padding-right: 6px; padding-left: 6px; }
}
.wp .wk-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }

/* 12/11 (revisión): el primer bloque después del título iba pegado a la línea de introducción. */
.ac-head + section, .ac-head + .card, .ac-head + div { margin-top: 24px; }
@media (min-width: 1100px) { .ac-tribes .ac-cards, .ac-cards.ac-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 14/11 (SEO): datos del servidor y más servidores en stats.php?s= */
.wp-facts p { margin: 0 0 .75rem; max-width: 70ch; }
.wp-kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); gap: .75rem 1.25rem; }
.wp-kv > div { min-width: 0; border-inline-start: 2px solid var(--linea-f); padding-inline-start: .75rem; }
.wp-kv dt { font-size: 13px; font-weight: 600; color: var(--gris); }
.wp-kv dd { margin: .15rem 0 0; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.wp-kv dd .small { display: block; font-weight: 400; }
@media (min-width: 340px) { .wp-kv .wp-kv-date { grid-column: span 2; } }
.wp-facts .wp-host { margin: .75rem 0 0; overflow-wrap: anywhere; }
.wk .wk-sec ul.wp-srv-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .35rem 1.25rem; }
.wp-srv-list a { overflow-wrap: anywhere; }

/* 16/11 REVISIÓN 3 (Santi: "revisá todo el sitio… lo que parezca AI slop o de junior"): las páginas públicas con la ESTÉTICA V2.
   Sin sombras, links de acción en rojo (no dorado), sin la ceja que repite las migas ni "Guía/Calculadora" arriba de cada tarjeta,
   índice sin versalitas espaciadas, la invitación clara (sin baldosa oscura) y, en la lista, a todo el ancho (no como "tarjeta 17"). */
.ac-card a, .ac-art { box-shadow: none; }
.ac-card a:hover { border-color: rgba(200, 36, 43, .45); }
.ac-card-tag { display: none; }
.ac-card h3, .ac-card h2 { margin-top: 0; }
.ac-head .ac-eyebrow { display: none; }
.pc-top .ac-eyebrow { display: block; }
.ac-toc h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ac-card-more, .ac-body a, .ac-src a, .lp-ac-all a, .pc-guide a, .wk-tools a, .wk a.wk-link { color: var(--rojo); }
.pc-q summary::after { color: var(--gris); }
.ac-cta { background: var(--papel); color: var(--tinta); border: 1px solid var(--linea); }
.ac-cta h2 { color: var(--tinta); }
.ac-cta p { color: var(--gris); }
.ac-cta .ac-cta-note { opacity: 1; color: var(--gris); }
.ac-card-cta { grid-column: 1 / -1; }
.ac-cta .btn-claro { background: #fff; color: var(--tinta); border-color: var(--linea); }
/* La lista de calculadoras sin título: sin el hueco de 60 px entre la cabecera y las tarjetas. */
.pc-others:not(:has(> h2)) { margin-top: 18px; }
.pc-others:not(:has(> h2)) > .ac-cards { margin-top: 0; }

/* 17/11 (SEO): inactives.php sin servidor = buscador de inactivos de todos los servidores */
.wp-hub-form { margin-bottom: 0; }
.wp-hub-form select { min-width: 14rem; max-width: 100%; }
.wp-hub-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0 20px; }
.wp-hub-list li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--linea, #e6e1d6); min-width: 0; }
.wp-hub-list a { font-weight: 600; overflow-wrap: anywhere; }
.wp-hub-list .muted { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .wp-hub-srv, .wp-hub-form select { width: 100%; }
}

/* 17/11 (SEO): edificios (buildings.php) */
.bld-head .wk-stats + h2 { margin-top: 22px; }
.bld-tbl th, .bld-tbl td { white-space: nowrap; }
.bld-tbl th:first-child, .bld-tbl td:first-child, .bld-tbl tfoot th { width: 1%; min-width: 0; position: sticky; right: 0; z-index: 1; background: #fff; }
.bld-tbl thead th:first-child { background: var(--hueso); }
.bld-tbl tfoot th, .bld-tbl tfoot td { font-weight: 600; border-top: 2px solid var(--linea-f, rgba(21, 19, 15, .18)); }
.bld-list a { font-weight: 600; }
@media (max-width: 640px) {
  .bld-head .wk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bld-head .wk-stat b { font-size: 1.1rem; overflow-wrap: anywhere; }
  .bld-tbl { font-size: 13px; }
  .bld-tbl th, .bld-tbl td { padding-right: 8px; padding-left: 8px; }
}

/* 19/11 (revisión CC: "grillas que dejan la última tarjeta sola" y "FAQ angostos dentro de tarjetas anchas"):
   5 tarjetas = 3+2 (o 5 en una fila en pantallas anchas), 7 = 4+3; el FAQ con el "Probalo gratis" al lado en la compu, y sin él la tarjeta del ancho del FAQ. */
@media (min-width: 900px) {
  .ac-cards:has(> li:last-child:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-cards:has(> li:last-child:nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .ac-cards:has(> li:last-child:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .pc-more:has(> .pc-faq):has(> .ac-cta) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .pc-more:has(> .pc-faq):has(> .ac-cta) > .ac-cta { margin-top: 18px; }
  .pc-more:has(> .pc-faq):has(> .ac-cta) > :not(.pc-faq):not(.ac-cta) { grid-column: 1 / -1; }
}
.pc-more:has(> .pc-faq):not(:has(> .ac-cta)) { max-width: calc(70ch + 88px); }
/* 20/11 (revisión CC 2): con 4, 7, 10, 13, 16… guías en 3 columnas la última quedaba sola (3+3+3+3+3+1). La más nueva (la primera) va
   destacada a todo el ancho y las demás llenan filas de 3. Cuenta solo las tarjetas (no el cartel "Creá tu cuenta" del final). */
@media (min-width: 900px) {
  .ac-cards:has(> .ac-card:nth-child(3n+4 of .ac-card):nth-last-child(1 of .ac-card)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-cards:has(> .ac-card:nth-child(3n+4 of .ac-card):nth-last-child(1 of .ac-card)) > .ac-card:first-child { grid-column: 1 / -1; }
  .ac-cards:has(> .ac-card:nth-child(3n+4 of .ac-card):nth-last-child(1 of .ac-card)) > .ac-card:first-child p { max-width: 72ch; }
}
