.grecaptcha-badge { opacity: 0; }

.hentry .entry-meta {
    display: none;
}

span.byline,
.entry-author {
    display: none;
}

/* ===== BASE GLOBAL DARK ===== */
body,
.site,
#page {
    background: #0b0f14;
    color: #e7edf5;
}

body {
    font-family: "Segoe UI", "Inter", "Roboto", sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #f4f7fb;
    letter-spacing: 0.2px;
}

h1, h2, h3, .main-title, .site-title {
    font-family: "Segoe UI", "Inter", "Roboto", sans-serif;
    font-weight: 700;
}

p, li, span, div {
    color: #c7d0db;
}

a {
    color: #66b3ff;
    text-decoration: none;
}

a:hover {
    color: #9fd0ff;
}

.site-title a {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ===== HEADER ===== */
.site-header,
.main-navigation,
.inside-header {
    background: #0f141b !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.site-header a {
    color: #e7edf5 !important;
}

.main-navigation .main-nav ul li a:hover {
    color: #66b3ff !important;
}

/* ===== CONTENIDO ===== */
.site-content,
.content-area,
.inside-article,
.entry-content,
.separate-containers .inside-article {
    background: transparent;
}

/* ===== BOTONES ===== */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link {
    background: linear-gradient(135deg, #1677ff, #5b8cff);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(22,119,255,0.25);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    filter: brightness(1.08);
}

/* ===== CAJAS / BLOQUES ===== */
.wp-block-group,
.wp-block-columns,
.widget,
.sidebar .widget,
.inside-article {
    border-radius: 14px;
}

/* ===== CAMPOS ===== */
input,
select,
textarea {
    background: #111821;
    color: #e7edf5;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
}

/* ===== TABLAS ===== */
table {
    background: #10161f;
    color: #e7edf5;
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px;
}

table th {
    background: #151d28;
    color: #f4f7fb;
}

/* ===== GRID DE CATEGORÍAS ===== */
.ens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin: 30px 0;
}

.ens-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #121922 0%, #0f141b 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ens-card-icon {
    display: block;
    margin: 0 auto 16px;
    max-width: 100%;
    height: auto;
}

.ens-card:hover {
    transform: translateY(-3px);
    border-color: rgba(102,179,255,0.45);
    box-shadow: 0 12px 34px rgba(15,40,80,0.32);
    text-decoration: none;
}

.ens-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    color: #f4f7fb;
}

.ens-card p {
    margin: 0 0 14px 0;
    color: #b8c4d1;
}

.ens-card-meta {
    font-size: 14px;
    color: #7fb6ff;
    margin-top: 10px;
}

/* ===== CABECERA DE CATEGORÍA ===== */
.ens-category-hero {
    display: grid;
    grid-template-columns: 1.8fr 0.8fr;
    gap: 24px;
    align-items: center;
    margin: 15px 0 20px;
    padding: 18px;
    background: linear-gradient(180deg, #121922 0%, #0f141b 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}

.ens-category-hero__left h1 {
    margin: 0 0 12px 0;
}

.ens-category-hero__left p {
    margin: 0;
    max-width: 980px;
}

.ens-category-hero__right {
    display: flex;
    justify-content: flex-end;
}

.ens-category-hero--single {
    grid-template-columns: 1fr;
}

.ens-category-hero--single .ens-category-hero__left {
    max-width: 900px;
}

.ens-category-hero--single .ens-category-hero__left p {
    margin: 0;
    max-width: none;
    text-align: left;
}

.ens-category-hero-simple {
    margin: 15px 0 20px;
    padding: 18px;
    background: linear-gradient(180deg, #121922 0%, #0f141b 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    text-align: center;
}

.ens-category-hero-simple p {
    margin: 0;
    max-width: 980px;
    margin-inline: auto;
}

.ens-category-stat {
    min-width: 180px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    text-align: left;
}

.ens-category-stat__num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: #f4f7fb;
}

.ens-category-stat__label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #9fb0c4;
}

/* ===== GRID DESTACADOS DOMINIOS ===== */
.ens-domain-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 15px 0 50px;
}

.ens-domain-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, #121922 0%, #0f141b 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ens-domain-card:hover {
    transform: translateY(-3px);
    border-color: rgba(102,179,255,0.45);
    box-shadow: 0 12px 34px rgba(15,40,80,0.32);
    text-decoration: none;
}

.ens-domain-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0d131a;
}

.ens-domain-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 14px 16px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    color: #f4f7fb;
    text-align: center;
    max-width: 100%;
    min-height: 2.3em;
}

