:root {
    --wows-color-bg: #020617;
    --wows-color-surface: rgba(15, 23, 42, 0.86);
    --wows-color-surface-deep: rgba(2, 6, 23, 0.72);
    --wows-color-panel: rgba(8, 15, 24, 0.58);
    --wows-color-border: rgba(51, 65, 85, 0.82);
    --wows-color-border-soft: rgba(51, 65, 85, 0.72);
    --wows-color-cyan: #00d2ff;
    --wows-color-cyan-soft: #7dd3fc;
    --wows-color-gold: #facc15;
    --wows-color-text: #f1f5f9;
    --wows-color-text-soft: #d7e3f0;
    --wows-color-muted: #9fb6cc;
    --wows-radius: 4px;
    --wows-shadow-panel: 0 18px 38px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --wows-shadow-card: 0 18px 38px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wows-contenedor-buscador,
.wows-contenedor-comparador,
.wows-contenedor-bonos,
.wows-contenedor-codigos,
.wows-contenedor-streamers,
.wows-contenedor-tracker,
.wows-contenedor-clanes {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--wows-tool-max-width, 1200px);
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(145deg, var(--wows-color-surface), var(--wows-color-surface-deep)) !important;
    border: 1px solid var(--wows-color-border) !important;
    border-top: 1px solid rgba(125, 211, 252, 0.42) !important;
    border-left: 3px solid rgba(0, 210, 255, 0.58) !important;
    border-radius: var(--wows-radius);
    color: var(--wows-color-text) !important;
    font-family: "Segoe UI", "Roboto Condensed", Arial, sans-serif;
    box-shadow: var(--wows-shadow-panel) !important;
}

.wows-contenedor-buscador h2,
.wows-contenedor-comparador h2,
.wows-contenedor-bonos h2,
.wows-contenedor-codigos h2,
.wows-contenedor-streamers h2,
.wows-contenedor-tracker h2,
.wows-contenedor-clanes > h2 {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px 0 !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #ffffff 0%, #dff7ff 48%, #8edcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    font-size: 2rem !important;
    line-height: 1.08 !important;
    text-shadow: 0 0 22px rgba(0, 210, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.42) !important;
}

.wows-contenedor-buscador h2::after,
.wows-contenedor-comparador h2::after,
.wows-contenedor-bonos h2::after,
.wows-contenedor-codigos h2::after,
.wows-contenedor-streamers h2::after,
.wows-contenedor-tracker h2::after,
.wows-contenedor-clanes > h2::after {
    content: "";
    display: block;
    width: 260px;
    max-width: 44vw;
    height: 3px;
    margin: 16px auto 0 auto;
    background:
        linear-gradient(90deg, var(--wows-color-cyan) 0%, rgba(241, 196, 15, 0.86) 58%, transparent 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.62), transparent);
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.34), 0 0 28px rgba(241, 196, 15, 0.14);
}

.wows-subtitulo-guia {
    max-width: 860px;
    margin: 0 auto 30px auto !important;
    color: var(--wows-color-text-soft) !important;
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

/* Shared page header used by tracking, port and clan-publication tools. */
.wows-tool-page-header {
    margin: 0 0 24px;
    padding: 0;
    text-align: center;
}

.wows-tool-page-header h2,
.wows-tool-page-header-primary h1 {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #ffffff 0%, #dff7ff 48%, #8edcff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 22px rgba(0, 210, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.42) !important;
}

.wows-tool-page-header h2::after,
.wows-tool-page-header-primary h1::after {
    content: "";
    display: block;
    width: 260px;
    max-width: 44vw;
    height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--wows-color-cyan) 0%, rgba(241, 196, 15, 0.86) 58%, transparent 100%);
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.34), 0 0 28px rgba(241, 196, 15, 0.14);
}

/* Virtual ship pages retain their SEO h1 while matching the tool header contrast. */
.wows-ship-detail-page .wows-ship-detail .wows-tool-page-header h1 {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #ffffff 0%, #dff7ff 48%, #8edcff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: clamp(2rem, 4vw, 3.35rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
    text-align: center !important;
    text-shadow: 0 0 22px rgba(0, 210, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.42) !important;
}

.wows-ship-detail-page .wows-ship-detail .wows-tool-page-header h1::after {
    content: "";
    display: block;
    width: 260px;
    max-width: 44vw;
    height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--wows-color-cyan) 0%, rgba(241, 196, 15, 0.86) 58%, transparent 100%);
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.34), 0 0 28px rgba(241, 196, 15, 0.14);
}

