/*
╔═══════════════════════════════════════════════════════════════════════════════╗
║                         BOLIVIA PRECIO DÓLAR                                  ║
║                    Copyright © 2025 Gary21arts - Bolivia                       ║
║                         Todos los derechos reservados                         ║
╚═══════════════════════════════════════════════════════════════════════════════╝

AVISO LEGAL DE COPYRIGHT Y PROPIEDAD INTELECTUAL:

Este código CSS y todos sus estilos están protegidos por las leyes de propiedad
intelectual de Bolivia y tratados internacionales de derechos de autor.

QUEDA ESTRICTAMENTE PROHIBIDO:
• Copiar, reproducir o duplicar estos estilos en su totalidad o en parte
• Modificar, adaptar o crear diseños derivados basados en estos estilos
• Distribuir, publicar o compartir este código sin autorización expresa
• Utilizar estos estilos con fines comerciales sin licencia
• Eliminar o modificar este aviso de copyright

AUTOR: Gary21arts | PAÍS: Bolivia | AÑO: 2025

VIOLACIONES:
Cualquier uso no autorizado de este código constituye una violación de los 
derechos de autor y puede resultar en acciones legales conforme a la legislación 
boliviana e internacional.

═══════════════════════════════════════════════════════════════════════════════
DESCARGO DE RESPONSABILIDAD:

La información presentada en este sitio web sobre el precio del dólar paralelo 
en Bolivia tiene únicamente fines informativos y no constituye asesoramiento 
financiero, de inversión o comercial. Los datos de cotización del dólar provienen 
del mercado P2P de Binance y pueden no reflejar el precio exacto en otros 
mercados o casas de cambio locales.

Bolivia Precio Dólar no se hace responsable de las decisiones financieras 
tomadas en base a la información aquí presentada. El dólar paralelo opera en 
un mercado informal y puede estar sujeto a regulaciones locales. Le recomendamos 
consultar con profesionales financieros y verificar la legalidad de sus 
transacciones antes de operar. El uso de este sitio implica la aceptación de 
estos términos.
═══════════════════════════════════════════════════════════════════════════════
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.price-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.date-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #6e6e73;
    margin-bottom: 30px;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}

.price-value {
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 25%, #8b5cf6 50%, #ec4899 75%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: gradientShift 8s ease infinite;
    background-size: 200% auto;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.currency {
    font-size: 2.5rem;
    font-weight: 600;
    color: #6e6e73;
}

.pair-badge {
    display: inline-block;
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.source-info {
    font-size: 0.85rem;
    color: #86868b;
    margin-bottom: 5px;
}

.last-update {
    font-size: 0.8rem;
    color: #86868b;
}

.content-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px 60px;
}

.content-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 25px;
    line-height: 1.3;
}

.content-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
    margin-top: 40px;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-top: 35px;
    margin-bottom: 15px;
}

.content-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-top: 30px;
    margin-bottom: 12px;
}

.content-section ul {
    margin: 15px 0 20px 30px;
    color: #6e6e73;
}

.content-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-section p {
    font-size: 1.05rem;
    color: #6e6e73;
    margin-bottom: 15px;
    text-align: justify;
}

.disclaimer {
    background-color: #f5f5f7;
    border-left: 4px solid #f97316;
    padding: 25px;
    margin-top: 40px;
    border-radius: 8px;
}

.disclaimer p {
    font-size: 0.95rem;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

footer {
    background-color: #f5f5f7;
    text-align: center;
    padding: 30px 20px;
    color: #6e6e73;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .price-value {
        font-size: 4rem;
    }
    
    .currency {
        font-size: 1.8rem;
    }
    
    .date-title {
        font-size: 1.2rem;
    }
    
    .content-section h1 {
        font-size: 1.8rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .content-section ul {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .price-value {
        font-size: 3rem;
    }
    
    .currency {
        font-size: 1.4rem;
    }
    
    .price-display {
        gap: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ESTILOS PARA GRÁFICA HISTÓRICA
   ═══════════════════════════════════════════════════════════════════════════ */

.chart-section {
    background: white;
    border-radius: 18px;
    padding: 30px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chart-btn {
    background: #f5f5f7;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn:hover {
    background: #e8e8ed;
}

.chart-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#price-chart {
    width: 100%;
    min-height: 350px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .chart-section {
        padding: 20px 15px;
        margin: 20px 10px;
        border-radius: 12px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-title {
        font-size: 1.2rem;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .chart-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    #price-chart {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .chart-controls {
        display: flex;
        gap: 8px;
        width: 100%;
    }
    
    .chart-btn {
        flex: 1;
        padding: 12px 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTROLES DE ZOOM
   ═══════════════════════════════════════════════════════════════════════════ */

.chart-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.zoom-controls {
    display: flex;
    gap: 5px;
}

.zoom-btn {
    background: #f5f5f7;
    border: 1px solid #d1d1d6;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.zoom-btn:hover {
    background: #e8e8ed;
    border-color: #b8b8bd;
}

.zoom-btn:active {
    transform: scale(0.95);
}

#zoom-in {
    font-size: 1.4rem;
}

#zoom-out {
    font-size: 1.6rem;
}

#zoom-reset {
    font-size: 1.3rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .chart-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .chart-controls {
        width: 100%;
    }
    
    .zoom-controls {
        width: 100%;
        justify-content: center;
    }
    
    .zoom-btn {
        flex: 1;
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    #zoom-in {
        font-size: 1.3rem;
    }
    
    #zoom-out {
        font-size: 1.5rem;
    }
}