/* ===== SEPARACIÓN ENTRE GRID Y SIGUIENTE BLOQUE ===== */
.ens-domain-grid + h2,
.ens-domain-grid + .wp-block-heading,
.ens-domain-grid + .elementor-heading-title {
    margin-top: 55px !important;
}

.entry-content h2 {
    clear: both;
}

.ens-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 28px;
}

.ens-subnav__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d7dbe3;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.ens-subnav__item:hover {
    border-color: #7c8aa5;
    background: #f7f9fc;
    color: #111827;
    text-decoration: none;
}

.ens-subnav__item--active {
    border-color: #1d4ed8;
    background: #eaf1ff;
    color: #1d4ed8;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.ens-card--active {
    border: 2px solid #628BF3;
    background: linear-gradient(135deg, rgba(160, 153, 255, 0.15), rgba(98, 139, 243, 0.12));
    box-shadow: 0 0 30px rgba(160, 153, 255, 0.4);
}

.ens-card--active h3 {
    color: #ffffff;
}

.ens-card--active p {
    color: rgba(255, 255, 255, 0.95);
}

.ens-card--active .ens-card-meta {
    color: #a8d8ff;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

.ens-badge {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ens-badge-red {
    background-color: #DC2626;
    color: #FFFFFF;
}

.ens-card--featured {
    border: 2px solid #A099FF;
    background: linear-gradient(135deg, rgba(160, 153, 255, 0.1), rgba(98, 139, 243, 0.05));
    box-shadow: 0 0 20px rgba(160, 153, 255, 0.2);
}

.ens-card--featured:hover {
    box-shadow: 0 0 30px rgba(160, 153, 255, 0.4);
    border-color: #628BF3;
}

.ens-card--featured.ens-card--active {
    border: 2px solid #628BF3;
    background: linear-gradient(135deg, rgba(160, 153, 255, 0.15), rgba(98, 139, 243, 0.1));
    box-shadow: 0 0 30px rgba(160, 153, 255, 0.4);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* TABLET GRANDE (1024px) */
@media (max-width: 1024px) {
    .ens-category-hero {
        grid-template-columns: 1fr;
    }

    .ens-category-hero__right {
        justify-content: flex-start;
    }

    .ens-domain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 60px;
    }

    .ens-grid-profesiones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MÓVIL Y TABLET PEQUEÑO (768px) */
@media (max-width: 768px) {
    .ens-category-hero h2,
    .entry-content h2 {
        font-size: 34px;
        line-height: 1.1;
        color: #ffffff;
        opacity: 1 !important;
        margin-bottom: 18px;
    }

    /* 1 COLUMNA EN MÓVIL CON FONDO AZUL DEGRADADO */
    .ens-domain-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 16px 0 50px;
    }

    /* CARDS CON FONDO AZUL DEGRADADO - SIN LOGO */
    .ens-domain-card {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        height: 60px;
        background: linear-gradient(135deg, #5b8cff 0%, #66b3ff 100%) !important;
        border: none !important;
        box-shadow: 0 8px 24px rgba(22,119,255,0.25);
    }

    .ens-domain-card:hover {
        background: linear-gradient(135deg, #66b3ff 0%, #7fbfff 100%) !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(22,119,255,0.35);
    }

    .ens-domain-card img {
        display: none !important;
    }

    .ens-domain-card__name {
        font-size: 24px;
        padding: 0;
        min-height: auto;
        text-align: center;
        color: #ffffff;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .ens-domain-grid + h2,
    .ens-domain-grid + .wp-block-heading,
    .ens-domain-grid + .elementor-heading-title {
        margin-top: 42px !important;
    }

    .ens-grid-profesiones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* MÓVIL PEQUEÑO (480px) */
@media (max-width: 480px) {
    .ens-domain-card {
        height: 55px;
    }

    .ens-domain-card__name {
        font-size: 20px;
    }

    .ens-category-hero h2 {
        font-size: 28px !important;
    }

    .ens-grid-profesiones {
        grid-template-columns: 1fr;
    }
}

/* MÓVIL MUY PEQUEÑO (360px) */
@media (max-width: 360px) {
    .ens-domain-grid {
        gap: 12px;
    }

    .ens-domain-card {
        height: 50px;
    }

    .ens-domain-card__name {
        font-size: 18px;
    }
}

/* ===== OCULTAR HERO EN MÓVIL ===== */
@media (max-width: 768px) {
    .ens-category-hero {
        display: none !important;
    }
}