* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.dashboard {
    background: transparent;
    border-radius: 0;
    padding: 20px 60px 10px 60px;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    flex-shrink: 0;
}

.header h1 {
    color: #e8e8e8;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.header h1 .brand-number {
    font-weight: 600;
    color: #ff6b6b;
}

.header h1 .brand-domain {
    font-weight: 200;
    color: #c0c0c0;
    font-size: 0.85em;
}

.header .country {
    color: #888;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 16px;
    text-transform: uppercase;
}

.header .subtitle {
    color: #a0a0a0;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    flex: 1;
    align-content: start;
    margin-bottom: 0;
}

.dolar-card {
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 8px;
    padding: 32px;
    transition: all 0.2s ease;
    position: relative;
}

.dolar-card:hover {
    border-color: rgba(100, 100, 100, 0.4);
    background: rgba(45, 45, 45, 0.7);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #d0d0d0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.price-section {
    text-align: center;
    flex: 1;
}

.price-label {
    font-size: 0.8rem;
    color: #999999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 200;
    color: #f5f5f5;
    letter-spacing: -1px;
}

.impuestos-label {
    color: #b0b0b0;
    font-weight: 400;
}

.timestamp {
    text-align: center;
    padding: 20px 0 10px 0;
    color: #a0a0a0;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.auto-update-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    margin-bottom: 5px;
}

.sync-icon {
    width: 12px;
    height: 12px;
    border: 1px solid #888;
    border-radius: 50%;
    position: relative;
    animation: rotate 2s linear infinite;
}

.sync-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 4px solid #888;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auto-update-indicator.updating .sync-icon {
    animation-duration: 1s;
}

/* Responsive fullscreen */
/* Pantallas medianas: 3 columnas */
@media (max-width: 1600px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2 columnas */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard {
        padding: 30px 40px;
    }
}

/* Tablet pequeño: 1 columna */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .price-value {
        font-size: 1.8rem;
    }
    
    .price-container {
        gap: 20px;
    }

    .grid {
        gap: 20px;
    }

    .dolar-card {
        padding: 20px;
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: auto;
    padding: 10px 0;
    border-top: 1px solid rgba(80, 80, 80, 0.2);
    color: #a0a0a0;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.footer a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ff8a8a;
}

.footer .email a {
    color: #888;
    font-size: 0.8rem;
}

.footer .email a:hover {
    color: #aaa;
}

/* Animación sutil para los valores */
.price-value {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}