/* Estilos generales de CalidadSegura */

/* Logo: escudo pequeño + a la derecha "Calidad" / "Segura.es" (.es más pequeño) */
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    /*color: inherit;*/
}
.brand-logo-wrap .brand-escudo {
    height: 26px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}
.navbar .brand-logo-wrap .brand-escudo {
    height: 40px;
}
.brand-logo-wrap .brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 0;
}
.brand-logo-wrap .brand-line1 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}
.brand-logo-wrap .brand-line2 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}
.brand-logo-wrap .brand-domain {
    font-size: 0.75em;
    font-weight: 600;
    opacity: 0.95;
    vertical-align: baseline;
}
.footer .brand-logo-wrap .brand-escudo {
    height: 22px;
}
.footer .brand-logo-wrap .brand-line1,
.footer .brand-logo-wrap .brand-line2 {
    font-size: 0.9rem;
}
.login-brand .brand-escudo {
    height: 44px;
    width: auto;
    margin-bottom: 0.5rem;
}
.login-brand .brand-text-wrap .brand-line1,
.login-brand .brand-text-wrap .brand-line2 {
    font-size: 1.15rem;
    font-weight: 700;
}
.login-brand .brand-domain {
    font-size: 0.6em;
}

:root {
    --primary-color: #0066a3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, #0066a3 0%, #f4f5f7 100%);
    color: white;
}

.hero-section h1 {
    color: white;
}

.hero-section img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-section .btn {
    margin-top: 1rem;
}

/* Feature Icons */
.feature-icon {
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 163, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #004d7a;
    border-color: #004d7a;
}

/* Navbar */
.navbar.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Sobrescribir bg-primary de Bootstrap en todos los elementos */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Footer */
footer {
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
}

/* Modals */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: #004d7a;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