.wows-ship-detail-page .wows-ship-detail .wows-ship-detail-image {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.wows-tool-page-header .wows-subtitulo-guia {
    max-width: 860px;
    margin: 0 auto 30px !important;
    color: var(--wows-color-text-soft) !important;
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

.wows-contextual-home-link {
    margin: 36px 0 0;
    color: var(--wows-color-text-soft);
    font-size: 0.85rem;
    text-align: center;
}

.wows-contextual-home-link a {
    color: var(--wows-color-cyan);
    text-decoration: none;
}

.wows-contextual-home-link a:hover,
.wows-contextual-home-link a:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* El shortcode ya presenta su propio encabezado; el título nativo duplicado de WordPress no aporta contexto. */
body:has(.wows-contenedor-buscador) .entry-title,
body:has(.wows-contenedor-comparador) .entry-title,
body:has(.wows-contenedor-bonos) .entry-title,
body:has(.wows-contenedor-codigos) .entry-title,
body:has(.wows-contenedor-streamers) .entry-title,
body:has(.wows-contenedor-tracker) .entry-title,
body:has(.wows-contenedor-clanes) .entry-title {
    display: none !important;
}

.wows-contenedor-buscador input[type="text"],
.wows-contenedor-buscador select,
.wows-contenedor-comparador select,
.wows-contenedor-bonos input[type="number"],
.wows-contenedor-bonos select,
.wows-contenedor-simulador input[type="number"],
.wows-contenedor-simulador input[type="search"],
.wows-contenedor-simulador select,
.wows-contenedor-tracker input[type="text"],
.wows-contenedor-tracker select {
    width: 100%;
    min-height: 46px;
    padding: 10px 38px 10px 12px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(8, 15, 24, 0.98), rgba(2, 6, 23, 0.98)) !important;
    border: 1px solid rgba(0, 210, 255, 0.38) !important;
    border-radius: var(--wows-radius) !important;
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.24);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wows-contenedor-buscador input[type="text"]:focus,
.wows-contenedor-buscador select:focus,
.wows-contenedor-comparador select:focus,
.wows-contenedor-bonos input[type="number"]:focus,
.wows-contenedor-bonos select:focus,
.wows-contenedor-simulador input[type="number"]:focus,
.wows-contenedor-simulador input[type="search"]:focus,
.wows-contenedor-simulador select:focus,
.wows-contenedor-tracker input[type="text"]:focus,
.wows-contenedor-tracker select:focus {
    border-color: var(--wows-color-cyan-soft) !important;
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.12), 0 0 18px rgba(0, 210, 255, 0.24);
}

.wows-contenedor-buscador select option,
.wows-contenedor-comparador select option,
.wows-contenedor-bonos select option,
.wows-contenedor-simulador select option,
.wows-contenedor-tracker select option {
    background: #07111b !important;
    color: #f8fafc !important;
}

.wows-tabla-contenedor,
.wows-tracker-table-wrap {
    position: relative;
    overflow-x: auto;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.74)),
        rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.86);
    border-top: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: var(--wows-radius);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.wows-tabla-contenedor::before,
.wows-tracker-table-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(0, 210, 255, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
    opacity: 0.32;
    pointer-events: none;
}

.wows-tabla-contenedor table,
.wows-tracker-table-wrap table {
    position: relative;
    z-index: 1;
}

.wows-contenedor-comparador table.wows-tabla-datos,
.wows-contenedor-tracker table.wows-tracker-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 0;
    color: #e2e8f0;
    font-size: 13px;
    text-align: center;
    box-shadow: none;
}

.wows-contenedor-comparador table.wows-tabla-datos thead th,
.wows-contenedor-tracker table.wows-tracker-table thead th {
    position: relative;
    padding: 15px 16px !important;
    background:
        linear-gradient(180deg, rgba(18, 30, 50, 0.96), rgba(8, 15, 24, 0.96)) !important;
    border-bottom: 1px solid rgba(0, 210, 255, 0.34) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #e7f6ff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center !important;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.16);
    white-space: nowrap;
}

.wows-contenedor-comparador table.wows-tabla-datos tbody tr td,
.wows-contenedor-tracker table.wows-tracker-table tbody tr td {
    padding: 13px 14px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.58) !important;
    border-right: 1px solid rgba(51, 65, 85, 0.48) !important;
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.45;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wows-contenedor-comparador table.wows-tabla-datos tbody tr td:first-child,
.wows-contenedor-tracker table.wows-tracker-table tbody tr td:first-child {
    color: #d7e3f0 !important;
    font-weight: 800 !important;
    padding-left: 20px !important;
    text-align: left !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.wows-contenedor-comparador table.wows-tabla-datos th:last-child,
.wows-contenedor-comparador table.wows-tabla-datos tbody tr td:last-child,
.wows-contenedor-tracker table.wows-tracker-table th:last-child,
.wows-contenedor-tracker table.wows-tracker-table tbody tr td:last-child {
    border-right: none !important;
}

.wows-contenedor-comparador table.wows-tabla-datos tbody tr:nth-child(even):not(.wows-fila-categoria) td,
.wows-contenedor-tracker table.wows-tracker-table tbody tr:nth-child(even) td {
    background: rgba(8, 15, 24, 0.42) !important;
}

.wows-contenedor-comparador table.wows-tabla-datos tbody tr:hover:not(.wows-fila-categoria) td,
.wows-contenedor-tracker table.wows-tracker-table tbody tr:hover td {
    background: rgba(0, 210, 255, 0.1) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.06), inset 0 -1px 0 rgba(125, 211, 252, 0.06);
}

.wows-table-empty,
.wows-tracker-empty {
    padding: 22px !important;
    color: var(--wows-color-muted) !important;
    font-style: italic;
    text-align: center !important;
}

.wows-table-empty.is-error,
.wows-tracker-empty.is-error {
    color: #fca5a5 !important;
}

@media (max-width: 700px) {
    .wows-contenedor-buscador,
    .wows-contenedor-comparador,
    .wows-contenedor-bonos,
    .wows-contenedor-codigos,
    .wows-contenedor-streamers,
    .wows-contenedor-tracker {
        margin: 24px auto;
        padding: 20px;
    }

    .wows-contenedor-buscador h2,
    .wows-contenedor-comparador h2,
    .wows-contenedor-bonos h2,
    .wows-contenedor-codigos h2,
    .wows-contenedor-streamers h2,
    .wows-contenedor-tracker h2 {
        font-size: 1.45rem !important;
    }
}
