/* =========================================================
   normalize.css — Estilos normalizados para la web externa
   Basado en los estilos de la web interna
   ========================================================= */

/* Fuente base consistente */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  color: #212529;
}

/* Colores normalizados */
:root {
  --primary: #AE1926;
  --text-muted: #6c757d;
  --text-normal: #212529;
}

.text-muted {
  color: #6c757d !important;
}

/* ===== TABLAS NORMALIZADAS ===== */
table.table {
    font-size: 0.875rem; /* small */
}

table.table thead {
    background-color: #f8f9fa; /* table-light */
    font-weight: 600;
}

table.table tbody tr:hover {
    background-color: #f8f9fa;
}

table.table th,
table.table td {
    vertical-align: middle;
    padding: 0.75rem 0.5rem;
}

/* Tabla dentro de card sin padding */
.card-body.p-0 .table-responsive {
    border-radius: 0;
}

/* ===== BOTONES NORMALIZADOS ===== */
/* Tamaño estándar: btn-sm para botones internos */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.btn i,
.btn .bi {
    font-size: 0.875rem;
    line-height: 1;
}

/* Botones en formularios públicos pueden ser más grandes */
.hero-form .btn,
.hero-contact-card .btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* ===== BADGES NORMALIZADOS ===== */
.badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    display: inline-block;
    vertical-align: baseline;
}

/* ===== CARDS NORMALIZADAS ===== */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5,
.card-header h6 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

.card-body.p-0 {
    padding: 0;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

/* ===== MODALES NORMALIZADOS ===== */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.25rem;
}

.modal-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .btn-close {
    margin: 0;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

.modal-footer .btn {
    margin-left: 0.5rem;
}

.modal-footer .btn:first-child {
    margin-left: 0;
}

/* ===== ICONOS NORMALIZADOS ===== */
/* Bootstrap Icons y Font Awesome deben tener el mismo tamaño */
i.bi,
i.fas,
i.far {
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

/* Espaciado consistente entre icono y texto */
i.me-1 {
    margin-right: 0.25rem;
}

i.me-2 {
    margin-right: 0.5rem;
}

/* ===== FORMULARIOS NORMALIZADOS ===== */
.form-control,
.form-select {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #212529;
}

.form-control-sm,
.form-select-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* ===== UTILIDADES ===== */
/* Gap consistente */
.gap-normalized {
    gap: 0.5rem;
}

.gap-normalized-sm {
    gap: 0.25rem;
}

.gap-normalized-lg {
    gap: 1rem;
}

/* Texto muted consistente */
.text-muted {
    color: #6c757d !important;
}

/* Sombra consistente para cards */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    table.table {
        font-size: 0.75rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

