body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(45deg, #0956a5, #02a64f);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-large {
    height: 80px;
}

.contact-btn-large {
    background: #a28046;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
}

.hero {
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.intro {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.highlight {
    font-size: 1.3rem;
    color: #007d6c;
    font-weight: bold;
}

.calculator-container {
    max-width: 700px;
    margin: auto;
    background: #ffffff;
    background-size: 60%;
    opacity: 0.7;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 9px rgba(5, 5, 9, 0.1);
}

.input-symbol {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.input-symbol span {
    background: #eee;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
}

.input-symbol input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 5px 5px 0;
}

button {
    padding: 0.75rem;
    width: 100%;
    background-color: #02a64f;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #028a43;
}

button:active {
    transform: scale(0.98);
}

/* Estilo especial para el botón de imprimir */
.btn-imprimir {
    background-color: #0956a5;
    margin-top: 1.5rem;
}

.btn-imprimir:hover {
    background-color: #074589;
}

.resultados {
    margin-top: 2rem;
}

.resultados h2 {
    color: #0956a5;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.resultados h3 {
    color: #02a64f;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.resultados p {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #0956a5;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f0f0f0;
}

canvas {
    margin-top: 1rem;
    max-width: 100%;
}

footer {
    background: #333;
    margin-top: 50px;
    color: white;
    text-align: center;
    padding: 1rem;
}

footer a {
    color: #a0e7e5;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.nota {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
    display: block;
    margin-top: 0.25rem;
}

body::before {
    content: "";
    background: url('assets/Fondo_patron.png') no-repeat center center;
    background-size: contain;
    opacity: 0.07;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table-responsive table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .intro {
        font-size: 1.2rem;
    }
    
    .highlight {
        font-size: 1.1rem;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
    
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-large {
        height: 60px;
    }
}

/* Estilos específicos para impresión */
@media print {
    body::before {
        display: none;
    }
    
    header, footer, button {
        display: none !important;
    }
    
    .calculator-container {
        box-shadow: none;
        opacity: 1;
        max-width: 100%;
    }
    
    table {
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    canvas {
        max-width: 100%;
        page-break-before: auto;
    }
}