:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

.card:hover {
    transform: translateY(-2px);
}

.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

/* Navbar */
/* .navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
} */


.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

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

/* Tables */
.table {
    background-color: white;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

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

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

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

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

/* Responsive */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Estados */
.status-active {
    color: var(--success-color);
}

.status-inactive {
    color: var(--danger-color);
}

.status-pending {
    color: var(--warning-color);
}

/* ─── Sercotec Landing Page ─────────────────────────────────────────────── */

.sercotec-hero {
    background: linear-gradient(135deg, #4361EE 0%, #2d47c7 100%);
    padding: 5rem 0;
}

.sercotec-hero-btn-primary {
    color: #4361EE;
}

.sercotec-hero-btn-primary:hover {
    color: #2d47c7;
}

.sercotec-icon-circle {
    width: 64px;
    height: 64px;
    background: #eff2fe;
    color: #4361EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sercotec-why-card {
    border: 1px solid #e9ecef !important;
}

.sercotec-why-card:hover {
    border-color: #4361EE !important;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.12) !important;
}

.sercotec-program-card {
    border: 2px solid #e9ecef !important;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sercotec-program-card:hover {
    border-color: #4361EE !important;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.15) !important;
}

.sercotec-subsidy-amount {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.sercotec-badge-blue {
    background-color: #eff2fe;
    color: #4361EE;
    font-weight: 600;
}

.sercotec-badge-green {
    background-color: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.sercotec-checklist li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

.sercotec-highlight-box-yellow {
    background: #fefce8;
    border-left: 4px solid #facc15;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
}

.sercotec-highlight-box-green {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
}

.sercotec-table-recommended {
    background-color: #eff2fe !important;
    border-left: 4px solid #4361EE !important;
}

.sercotec-step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #4361EE;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.sercotec-feature-card {
    border: 1px solid #e9ecef !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sercotec-feature-card:hover {
    border-color: #4361EE !important;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.1) !important;
    transform: none;
}

.sercotec-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #eff2fe;
    color: #4361EE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sercotec-cta {
    background: linear-gradient(135deg, #4361EE 0%, #2d47c7 100%);
}

.sercotec-legal-alert {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 5px solid #f59e0b;
    color: #78350f;
    border-radius: 8px;
}

.sercotec-back-link {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}
.sercotec-back-link:hover {
    color: white;
    text-decoration: none;
}

/* Feature badge "✨ Nuevo" — usado en tarjetas de features del landing */
.feature-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
    white-space: nowrap;
}
