:root {
    --primary-color: #004D99; /* Azul Corporativo */
    --secondary-color: #f4f4f9; /* Fondo Claro */
    --accent-color: #33aaff; /* Azul para énfasis */
    --text-color: #333;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
    max-width: 500px;
    width: 100%;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Header and Titles */
.header {
    text-align: center;
    margin-bottom: 25px;
}

.sub-title { 
    font-size: 1.4em;
    font-weight: 600; 
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Estilos de fecha */
.date-container {
    text-align: center;
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.date-label {
    font-weight: 600;
    margin-bottom: 2px;
}

.date-value {
    font-weight: 400;
}

/* Rate Display Card - CORRECCIÓN PARA APILAR VERTICALMENTE */
.rate-section {
    text-align: center;
    margin: 25px 0;
    /* Eliminamos display: flex, justify-content: center, y gap */
}

.rate-card {
    background-color: #e6f2ff;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    width: 100%; /* Ahora ocupará todo el ancho del contenedor */
    margin-bottom: 15px; /* Añade separación entre las tarjetas */
    /* Eliminamos flex: 1; */
}

/* Elimina el margen inferior de la última tarjeta para no añadir espacio extra al final de la sección */
.rate-card:last-child {
    margin-bottom: 0;
}

.currency-tag {
    display: block;
    font-size: 0.9em;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.rate-value {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-color);
}

.unit {
    font-size: 0.4em;
    font-weight: 400;
    vertical-align: top;
    color: #555;
}

/* Calculator Section */
.calculator-section h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.calculator {
    display: flex;
    align-items: flex-end; 
    justify-content: space-between;
    gap: 15px; 
}

.input-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 50%;
}

.calculator input, .calculator select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
}

.calculator select {
    margin-top: 5px;
    background-color: #f9f9f9;
}

.calculator select[disabled] {
    cursor: default;
    opacity: 0.8;
}

#usd-input, #bs-input {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0; 
}

/* Footer and Disclaimer */
.divider {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 30px 0;
}

/* ESTILOS DE COMPARTIR */
.share-actions {
    margin: 25px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px dashed #eee;
}

.share-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    opacity: 0.8;
}

.copy-btn {
    background-color: #555;
    color: white;
    width: 100%;
    max-width: 250px;
    gap: 8px;
}

.copy-btn svg {
    margin-right: 5px;
}

.social-btns {
    display: flex;
    gap: 10px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    padding: 0;
}

.x-btn {
    background-color: black;
    color: white;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    padding: 0;
    text-transform: uppercase;
}

.linkedin-btn {
    background-color: #0A66C2;
    color: white;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    padding: 0;
}

/* Footer final */
.footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #ddd; 
}

.disclaimer {
    font-size: 0.8em;
    color: #aaa;
    margin-bottom: 10px;
}

/* Estilos de botones sociales (continuación) */
.telegram-btn {
    background-color: #0088CC; /* Color de Telegram */
    color: white;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    padding: 0;
}

.facebook-btn {
    background-color: #1877F2; /* Color de Facebook */
    color: white;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    padding: 0;
}

/* Bandera */
.flag-icon {
    width: 25px; 
    height: auto;
    vertical-align: middle;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 450px) {
    .calculator {
        flex-wrap: wrap;
    }
    .input-group {
        width: 100%;
        margin-bottom: 10px;
    }
    /* Para que las tarjetas de tasa se apilen en móvil (ahora es el comportamiento por defecto) */
    .rate-section {
        flex-direction: column;
        gap: 10px;
    }
    .rate-card {
        max-width: 100%;
    }
}

/* --- Estilos para la página 'Acerca de' --- */

.content-section {
    padding: 10px 0;
    margin-bottom: 20px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-link {
    /* Estilo para el enlace "Acerca de" en index.html */
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    margin: 5px 0 10px;
    text-decoration: underline;
    display: inline-block; /* Crucial para aplicar margin/padding correctamente */
}

.about-link:hover {
    color: var(--accent-color);
}

.back-link {
    /* Estilo para el enlace "Volver" en acerca-de.html */
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: #003875;
}