* {
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #FF6B35;
    --color-secondary: #004E89;
    --color-success: #27AE60;
    --color-danger: #E74C3C;
}

body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    grid-template-areas:
    "navbar"
    "main"
    "footer";
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

nav {
    top: 0;
    position: sticky;
    grid-area: navbar;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main {
    grid-area: main;
    z-index: 50;
}

footer {
    grid-area: footer;
    border-top: 3px solid var(--color-primary);
}

/* Header / Hero */
.bg-gradient {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Navbar Brand */
.navbar-brand {
    font-size: 1.5rem;
    color: #FF6B35 !important;
    transition: color 0.3s ease;
    font-weight: 700;
}

.navbar-brand:hover {
    color: #E55A25 !important;
}

/* Botones */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 78, 137, 0.3);
}

.btn-warning {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-warning:hover {
    background-color: #E55A25;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-weight: 500;
}

/* Código */
code {
    background-color: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: var(--color-secondary);
    font-weight: 500;
}

/* Alert */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primary) !important;
}

/* Utilidades */
.text-info {
    color: var(--color-secondary) !important;
}

.fw-bold {
    font-weight: 700;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
