/*
Theme Name: Orbital Child
Template: orbital
Description: Tema hijo de Orbital para TuDinerito
Version: 1.1
*/

/* ==========================================================
   TuDinerito - CSS propio
   Migrado desde CSS adicional de WordPress.
   ========================================================== */


/* ==========================================================
   1. TABLAS PROMOS PRO
   ========================================================== */

.promos-pro {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 28px 0;
    border-radius: 18px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(3px);
}

.promos-pro td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.promos-pro tr:last-child td {
    border-bottom: none;
}

.promos-pro td:first-child {
    width: 42%;
    font-weight: 700;
    color: #111;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.promos-pro tr:first-child td {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.promos-pro a {
    color: #005fcc;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.promos-pro a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.promos-pro:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .promos-pro {
        font-size: 14px;
        border-radius: 14px;
    }

    .promos-pro td {
        padding: 12px;
    }

    .promos-pro td:first-child {
        width: 45%;
    }
}


/* ==========================================================
   2. BLOQUES DE WHATSAPP Y TELEGRAM
   ========================================================== */

.td-whatsapp,
.td-telegram {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    padding: 18px;
    margin: 30px 0;
    text-decoration: none;
    transition: all 0.25s ease;
}

.td-whatsapp {
    background: #f3fff6;
    border: 2px solid #25D366;
}

.td-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.18);
}

.td-whatsapp svg,
.td-telegram svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.td-whatsapp h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #128C7E;
}

.td-whatsapp p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.td-telegram {
    background: #f3faff;
    border: 2px solid #229ED9;
}

.td-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.18);
}

.td-telegram h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #229ED9;
}

.td-telegram p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}


/* ==========================================================
   3. TÍTULOS DE FICHAS EN LISTADOS Y CATEGORÍAS
   ========================================================== */

.entry-content h3.tdtk-listing-title {
    width: 100%;
    max-width: 760px;
    margin: 34px auto 7px;
    padding: 0 0 5px;
    background: transparent;
    border: 0;
    color: #17202a;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    position: relative;
}

.entry-content h3.tdtk-listing-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 5px;
    background: #1d72d8;
    border-radius: 3px;
}

.entry-content h3.tdtk-listing-title + .wp-block-html {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 30px;
    padding: 0;
}

.entry-content h3.tdtk-listing-title + .wp-block-html .tdtk-card {
    margin-top: 0;
}

.tdtk-card-listing .tdtk-card-footer {
    display: none;
}

@media (max-width: 600px) {
    .entry-content h3.tdtk-listing-title {
        margin-top: 26px;
        margin-bottom: 6px;
        padding-bottom: 5px;
        font-size: 18px;
        line-height: 1.3;
    }

    .entry-content h3.tdtk-listing-title::after {
        width: 34px;
        height: 2px;
        margin-top: 4px;
    }

    .entry-content h3.tdtk-listing-title + .wp-block-html {
        margin-bottom: 24px;
    }
}


/* ==========================================================
   4. BLOQUE GANAR DINERO - PORTADA
   ========================================================== */

.tdtk-home-earn {
    margin: 40px 0;
}

.tdtk-home-earn-header,
.tdtk-home-save-header,
.tdtk-home-invest-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}

.tdtk-home-earn-header h2,
.tdtk-home-save-header h2,
.tdtk-home-invest-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
}

.tdtk-home-earn-header p,
.tdtk-home-save-header p,
.tdtk-home-invest-header p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

.tdtk-home-earn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tdtk-home-earn-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 18px;
    text-decoration: none !important;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tdtk-home-earn-item:hover {
    transform: translateY(-2px);
    border-color: #d5d5d5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.tdtk-home-earn-icon {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 24px;
    border-radius: 10px;
    background: #f5f5f5;
}

