/* style.css */

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f4f7;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border-top: 10px solid #d52b1e;
    border-bottom: 10px solid #6da544;
    border-left: 10px solid #ffd700;
    border-right: 10px solid #ffd700;
}

h1 {
    text-align: center;
    color: #343a40;
    margin-bottom: 20px;
    position: relative;
}

h1 .flag {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #80bdff;
    outline: none;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #d52b1e;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #a00000;
}

#result {
    margin-top: 30px;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 5px;
}

#result h2 {
    color: #343a40;
    margin-bottom: 10px;
}

#result p {
    color: #495057;
    margin: 5px 0;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
}

#valorCIF {
    background-color: #ffd700;
    color: #000;
}

#baseImponible {
    background-color: #6da544; /* Cambio de color a verde */
    color: #fff;
}

#iva {
    background-color: #d52b1e;
    color: #fff;
}

#tributosAduaneros {
    background-color: #ffd700;
    color: #000;
}

#gastoTotal {
    background-color: #6da544; /* Cambio de color a verde */
    color: #fff;
}

.footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #fff;
    background-color: #333;
    border-top: 2px solid #fff;
    margin-top: 20px;
}

.footer p {
    margin: 0;
}

.select-modern {
    appearance: none;
    background-color: #fff;
    border: 1px solid #ced4da;
    padding: 10px;
    border-radius: 5px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"%3E%3Cpath fill="%23999" d="M2 0L0 2h4zm0 5L0 3h4z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 10px;
}

.detail-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

/* Estilos para el modal de detalles */
#modalBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
}

#modalContent {
    color: #495057;
    font-size: 16px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos para el signo de interrogación */
.question-mark {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
}
/* Estilos de los resultados de la calculadora de ganancias */
#investment {
    background-color: #ffd700;
    color: #000;
}

#pricePerUnit {
    background-color: #6da544;
    color: #fff;
}

#totalRevenue {
    background-color: #d52b1e;
    color: #fff;
}

#totalProfit {
    background-color: #ffd700;
    color: #fff;
}

#sellPriceInfo {
    background-color: #6da544;
    color: #000;
}
/*login*/
.auth-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.auth-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    text-align: center;
}

.auth-error {
    color: red;
    margin-top: 10px;
}
/* Estilos para el modal de CAPTCHA y autenticación */
.auth-modal, .modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    max-width: 90%;
}

.auth-error {
    color: red;
    margin-top: 10px;
}

/* Otros estilos */
.flag {
    width: 50px;
    height: auto;
}
