:root {
    --color-background-dark: #1E375A; /* Dark Blue for branding */
}

.error-page-container {
    display: flex;
    align-items: center; /* Centering vertically */
    justify-content: center;
    min-height: 90vh; /* Ensure full height usage */
    padding: 2rem;
    padding-top: 180px; /* Increased top padding for better header clearance */
    padding-bottom: 80px; /* Symmetry */
    background: #FFFFFF; /* White background as requested */
    position: relative;
}

.error-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    max-width: 550px;
    width: 100%;
    overflow: hidden;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.6s ease-out;
}

.error-card-header {
    background-color: rgba(30, 55, 90, 0.85); /* Azul transparente elegante */
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.error-card-title {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-card-body {
    padding: 40px;
}

.error-image {
    width: 100%;
    max-width: 100%; /* Full width of container */
    height: auto;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover; /* Ensure it covers well */
}

.error-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Botón Primario: Estilo Tarjeta Inicio (Outline Dark Blue con Hover) */
.btn-primary {
    flex: 1;
    white-space: nowrap;
    background-color: transparent;
    color: var(--color-background-dark); /* Azul oscuro corporativo */
    border: 2px solid var(--color-background-dark);
    padding: 12px 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Sombra sutil tipo tarjeta */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--color-background-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Botón Secundario: Estilo Idéntico pero con Acento (Opcional, o duplicar estilo) */
.btn-outline-premium {
    flex: 1;
    white-space: nowrap;
    background: transparent;
    border: 2px solid var(--color-background-dark); /* Mismo borde azul oscuro */
    color: var(--color-background-dark);
    padding: 12px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-outline-premium:hover {
    background: var(--color-background-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 600px) {
    .error-actions {
        flex-direction: column;
    }
    .btn-primary, 
    .btn-outline-premium {
        width: 100%;
        flex: none;
    }
}
