```css
/*
Theme Name: ToolMiva - Diseño 8
Theme URI: https://toolmiva.com
Author: ToolMiva
Description: Tema ligero y responsive para ToolMiva, plataforma de herramientas online.
Version: 1.0.2
Text Domain: toolmiva
*/

/* =========================================
   1. VARIABLES Y ESTILOS GENERALES
   ========================================= */

:root {
    --blue: #2563eb;
    --blue2: #3b82f6;
    --navy: #102044;
    --text: #17233f;
    --muted: #64748b;
    --bg: #f8fbff;
    --white: #fff;
    --line: #e4ebf5;
    --red: #ff565b;
    --green: #2fcf91;
    --purple: #7c4dff;
    --yellow: #f7b928;
    --cyan: #39b9ef;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.tm-container {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   2. CABECERA Y LOGO
   ========================================= */

.tm-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    height: auto;
    padding: 14px 0;
    background: #ffffff;
    border-bottom: 1px solid #e4ebf5;
}

.tm-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.tm-header .tm-container.tm-nav {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 15px;
}


.tm-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 550px;
    max-width: 100%;
    margin: 0 auto;
    flex: 0 1 550px;
}

.tm-logo img {
    display: block;
    width: 100%;
    max-width: 550px;
    height: auto;
    max-height: none;
    object-fit: contain;
}


.tm-logo-mark {
    display: none;
}

.tm-menu {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #45536d;
}

.tm-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-menu li::marker {
    content: "";
}

.tm-menu a {
    display: block;
    white-space: nowrap;
}

.tm-menu .current-menu-item > a,
.tm-menu .current_page_item > a {
    color: var(--blue);
    font-weight: 600;
}

.tm-menu a:hover,
.tm-menu .active {
    color: var(--blue);
}

.tm-search-top {
    width: 390px;
    height: 42px;
    border-radius: 11px;
    background: #f2f6fc;
    display: flex;
    align-items: center;
    padding: 0 8px 0 15px;
    color: #94a3b8;
    font-size: 13px;
}

.tm-search-top input {
    border: 0;
    background: transparent;
    outline: 0;
    flex: 1;
    font: inherit;
    color: var(--text);
}

.tm-search-btn {
    width: 38px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

/* =========================================
   3. HERO Y FONDO AZUL CLARO
   ========================================= */

.tm-hero {
    position: relative;
    z-index: 1;
    isolation: isolate;
    clear: both;
    overflow: hidden;
    margin: 0;
    padding: 35px 0 42px;
    background:
        radial-gradient(circle at 12% 40%, #e7f3ff 0, transparent 27%),
        radial-gradient(circle at 86% 30%, #edf2ff 0, transparent 30%),
        linear-gradient(180deg, #f5faff, #eef6ff);
}

.tm-hero::before,
.tm-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid #cfe1ff;
    border-radius: 50%;
    opacity: .7;
    pointer-events: none;
}

.tm-hero::before {
    width: 300px;
    height: 300px;
    left: -170px;
    top: 40px;
}

.tm-hero::after {
    width: 340px;
    height: 340px;
    right: -190px;
    top: 10px;
}

.tm-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
	transform: translateY(-11px);
}

.tm-kicker {
    font-weight: 800;
    color: var(--blue);
    font-size: 20px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* El logo ya incluye el eslogan */
.tm-hero .tm-kicker {
    display: none;
}

.tm-hero h1 {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 0 16px;
    color: var(--navy);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.4px;
    overflow-wrap: normal;
    word-break: normal;
}

.tm-hero h1 span {
    color: var(--blue);
}

.tm-hero p {
    max-width: 680px;
    margin: 0 auto 22px;
    padding: 0 16px;
    color: #52617c;
    font-size: 17px;
    line-height: 1.6;
}

/* Búsqueda principal, por si se utiliza */

.tm-main-search {
    display: flex;
    align-items: center;
    width: min(620px, 100%);
    height: 58px;
    margin: 0 auto;
    padding: 0 9px 0 20px;
    background: #fff;
    border: 1px solid #dbe6f5;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(34, 82, 145, .10);
}

.tm-main-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.tm-main-search button {
    width: 48px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* =========================================
   4. ESTADÍSTICAS
   ========================================= */

.tm-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 26px;
}

.tm-stat {
    padding: 0 25px;
    border-right: 1px solid #dbe5f2;
    color: #66758e;
    font-size: 13px;
    text-align: center;
}

.tm-stat:last-child {
    border-right: 0;
}

.tm-stat strong {
    display: block;
    color: var(--navy);
    font-size: 19px;
}

/* =========================================
   5. CATEGORÍAS: TRES TARJETAS CENTRADAS
   ========================================= */

.tm-cats {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: -15px auto 0;
    padding: 30px 16px 8px;
    background: #ffffff;
}

}

/*
   La cuadrícula utiliza tres columnas de igual tamaño.
   justify-content:center centra el grupo completo,
   no solamente el contenido de cada tarjeta.
*/

.tm-cats .tm-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 155px));
    justify-content: center;
    justify-items: stretch;
    align-items: stretch;
    gap: 12px;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
	
	transform: translateY(-20px);
}

.tm-cat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 150px;
    margin: 0;
    padding: 20px;

    color: #fff;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(20, 55, 100, .10);
    transition: transform .2s ease;
}

.tm-cat:hover {
    transform: translateY(-3px);
}

.tm-cat h3 {
    margin: 7px 0 2px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.tm-cat p {
    margin: 0;
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    opacity: .95;
}

.tm-cat .arrow {
    display: grid;
    place-items: center;
    align-self: flex-end;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: #fff;
    color: #334155;
    font-weight: 800;
}

.c-red {
    background: #ff555b;
}

.c-blue {
    background: #4189ee;
}

.c-green {
    background: #2fce91;
}

.c-purple {
    background: #7a4cf1;
}

.c-yellow {
    background: #f5b721;
}

.c-cyan {
    background: #3185e8;
}

/* =========================================
   6. ESPACIO PARA PUBLICIDAD
   ========================================= */

.tm-ad {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(728px, calc(100% - 32px));
    min-height: 78px;
    margin: 22px auto 44px;
    padding: 16px;

    background: #f1f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 6px;

    color: #8995a7;
    font-size: 12px;
    text-align: center;
}

/* =========================================
   7. SECCIONES Y HERRAMIENTAS
   ========================================= */

.tm-section {
    padding: 0 0 44px;
}

.tm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.tm-section h2 {
    margin: 0;
    color: var(--navy);
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.tm-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.tm-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tm-tool {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 98px;
    padding: 15px;

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(25, 55, 100, .025);
    transition: .2s;
}

.tm-tool:hover {
    border-color: #bfd5fb;
    box-shadow: 0 7px 20px rgba(37, 99, 235, .08);
    transform: translateY(-2px);
}

.tm-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    font-size: 21px;
    font-weight: 800;
}

.i-red {
    background: #ffe3e4;
    color: #e83239;
}

.i-blue {
    background: #e2efff;
    color: #2472df;
}

.i-purple {
    background: #eee7ff;
    color: #7040e8;
}

.i-green {
    background: #def8ed;
    color: #16a875;
}

.i-yellow {
    background: #fff2ce;
    color: #d48c00;
}

.i-cyan {
    background: #dff5fd;
    color: #1c9dca;
}

.tm-tool h3 {
    margin: 0 0 2px;
    font-size: 14px;
}

.tm-tool p {
    margin: 0;
    color: #718096;
    font-size: 12px;
}

.tm-tool .go {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    margin-left: auto;
    border: 1px solid #cfe0fb;
    border-radius: 50%;
    color: var(--blue);
}

/* =========================================
   8. BLOG
   ========================================= */

.tm-blog {
    margin-bottom: 50px;
    padding: 27px;
    background: #f5f9ff;
    border-radius: 20px;
}

.tm-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tm-post {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5edf8;
    border-radius: 14px;
}

.tm-post-img {
    display: grid;
    place-items: center;
    height: 130px;
    background: linear-gradient(135deg, #dceaff, #f2f7ff);
    color: #2563eb;
    font-weight: 800;
}

.tm-post-body {
    padding: 15px;
}

.tm-post h3 {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.25;
}

.tm-post p {
    margin: 0;
    color: #68758c;
    font-size: 12px;
}

/* =========================================
   9. PIE DE PÁGINA
   ========================================= */

.tm-footer {
    padding: 42px 0;
    background: #102044;
    color: #b9c5da;
}

.tm-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.tm-footer .tm-logo {
    color: #fff;
}

.tm-footer p {
    max-width: 420px;
    font-size: 13px;
}

.tm-footer-links {
    display: flex;
    gap: 25px;
    font-size: 13px;
}

.tm-footer-links a:hover {
    color: #fff;
}

/* =========================================
   10. ESTILOS PARA HERRAMIENTAS PDF
   ========================================= */

.tm-pdf-grid {
    gap: 24px;
    margin-top: 30px;
}

.tm-pdf-card {
    min-height: 220px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    box-sizing: border-box;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tm-pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
}

.tm-pdf-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #111827;
}

.tm-pdf-card p {
    color: #64748b;
    line-height: 1.6;
}

.tm-pdf-card .wp-block-buttons {
    margin-top: 24px;
}

.tm-pdf-card .wp-block-button__link {
    padding: 12px 20px;
    background: #2563eb;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.tm-pdf-card .wp-block-button__link:hover {
    background: #1d4ed8;
}

/* =========================================
   11. ENCABEZADOS DE PÁGINAS
   ========================================= */

body.page .tm-container h1:first-child {
    margin-bottom: 18px;
    color: #102044;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

body.page .tm-container > p:first-of-type {
    max-width: 760px;
    margin-bottom: 36px;
    color: #64748b;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
}

/* =========================================
   12. TABLETS Y PANTALLAS MEDIANAS
   ========================================= */

@media (max-width: 900px) {
    .tm-menu {
        display: none;
    }

    .tm-search-top {
        width: 220px;
    }

    .tm-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-cats .tm-cat-grid {
        gap: 12px;
    }
}

/* =========================================
   13. MÓVILES
   ========================================= */

@media (max-width: 600px) {
    .tm-header {
        min-height: 94px;
        height: auto;
        padding: 10px 0;
    }

    .tm-header .tm-container.tm-nav {
        padding: 0 16px;
    }

    .tm-logo {
        width: 290px;
        flex-basis: 290px;
    }

    .tm-logo img {
        width: 100%;
        max-height: none;
    }

    .tm-search-top {
        display: none;
    }

    .tm-hero {
        padding: 36px 0 30px;
    }

    .tm-hero h1 {
        max-width: 100%;
        padding: 0 16px;
        font-size: clamp(32px, 8vw, 40px);
        line-height: 1.12;
        letter-spacing: -1.4px;
    }

    .tm-hero p {
        padding: 0 16px;
        font-size: 15px;
    }

    .tm-stats {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .tm-stat {
        padding: 0 13px;
    }

    /* Dos columnas centradas en pantallas pequeñas */
    .tm-cats {
        padding: 22px 12px 8px;
    }

    .tm-cats .tm-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 155px));
        justify-content: center;
        justify-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .tm-cat {
        min-height: 135px;
        padding: 14px;
    }

    .tm-cat h3 {
        font-size: 15px;
    }

    .tm-cat p {
        font-size: 11px;
    }

    .tm-tools {
        grid-template-columns: 1fr;
    }

    .tm-posts {
        grid-template-columns: 1fr;
    }

    .tm-footer-inner {
        flex-direction: column;
    }

    .tm-footer-links {
        flex-wrap: wrap;
    }

    .tm-ad {
        width: calc(100% - 32px);
        margin: 22px auto 28px;
    }

    .tm-pdf-grid {
        gap: 18px;
    }

    .tm-pdf-card {
        min-height: auto;
        padding: 22px;
    }

    body.page .tm-container h1:first-child {
        font-size: 30px;
        letter-spacing: -.6px;
    }

    body.page .tm-container > p:first-of-type {
        margin-bottom: 26px;
        font-size: 15px;
    }
}


/* FOOTER TOOLMIVA */
.tm-footer {
    width: 100%;
    box-sizing: border-box;
    background: #102044;
    color: #d7e4f7;
    padding: 36px 20px;
    text-align: center;
}

.tm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.tm-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.tm-footer-links a {
    color: #d7e4f7;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.tm-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.tm-footer-links span {
    color: #d7e4f7;
}

.tm-footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tm-footer-logo {
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
}

.tm-footer-content p {
    max-width: 650px;
    margin: 0;
    color: #d7e4f7;
    font-size: 16px;
    line-height: 1.6;
}

.tm-footer-content small {
    margin-top: 12px;
    color: #b9cbe5;
    font-size: 14px;
}

@media (max-width: 600px) {
    .tm-footer {
        padding: 30px 18px;
    }

    .tm-footer-inner {
        gap: 22px;
    }

    .tm-footer-links {
        gap: 18px;
    }

    .tm-footer-content p {
        font-size: 14px;
    }
}
.tm-hero p {
    font-weight: 700;
}

/* Ajuste vertical de las tarjetas de categorías */
.tm-cats .tm-cat-grid {
    position: relative !important;
    top: -1px !important;
}
