﻿/* Post detail styles extracted from post.php. */

.txerpa-toast {
        position: fixed;
        top: 25px;
        right: 25px;

        background: #ffffff;

        border-left: 6px solid #22c55e;

        padding: 16px 24px;

        border-radius: 12px;

        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

        display: flex;

        align-items: center;

        gap: 12px;

        z-index: 9999;

        transform: translateX(150%);

        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

        font-family: sans-serif;

    }

    .txerpa-toast.show {

        transform: translateX(0);

    }

    .txerpa-toast .icon {

        color: #22c55e;

        font-weight: bold;

    }

    .txerpa-toast .message {

        color: #1f2937;

        font-weight: 600;

    }

    body.dark-theme .txerpa-toast {

        background: #1f2937;

        border-left-color: #4ade80;

    }

    body.dark-theme .txerpa-toast .message {

        color: #f3f4f6;

    }

    /* Estilo para estrellas ya votadas */

    .stars.voted {

        pointer-events: none;

        opacity: 0.8;

    }

    .star.active {
        color: #ffb400;
    }

    /* Footer Global Global */
    .global-footer {
        width: 100%;
        background-color: #000;
        color: #fff;
        padding: 80px 20px;
        text-align: center;
        margin-top: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .global-footer h2 {
        font-family: 'Gabii', sans-serif;
        font-size: clamp(2rem, 5vw, 4rem);
        font-weight: 800;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 2px;
        background: linear-gradient(to right, #fff, #999);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .youtube-cta {
        display: flex;
        justify-content: center;
        margin: 30px 0 10px;
    }

    .youtube-cta a {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 14px;
        text-decoration: none;
        font-weight: 800;
        font-family: 'Gabii', sans-serif;
        color: #fff;
        background: linear-gradient(135deg, #ef4444, #b91c1c);
        box-shadow: 0 16px 30px -18px rgba(239, 68, 68, 0.65);
        transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    }

    .youtube-cta a:hover {
        transform: translateY(-1px);
        box-shadow: 0 22px 44px -22px rgba(239, 68, 68, 0.85);
        filter: saturate(1.05);
    }

    .youtube-cta a:active {
        transform: translateY(0);
        box-shadow: 0 14px 24px -18px rgba(239, 68, 68, 0.7);
    }

    .rating-container {
        text-align: center;
        margin: 30px 35px 80px;
        display: flex;
        flex-direction: column;
        align-content: flex-end;
        flex-wrap: wrap;
    }

    .rating-count {
        font-weight: 800;
    }

    .youtube-cta .yt-icon {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }

    .youtube-cta .yt-external {
        width: 18px;
        height: 18px;
        opacity: 0.9;
        margin-left: 2px;
    }

    @font-face {
        font-family: "Nioicon";
        src: url("/fonts/Nioicon.ttf") format("truetype"),
             url("/media/fonts/Nioicon.ttf") format("truetype"),
             url("fonts/Nioicon.ttf") format("truetype"),
             url("/fonts/Nioicon.svg#Nioicon") format("svg"),
             url("/media/fonts/Nioicon.svg#Nioicon") format("svg"),
             url("fonts/Nioicon.svg#Nioicon") format("svg");
        font-weight: normal;
        font-style: normal;
        font-display: block;
    }

    .ni {
        font-family: "Nioicon" !important;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        speak: never;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .ni-linkedin:before { content: "\eacb"; }
    .ni-cmd:before { content: "\e9ec"; }
    .ni-copy:before { content: "\e9fb"; }
    .ni-menu:before { content: "\eaec"; }
    .ni-moon:before { content: "\eaff"; }
    .ni-sun:before { content: "\ebd9"; }
    .ni-cross:before { content: "\ea06"; }

    .rs-menu-social-list {
        position: fixed;
        left: 10px;
        top: 33%;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 10010;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-tools.rs-menu-scope {
        position: static !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        display: block !important;
        width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        gap: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
        z-index: auto;
    }

    .rs-menu-social-item {
        position: relative;
    }

    .rs-menu-social-item a,
    .rs-menu-social-item button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .1);
        background: #1f2933;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        text-decoration: none;
        transition: 0.3s;
        padding: 0;
        font: inherit;
    }

    .rs-menu-social-item a:hover,
    .rs-menu-social-item button:hover {
        background: #111827;
        color: #fff;
        border-color: #111827;
    }

    .rs-menu-social-item .ni {
        font-size: 27px;
    }

    .rs-menu-tooltip {
        position: absolute;
        left: 55px;
        top: 50%;
        transform: translateY(-50%);
        background: #000;
        color: #fff;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
    }

    .rs-menu-social-item:hover .rs-menu-tooltip,
    .rs-menu-tooltip.show {
        opacity: 1;
    }

    body.dark-theme .rs-menu-social-item a,
    body.dark-theme .rs-menu-social-item button {
        background-color: #1e293b;
        border-color: #334155;
        color: #fff;
    }

    .rs-offcanvas-backdrop,
    .rs-side-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(5, 10, 20, 0.58);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 10020;
        backdrop-filter: blur(6px);
    }

    .rs-side-menu-overlay[hidden] {
        display: none;
    }

    .rs-offcanvas-menu,
    .rs-side-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(520px, 100vw);
        height: 100vh;
        transform: translateX(104%);
        transition: transform 0.34s cubic-bezier(.22, .8, .22, 1);
        z-index: 10030;
        background: #f8fafc;
        color: #151d2b;
        box-shadow: -30px 0 70px rgba(5, 10, 20, .22);
        overflow-y: auto;
        font-family: 'Gabii', sans-serif;
    }

    body.rs-menu-open {
        overflow: hidden;
    }

    body.rs-menu-open .rs-offcanvas-backdrop,
    body.rs-menu-open .rs-side-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.rs-menu-open .rs-offcanvas-menu,
    body.rs-menu-open .rs-side-menu,
    .rs-side-menu.is-open {
        transform: translateX(0);
    }

    .rs-offcanvas-inner {
        min-height: 100%;
        padding: 28px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .rs-offcanvas-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .rs-offcanvas-kicker {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 4px 10px;
        border-radius: 999px;
        background: #151d2b;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .02em;
    }

    .rs-offcanvas-close,
    .rs-side-menu-close {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(21, 29, 43, .12);
        border-radius: 999px;
        background: #fff;
        color: #151d2b;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 24px rgba(21, 29, 43, .08);
    }

    .rs-offcanvas-close .ni,
    .rs-side-menu-close .ni {
        font-size: 18px;
    }

    .rs-profile-card {
        position: relative;
        overflow: hidden;
        border-radius: 24px;
        background: #151d2b;
        color: #fff;
        padding: 22px;
        display: grid;
        grid-template-columns: 92px 1fr;
        gap: 18px;
        align-items: center;
    }

    .rs-profile-card::before {
        content: "";
        position: absolute;
        inset: auto -20% -45% 20%;
        height: 150px;
        pointer-events: none;
    }

    .rs-profile-photo {
        position: relative;
        width: 92px;
        height: 92px;
        border-radius: 22px;
        object-fit: cover;
        border: 3px solid rgba(255,255,255,.2);
        box-shadow: 0 20px 36px rgba(0,0,0,.28);
    }

    .rs-profile-copy {
        position: relative;
    }

    .rs-profile-copy h2 {
        font-family: 'Obviously', 'Gabii', sans-serif;
        font-size: 30px;
        line-height: 1;
        margin: 0 0 8px;
        letter-spacing: 0;
    }

    .rs-profile-copy p {
        margin: 0;
        color: rgba(255,255,255,.78);
        line-height: 1.55;
        font-size: 15px;
    }

    .rs-menu-cta-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rs-menu-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 10px 14px;
        border-radius: 999px;
        text-decoration: none;
        font-weight: 900;
        color: #151d2b;
        background: #f07b02;
        box-shadow: 0 16px 32px rgba(21, 29, 43, .12);
    }

    .rs-menu-cta.secondary {
        background: #fff;
        border: 1px solid rgba(21, 29, 43, .12);
    }

    .rs-menu-section {
        display: grid;
        gap: 12px;
    }

    .rs-menu-section h3 {
        margin: 0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .14em;
        color: #667085;
        font-weight: 900;
    }

    .rs-menu-chip-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 9px;
    }

    .rs-menu-chip {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 8px 13px;
        border-radius: 999px;
        background: #fff;
        color: #151d2b;
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
        border: 1px solid rgba(21, 29, 43, .1);
        transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    }

    .rs-menu-chip:hover {
        transform: translateY(-2px);
        background: #151d2b;
        color: #fff;
        box-shadow: 0 14px 26px rgba(21, 29, 43, .16);
    }

    .rs-menu-chip.featured {
        background: #f07b02;
        border-color: #f07b02;
        color: #fff;
    }

    body.dark-theme .rs-offcanvas-menu,
    body.dark-theme .rs-side-menu {
        background: #0f172a;
        color: #f3f4f6;
    }

    body.dark-theme .rs-offcanvas-close,
    body.dark-theme .rs-side-menu-close,
    body.dark-theme .rs-menu-chip,
    body.dark-theme .rs-menu-cta.secondary {
        background: #1e293b;
        color: #f3f4f6;
        border-color: #334155;
    }

    body.dark-theme .rs-menu-section h3 {
        color: #94a3b8;
    }

    @media (max-width: 1200px) {
        .rs-menu-tooltip {
            display: none;
        }
    }

    @media (max-width: 768px) {
        body {
            padding-bottom: 104px;
        }

        .rs-menu-social-list {
            left: 12px;
            right: 12px;
            top: auto;
            bottom: max(14px, env(safe-area-inset-bottom));
            transform: none;
            width: auto;
            min-height: 70px;
            justify-content: space-around;
            align-items: center;
            gap: 8px;
            padding: 8px;
            border: 1px solid rgba(21, 29, 43, .12);
            border-radius: 999px;
            background: #e78c2d;
            box-shadow: 0 18px 45px rgba(5, 10, 20, .18);
            backdrop-filter: blur(14px);
            z-index: 10010;
        }

        .rs-menu-social-item a,
        .rs-menu-social-item button {
            width: 54px;
            height: 54px;
            border-color: transparent;
            background: transparent;
        }

        .rs-menu-social-item .ni {
            font-size: 25px;
        }

        .rs-menu-social-item--menu button {
            background: #f07b02;
            color: #fff;
            box-shadow: 0 12px 24px rgba(240, 123, 2, .28);
        }

        body.dark-theme .rs-menu-social-item--menu button {
            background: #f07b02;
            border-color: #f07b02;
            color: #fff;
        }

        body.dark-theme .rs-menu-social-list {
            background: rgba(15, 23, 42, .94);
            border-color: rgba(255, 255, 255, .12);
        }

        .post-navigation {
            flex-direction: column !important;
            gap: 18px;
            margin-top: 44px;
        }

        .nav-box {
            width: 100%;
            min-height: 132px;
            flex: none;
        }

        .nav-img {
            width: 108px;
            height: 108px;
            flex: 0 0 108px;
        }

        .nav-content {
            min-width: 0;
        }

        .nav-content strong {
            font-size: 18px;
            line-height: 1.2;
            overflow-wrap: anywhere;
        }
    }

    @media (max-width: 640px) {
        .section_imagen_footer {display: none;}

        .rs-menu-social-list {display: flex;flex-direction: row;}
        .rs-offcanvas-inner {
            padding: 20px;
        }

        .rs-profile-card {
            grid-template-columns: 76px 1fr;
            border-radius: 20px;
        }

        .rs-profile-photo {
            width: 76px;
            height: 76px;
        }

        .nav-box {
            align-items: stretch;
        }

        .nav-img {
            width: 96px;
            min-height: 124px;
            height: auto;
            flex-basis: 96px;
        }

        .nav-content {
            padding: 18px;
        }

        .rs-menu-cta-row {
            grid-template-columns: 1fr;
        }
    }

    .post-faq {
        max-width: 900px;
        margin: 56px auto 34px;
        padding: 0 20px;
        font-family: 'Gabii', sans-serif;
    }

    .post-faq h2 {
        font-family: 'Obviously', 'Gabii', sans-serif;
        font-size: clamp(1.7rem, 3vw, 2.5rem);
        margin: 0 0 22px;
        color: #151d2b;
        letter-spacing: 0;
    }

    .post-faq__item {
        border: 1px solid rgba(21, 29, 43, 0.12);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 16px 38px rgba(21, 29, 43, 0.06);
        overflow: hidden;
    }

    .post-faq__item + .post-faq__item {
        margin-top: 12px;
    }

    .faq-wp-acf__question {
        width: 100%;
        border: 0;
        background: transparent;
        padding: 22px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        cursor: pointer;
        text-align: left;
        font-size: 18px;
        font-weight: 700;
        color: #151d2b;
        list-style: none;
    }

    .faq-wp-acf__question::-webkit-details-marker {
        display: none;
    }

    .faq-wp-acf__question::after {
        content: "+";
        width: 30px;
        height: 30px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30px;
        background: #f07b02;
        color: #0e0f11;;
        font-size: 20px;
        line-height: 1;
    }

    .post-faq__item[open] .faq-wp-acf__question::after {
        content: "-";
    }

    .post-faq__answer {
        padding: 0 24px 24px;
        color: #4b5563;
        line-height: 1.7;
        font-size: 17px;
    }

    .post-faq__answer p {
        margin: 0;
    }

    body.dark-theme .post-faq h2,
    body.dark-theme .faq-wp-acf__question {
        color: #f3f4f6;
    }

    body.dark-theme .post-faq__item {
        background: #1f2937;
        border-color: #334155;
    }

    body.dark-theme .post-faq__answer {
        color: #d1d5db;
    }

    .entry-content a.i8-link-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin: 12px 8px 12px 0;
        padding: 11px 18px;
        border: 1px solid #d04a01;
        border-radius: 999px;
        background: #f07b02;
        color: #141c2b;
        font-weight: 800;
        line-height: 1.15;
        text-decoration: none;
        box-shadow: 0 14px 28px rgba(240, 123, 2, .22);
        transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    }

    .entry-content a.i8-link-pill:hover {
        background: #e78c2d;
        color: #141c2b;
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(208, 74, 1, .25);
    }

    body.dark-theme .entry-content a.i8-link-pill {
        border-color: rgba(240, 123, 2, .68);
        background: #141c2b;
        color: #f3f6fb !important;
        box-shadow: 0 14px 32px rgba(111, 28, 186, .28);
    }

    body.dark-theme .entry-content a.i8-link-pill:hover {
        background: #1f2937;
        color: #e78c2d !important;
        box-shadow: 0 18px 38px rgba(240, 123, 2, .22);
    }

    .entry-content .i8-highlight-box {
        margin: 42px 0;
        padding: clamp(20px, 3vw, 30px);
        border: 1px solid rgba(208, 74, 1, .24);
        border-left: 6px solid #f07b02;
        border-radius: 18px;
        background: #fff3e7;
        color: #141c2b;
        font-weight: 700;
        line-height: 1.55;
        box-shadow: 0 18px 42px rgba(240, 123, 2, .14);
    }

    body.dark-theme .entry-content .i8-highlight-box {
        border-color: rgba(240, 123, 2, .45);
        border-left-color: #e78c2d;
        background: linear-gradient(135deg, rgba(20, 28, 43, .96), rgba(31, 41, 55, .96));
        color: #f3f6fb !important;
        box-shadow: 0 18px 44px rgba(111, 28, 186, .24);
    }

    .entry-content pre {
        margin: 42px 0;
        padding: clamp(18px, 3vw, 28px);
        border: 1px solid rgba(20, 28, 43, .12);
        border-radius: 16px;
        background: #111827;
        color: #e5e7eb;
        overflow-x: auto;
        white-space: pre;
        box-shadow: 0 20px 44px rgba(17, 24, 39, .18);
    }

    .entry-content pre code {
        font-family: Consolas, "Courier New", monospace;
        font-size: 15px;
        line-height: 1.7;
    }

    .entry-content :not(pre) > code {
        padding: 2px 6px;
        border-radius: 6px;
        background: rgba(17, 24, 39, .08);
        color: #111827;
        font-family: Consolas, "Courier New", monospace;
        font-size: .92em;
    }

    body.dark-theme .entry-content pre {
        border-color: rgba(240, 123, 2, .28);
        background: #020617;
        color: #e5e7eb !important;
        box-shadow: 0 20px 44px rgba(2, 6, 23, .38);
    }

    body.dark-theme .entry-content :not(pre) > code {
        background: rgba(229, 231, 235, .12);
        color: #f3f6fb !important;
    }

    .post-contact-cta {
        max-width: 900px;
        margin: 34px auto 52px;
        padding: 0 20px;
        text-align: center;
    }

    .post-contact-cta a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 13px 24px;
        border: 1px solid #d04a01;
        border-radius: 999px;
        background: #f07b02;
        color: #141c2b;
        font-family: 'Gabii', sans-serif;
        font-size: 17px;
        font-weight: 900;
        line-height: 1.15;
        text-decoration: none;
        box-shadow: 0 16px 34px rgba(240, 123, 2, .24);
        transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    }

    .post-contact-cta a:hover {
        background: #e78c2d;
        color: #141c2b;
        transform: translateY(-1px);
        box-shadow: 0 20px 40px rgba(208, 74, 1, .26);
    }

    body.dark-theme .post-contact-cta a {
        border-color: rgba(240, 123, 2, .72);
        background: #141c2b;
        color: #f3f6fb !important;
        box-shadow: 0 16px 36px rgba(111, 28, 186, .28);
    }

    body.dark-theme .post-contact-cta a:hover {
        background: #1f2937;
        color: #e78c2d !important;
        box-shadow: 0 20px 42px rgba(240, 123, 2, .22);
    }

