/* ============================================================
   Página: Tipo de cambio en línea USD/PEN
   Colores institucionales: #00C1D7, #005481, #FFC700, #FFFFFF
   ============================================================ */

/* Cabecera / Hero */
.tc-hero {
    background: linear-gradient(135deg, #005481 0%, #00C1D7 100%);
    color: #ffffff;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.tc-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    background: rgba(255, 199, 0, 0.20);
    border-radius: 50%;
}

.tc-hero::before {
    content: "";
    position: absolute;
    left: -60px;
    top: -70px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.tc-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.tc-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tc-hero h1 {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 2.1rem;
    margin-bottom: 0.75rem;
}

.tc-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
    margin: 0 auto 0.9rem;
    font-size: 1rem;
}

.tc-hero .tc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 0.35rem 0.95rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tc-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: tc-pulse 1.8s infinite;
}

@keyframes tc-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70%  { box-shadow: 0 0 0 9px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Contenedor principal */
.tc-wrapper {
    max-width: 1000px;
    margin: -42px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 15px 60px;
}

.tc-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0, 84, 129, 0.12);
    border: 1px solid #eef2f6;
    padding: 2.25rem 2.25rem 2.75rem;
}

/* Barra de estado del gráfico */
.tc-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.tc-chart-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #005481;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0;
}

.tc-chart-title .tc-symbol {
    background: #eef7fb;
    color: #005481;
    border-radius: 8px;
    padding: 0.15rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.tc-chart-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.tc-chart-meta .tc-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 0.25rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Widget de TradingView */
.tc-widget-frame {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    height: 560px;
    box-shadow: inset 0 0 0 1px rgba(0, 84, 129, 0.02);
}

.tc-widget-frame .tradingview-widget-container {
    height: 100%;
    width: 100%;
}

.tc-widget-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

.tc-widget-note i {
    color: #00C1D7;
    margin-top: 0.15rem;
}

/* Tarjetas informativas */
.tc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.tc-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #00C1D7;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.35rem;
}

.tc-info-card .tc-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 193, 215, 0.12);
    color: #005481;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tc-info-card h3 {
    color: #005481;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.tc-info-card p {
    color: #3f4a57;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

.tc-info-card:nth-child(2) {
    border-top-color: #FFC700;
}

.tc-info-card:nth-child(2) .tc-info-icon {
    background: rgba(255, 199, 0, 0.16);
}

.tc-info-card:nth-child(3) {
    border-top-color: #005481;
}

.tc-info-card:nth-child(3) .tc-info-icon {
    background: rgba(0, 84, 129, 0.12);
}

/* Aviso / disclaimer */
.tc-disclaimer {
    background: #f8fafc;
    border-left: 4px solid #FFC700;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #334155;
    font-weight: 500;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.tc-disclaimer a {
    color: #005481;
    font-weight: 700;
    text-decoration: none;
}

.tc-disclaimer a:hover {
    color: #00C1D7;
    text-decoration: underline;
}

/* Botón volver */
.tc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #005481;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tc-back:hover {
    color: #00C1D7;
}

/* Responsive */
@media (max-width: 991.98px) {
    .tc-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .tc-hero {
        padding: 48px 0 64px;
    }

    .tc-hero h1 {
        font-size: 1.5rem;
    }

    .tc-card {
        padding: 1.5rem 1.25rem;
    }

    .tc-wrapper {
        margin-top: -30px;
    }

    .tc-widget-frame {
        height: 440px;
    }
}
