/* Tasa Secundaria - v1.1.7 */
.pcc-tasa-widget {
    width: 100%;
    max-width: 760px;
    margin: 20px auto;
    font-family: "Roboto", Arial, sans-serif;
    color: #333;
    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.pcc-tasa-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 17px 20px;
    border-top: 5px solid #0072bc;
    background: #f8fafc;
    border-bottom: 0;
    text-align: center;
}

.pcc-tasa-title {
    margin: 0 0 4px;
    color: #111827;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
}

.pcc-tasa-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: normal;
    text-align: center;
}

.pcc-tasa-refresh {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #0072bc;
    color: #fff;
    font-size: 23px;
    line-height: 38px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.pcc-tasa-refresh:hover {
    opacity: .9;
}

.pcc-tasa-refresh.is-loading {
    animation: pcc-spin .8s linear infinite;
}

@keyframes pcc-spin {
    to { transform: rotate(360deg); }
}

.pcc-tasa-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pcc-tasa-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 17px;
}

.pcc-tasa-table th,
.pcc-tasa-table td {
    padding: 9px 15px;
    border-bottom: 1px solid #e7eaed;
    vertical-align: middle;
}

.pcc-tasa-table th {
    background: #fff;
    color: #334155;
    font-size: 21px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .2px;
}

.pcc-tasa-table th:first-child {
    width: 46%;
    text-align: center;
}

.pcc-tasa-table td:first-child {
    width: 46%;
    text-align: center;
}

.pcc-tasa-table th:nth-child(2),
.pcc-tasa-table th:nth-child(3),
.pcc-tasa-table td:nth-child(2),
.pcc-tasa-table td:nth-child(3) {
    width: 27%;
    text-align: center;
}

.pcc-tasa-table tbody tr:nth-child(odd) {
    background: #f8fafc;
}

.pcc-tasa-table tbody tr:nth-child(even) {
    background: #fff;
}

.pcc-tasa-table tbody tr:hover {
    background: #eef6fb;
}

.pcc-currency {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pcc-currency-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.pcc-flag {
    display: block;
    width: 38px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 38px;
    transform: translateY(8px);
}

.pcc-currency strong {
    display: block;
    color: #334155;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
}

.pcc-currency small {
    display: block;
    margin-top: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.2;
}

.pcc-formal,
.pcc-informal {
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
}

.pcc-formal {
    color: #334155;
}

.pcc-informal {
    color: #334155;
}

.pcc-tasa-footer {
    margin-top: 10px;
    padding: 0 18px 12px;
    color: #64748b;
    font-size: 12px;
    text-align: right;
}

.pcc-tasa-status {
    color: inherit;
    font-weight: 400;
}

.pcc-tasa-sources {
    padding: 0 18px 14px;
    color: #8a8f94;
    font-size: 11px;
}

@media (max-width: 600px) {
    .pcc-tasa-widget {
        border-radius: 0;
        margin: 15px 0;
    }

    .pcc-tasa-header {
        padding: 14px;
    }

    .pcc-tasa-title {
        font-size: 21px;
    }

    .pcc-tasa-subtitle {
        font-size: 12px;
    }

    .pcc-tasa-table-wrap {
        overflow-x: hidden;
    }

    .pcc-tasa-table {
        width: 100%;
        min-width: 0;
        font-size: 14px;
    }

    .pcc-tasa-table th,
    .pcc-tasa-table td {
        padding: 6px 5px;
    }

    .pcc-tasa-table th {
        font-size: 15px;
    }

    .pcc-tasa-table th:first-child,
    .pcc-tasa-table td:first-child {
        width: 40%;
    }

    .pcc-tasa-table th:nth-child(2),
    .pcc-tasa-table th:nth-child(3),
    .pcc-tasa-table td:nth-child(2),
    .pcc-tasa-table td:nth-child(3) {
        width: 30%;
    }

    .pcc-currency-main {
        gap: 6px;
    }

    .pcc-flag {
        width: 32px;
        height: 24px;
        flex-basis: 32px;
        transform: none;
    }

    .pcc-currency strong {
        font-size: 18px;
        font-weight: 400;
    }

    .pcc-currency small {
        display: none;
    }

    .pcc-formal,
    .pcc-informal {
        font-size: 18px;
        font-weight: 400;
    }

    .pcc-tasa-footer {
        font-size: 12px;
    }
}

/* El shortcode responsive conserva siempre la presentación breve de móvil. */
.pcc-tasa-widget.pcc-tasa-force-responsive {
    border-radius: 0;
    margin: 15px 0;
}

.pcc-tasa-force-responsive .pcc-tasa-header {
    padding: 14px;
}

.pcc-tasa-force-responsive .pcc-tasa-title {
    font-size: 21px;
}

.pcc-tasa-force-responsive .pcc-tasa-subtitle {
    font-size: 12px;
}

.pcc-tasa-force-responsive .pcc-tasa-table-wrap {
    overflow-x: hidden;
}

.pcc-tasa-force-responsive .pcc-tasa-table {
    width: 100%;
    min-width: 0;
    font-size: 14px;
}

.pcc-tasa-force-responsive .pcc-tasa-table th,
.pcc-tasa-force-responsive .pcc-tasa-table td {
    padding: 6px 5px;
}

.pcc-tasa-force-responsive .pcc-tasa-table th {
    font-size: 15px;
}

.pcc-tasa-force-responsive .pcc-tasa-table th:first-child,
.pcc-tasa-force-responsive .pcc-tasa-table td:first-child {
    width: 40%;
}

.pcc-tasa-force-responsive .pcc-tasa-table th:nth-child(2),
.pcc-tasa-force-responsive .pcc-tasa-table th:nth-child(3),
.pcc-tasa-force-responsive .pcc-tasa-table td:nth-child(2),
.pcc-tasa-force-responsive .pcc-tasa-table td:nth-child(3) {
    width: 30%;
}

.pcc-tasa-force-responsive .pcc-currency-main {
    gap: 6px;
}

.pcc-tasa-force-responsive .pcc-flag {
    width: 32px;
    height: 24px;
    flex-basis: 32px;
    transform: none;
}

.pcc-tasa-force-responsive .pcc-currency strong {
    font-size: 18px;
    font-weight: 400;
}

.pcc-tasa-force-responsive .pcc-currency small {
    display: none;
}

.pcc-tasa-force-responsive .pcc-formal,
.pcc-tasa-force-responsive .pcc-informal {
    font-size: 18px;
    font-weight: 400;
}

.pcc-tasa-force-responsive .pcc-tasa-footer {
    font-size: 12px;
}
