/* Variables de color */
:root {
    --primary: #2a2a72;
    --secondary: #ff7f50;
    --light: #f8f9fa;
    --dark: #343a40;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
}

/* Contenedor principal */
.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Formulario */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #1a1a52;
}

/* Resultado */
.resultado {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    min-height: 80px;
}

/* Footer */
footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Logo */
.logo-cover {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.logo-cover img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
}

/* Contenedor del correo */
#email-body {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    max-height: 500px;
    overflow-y: auto;
    white-space: normal;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

#email-body * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Scroll estilizado */
#email-body::-webkit-scrollbar {
    width: 8px;
}

#email-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        margin: 20px;
    }

    #email-body {
        padding: 15px;
        max-width: 100vw;
        overflow-x: auto;
        word-wrap: break-word;
    }

    #email-body table {
        width: 100% !important;
        table-layout: fixed;
    }

    #email-body img {
        max-width: 100% !important;
        height: auto !important;
    }
}