.tdtk-home-earn-title {
    align-self: end;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.tdtk-home-earn-text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.tdtk-home-earn-more {
    margin-top: 22px;
    text-align: center;
}

.tdtk-home-earn-more a {
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767px) {
    .tdtk-home-earn {
        margin: 32px 0;
    }

    .tdtk-home-earn-header {
        margin-bottom: 22px;
    }

    .tdtk-home-earn-header h2,
    .tdtk-home-save-header h2,
    .tdtk-home-invest-header h2 {
        font-size: 27px;
    }

    .tdtk-home-earn-header p,
    .tdtk-home-save-header p,
    .tdtk-home-invest-header p {
        font-size: 16px;
    }

    .tdtk-home-earn-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tdtk-home-earn-item {
        display: block;
        padding: 15px;
    }

    .tdtk-home-earn-icon {
        margin-bottom: 9px;
    }

    .tdtk-home-earn-title {
        display: block;
        font-size: 16px;
    }

    .tdtk-home-earn-text {
        font-size: 13px;
    }
}


/* ==========================================================
   5. BLOQUES AHORRAR E INVERTIR - PORTADA
   ========================================================== */

.tdtk-home-save,
.tdtk-home-invest {
    margin: 55px 0;
}

.tdtk-home-save-card,
.tdtk-home-invest-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 28px 30px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tdtk-home-save-card:hover,
.tdtk-home-invest-card:hover {
    transform: translateY(-2px);
    border-color: #d5d5d5;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.08);
}

.tdtk-home-save-icon,
.tdtk-home-invest-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f5f5f5;
    font-size: 31px;
}

.tdtk-home-save-content,
.tdtk-home-invest-content {
    flex: 1;
}

.tdtk-home-save-content h3,
.tdtk-home-invest-content h3 {
    margin: 0 0 7px;
    font-size: 22px;
    line-height: 1.3;
}

.tdtk-home-save-content p,
.tdtk-home-invest-content p {
    margin: 0 0 17px;
    font-size: 16px;
    line-height: 1.55;
    color: #555;
}

.tdtk-home-save-tags,
.tdtk-home-invest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tdtk-home-save-tags span,
.tdtk-home-invest-tags span {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    background: #f5f5f5;
    font-size: 14px;
    color: #555;
}

.tdtk-home-save-link,
.tdtk-home-invest-link {
    font-weight: 600;
    color: #2188e8;
}

@media (max-width: 767px) {
    .tdtk-home-save,
    .tdtk-home-invest {
        margin: 40px 0;
    }

    .tdtk-home-save-card,
    .tdtk-home-invest-card {
        gap: 15px;
        padding: 20px;
    }

    .tdtk-home-save-icon,
    .tdtk-home-invest-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 25px;
        border-radius: 11px;
    }

    .tdtk-home-save-content h3,
    .tdtk-home-invest-content h3 {
        font-size: 19px;
    }

    .tdtk-home-save-content p,
    .tdtk-home-invest-content p {
        font-size: 15px;
    }

    .tdtk-home-save-tags,
    .tdtk-home-invest-tags {
        gap: 6px;
    }

    .tdtk-home-save-tags span,
    .tdtk-home-invest-tags span {
        font-size: 13px;
        padding: 5px 9px;
    }
}


/* ==========================================================
   6. BLOQUE INFORMATIVO DE LA PORTADA
   ========================================================== */

.td-info-box {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin: 32px 0;
    padding: 22px 28px;
    background: #f4fffc;
    border: 1px solid #bfeee3;
    border-left: 6px solid #00b894;
    border-radius: 12px;
    box-sizing: border-box;
}

.td-info-icon {
    flex: 0 0 38px;
    font-size: 28px;
    line-height: 1.4;
    text-align: center;
}

.td-info-content {
    font-size: 18px;
    line-height: 1.7;
    color: #17202a;
}

.td-info-content strong {
    font-weight: 700;
    color: #111;
    margin-right: 5px;
}

@media (max-width: 767px) {
    .td-info-box {
        gap: 12px;
        padding: 18px 16px;
        margin: 26px 0;
    }

    .td-info-icon {
        flex-basis: 30px;
        font-size: 24px;
    }

    .td-info-content {
        font-size: 16px;
        line-height: 1.6;
    }
}


/* =========================================================
   7. H1 DE LAS PÁGINAS
   ========================================================= */

.default-header .title {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: #000;
}

.default-header {
    padding-top: 30px;
    padding-bottom: 20px;
}

@media (max-width: 767px) {
    .default-header .title {
        font-size: 32px;
        line-height: 1.15;
    }

    .default-header {
        padding-top: 25px;
        padding-bottom: 25px;
    }
}