body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #4CAF50;
}

.campo {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.campo label {
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
}

select:disabled {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-option label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

input::placeholder,
textarea::placeholder {
    color: #999;
    font-style: italic;
    opacity: 0.8;
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.5;
}

.file-input {
    padding: 8px !important;
    border: 2px dashed #ccc !important;
    border-radius: 6px !important;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #4CAF50 !important;
    background-color: #f0f8f0;
}

.file-input:focus {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.file-help {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

/* Estilos para datos bancarios de Corpocitrik */
.banco-corpocitrik {
    background-color: #f8f9fa;
    border: 2px solid #4CAF50;
    border-radius: 8px;
}

.banco-corpocitrik legend {
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
}

.info-bancaria h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}

.datos-banco {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dato-bancario {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f8f9fa;
    border-left: 4px solid #4CAF50;
    border-radius: 4px;
}

.dato-bancario strong {
    color: #333;
    display: inline-block;
    min-width: 150px;
}

.nota-importante {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.nota-importante p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.nota-importante a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.nota-importante a:hover {
    text-decoration: underline;
}

button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

#mensaje {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}

#mensaje.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === ENCABEZADO CORPORATIVO === */
.encabezado-corporativo {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.tabla-encabezado {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    background: #fff;
}

.tabla-encabezado td {
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    padding: 6px 8px;
    height: 15px;
}

/* Primera fila - Título principal */
.titulo-principal {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    height: 25px !important;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: none !important;
    padding: 8px;
}

/* Columnas con anchos específicos */
.tabla-encabezado .celda-logo {
    width: 25%;
    padding: 8px;
    background: #fff !important;
    border: 1px solid #ddd;
}

.tabla-encabezado .formato-ventas,
.tabla-encabezado .registro-clientes {
    width: 55%;
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 13px;
    color: #333;
    border: 1px solid #ddd;
}

.tabla-encabezado .codigo,
.tabla-encabezado .revision,
.tabla-encabezado .emision {
    width: 15%;
    font-weight: 600;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    font-size: 12px;
    color: #495057;
    border: 1px solid #ddd;
}

.tabla-encabezado .valor {
    width: 15%;
    font-weight: bold;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #4CAF50;
    font-size: 12px;
    border: 1px solid #ddd;
}

/* Logo */
.logo {
    max-width: 90%;
    max-height: 70px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.1));
}

/* Textos específicos */
.registro-clientes {
    font-size: 12px !important;
    line-height: 1.3;
}

/* Hover effects para interactividad */
.tabla-encabezado td:not(.titulo-principal):not(.celda-logo):hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .encabezado-corporativo {
        margin-bottom: 20px;
    }
    
    .tabla-encabezado td {
        padding: 6px 4px;
        font-size: 10px;
        height: 35px;
    }
    
    .titulo-principal {
        font-size: 16px !important;
        height: 40px !important;
    }
    
    .logo {
        max-height: 50px;
    }
    
    .formato-ventas,
    .registro-clientes {
        font-size: 10px !important;
    }
    
    .codigo,
    .revision,
    .emision,
    .valor {
        font-size: 9px !important;
    }
}
